/* Canonical shared chrome for every public page. */
:root {
    --public-canvas-width: 1366px;
    --public-page-min-width: 320px;
    --public-bottom-nav-height: 70px;
    --public-bottom-nav-height-mobile: 68px;
    --public-bg-color: #050a13;
    --public-bg-image: url("/assets/resources/background.webp");
    --public-overlay: rgba(3, 8, 17, .58);
    --public-text: #eaf1ff;
    --public-nav-bg: rgba(7, 12, 24, .94);
    --public-border-gold: rgba(201, 170, 99, .5);
    --public-shadow-nav: 0 -4px 12px rgba(0, 0, 0, .4);
    --font-body: "Cinzel", serif;
    --font-head: "Cinzel", serif;
}

* { box-sizing: border-box; }
html { min-width: var(--public-page-min-width); overflow-x: hidden; }
body[class^="public-page-body-"] {
    min-width: var(--public-page-min-width);
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--public-text);
    font-family: var(--font-body);
    background: linear-gradient(var(--public-overlay), var(--public-overlay)), var(--public-bg-image) center top / cover fixed no-repeat;
}
body[class^="public-page-body-"] .public-page-shell,
body[class^="public-page-body-"] .public-page-shell > main {
    min-height: 100svh;
    margin-inline: auto;
}

body[class^="public-page-body-"] .public-page-content {
    width: 100% !important;
    max-width: var(--public-canvas-width) !important;
    min-height: 100svh;
    margin-inline: auto !important;
    padding: calc(var(--public-header-height) + 24px) var(--public-content-gutter) calc(var(--public-bottom-nav-height) + 48px) !important;
    overflow-x: clip;
}

/* Server Info is the canonical public-page frame: every page owns the same
   canvas and outer spacing; page styles only control their inner components. */
body[class^="public-page-body-"] .public-page-content > :is(
    section,
    header,
    .container,
    .public-page,
    .public-character-page,
    .public-quest-page,
    .public-giftcode-page,
    .dashboard-page__header,
    .dashboard-page__body
) {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
}

/* Guide pages use legacy dashboard class names inside the public layout. */
body.public-page-body-guide-in-game .dashboard-page__header,
body.public-page-body-guide-on-web .dashboard-page__header {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border-bottom: 0 !important;
}

body.public-page-body-guide-in-game .dashboard-page__body,
body.public-page-body-guide-on-web .dashboard-page__body {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.public-page-body-guide-in-game .in-game-layout,
body.public-page-body-guide-on-web .in-game-layout {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

body.public-page-body-guide-in-game .in-game-content,
body.public-page-body-guide-on-web .in-game-content {
    min-height: 0 !important;
    overflow: visible !important;
}

@media (max-width: 900px) {
    body[class^="public-page-body-"] .public-page-content {
        padding: calc(var(--public-header-height-mobile) + 14px) var(--public-content-gutter-mobile) calc(var(--public-bottom-nav-height-mobile) + 34px) !important;
    }
}

/* Shared button primitive. */
.btn,
button.btn,
.btn-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 0;
    padding: 12px 18px;
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover,
button.btn:hover,
.btn-link:hover { transform: translateY(-1px); }

/* Shared header component. Page stylesheets must not define its selectors. */
:root {
    --public-header-height: 86px;
    --public-header-height-mobile: 72px;
    --public-content-gutter: 24px;
    --public-content-gutter-mobile: 16px;
    --public-header-bg: #0a1221;
}
body .site-nav,
body.dashboard-page > .site-nav {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 120 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    height: 86px !important;
    margin-inline: auto !important;
    padding: 8px 24px !important;
    background: var(--public-header-bg) !important;
    transform: none !important;
    overflow: visible !important;
}
/* The header itself spans the viewport; only its controls align to the canvas. */
body .site-nav .site-nav__brand-group {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    pointer-events: none !important;
}
body .site-nav .brand-public {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    width: 250px !important;
    min-width: 0 !important;
    height: 70px !important;
    margin: 0 !important;
    text-decoration: none;
    transform: none !important;
    pointer-events: auto !important;
}
body .site-nav .brand-public__image {
    display: block !important;
    width: 250px !important;
    max-width: 250px !important;
    height: 68px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
}
body .site-nav::after {
    content: "";
    position: absolute;
    right: 0; bottom: -1px; left: 0;
    width: 100%; height: 3px;
    background: url("/assets/resources/line.webp") center / auto 100% repeat-x;
    transform: none;
    pointer-events: none;
}
body .site-nav .public-edge-actions--language-header {
    position: absolute !important;
    inset: 50% max(24px, calc((100% - 1366px) / 2 + 24px)) auto auto !important;
    z-index: 2 !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
body .site-nav .site-nav__actions {
    position: absolute !important;
    inset: 50% max(24px, calc((100% - 1366px) / 2 + 24px)) auto auto !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
}
body .site-nav .site-nav__actions .public-edge-actions--language-header {
    position: static !important;
    inset: auto !important;
    transform: none !important;
}
body .site-nav .site-nav__download {
    display: grid !important;
    width: 50px !important;
    height: 50px !important;
    place-items: center !important;
    border: 1px solid #d8b66b !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #29303a, #080e19) !important;
    box-shadow: 0 0 15px rgba(216, 182, 107, .25) !important;
    color: #edd18c !important;
    text-decoration: none !important;
    transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}
body .site-nav .site-nav__download svg { width: 26px; height: 26px; }
body .site-nav .site-nav__download:hover,
body .site-nav .site-nav__download:focus-visible,
body .site-nav .site-nav__download.is-active { border-color: #f5d897 !important; color: #fff4d7 !important; outline: none; transform: translateY(-1px); box-shadow: 0 0 18px rgba(216, 182, 107, .38) !important; }
body .site-nav .public-edge-language { position: relative !important; z-index: 150 !important; overflow: visible !important; }
body .site-nav .public-edge-language summary {
    display: grid !important;
    width: 50px !important;
    height: 50px !important;
    place-items: center !important;
    border: 1px solid #a7864c !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #27303c, #0a111e 65%) !important;
    color: #edd18c !important;
    cursor: pointer;
    list-style: none;
}
body .site-nav .public-edge-language summary::-webkit-details-marker { display: none; }
body .site-nav .public-edge-language:not([open]) .public-edge-language__menu { display: none !important; }
body .site-nav .public-edge-language__menu {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    display: block !important;
    width: 50px !important;
    height: 50px !important;
    pointer-events: none;
}
body .site-nav .public-edge-language__menu a {
    position: absolute !important;
    top: 3px;
    left: 3px;
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    place-items: center !important;
    border: 1px solid #b39254 !important;
    border-radius: 50% !important;
    background: #0b1524 !important;
    color: #f4dfac !important;
    text-decoration: none !important;
    font: 600 12px/1 serif !important;
    pointer-events: auto;
}
@media (max-width: 900px) {
    :root { --public-header-height: 72px; }
    body .site-nav,
    body.dashboard-page > .site-nav { height: 72px !important; padding: 6px 16px !important; }
    body .site-nav .brand-public { width: 170px !important; height: 56px !important; }
    body .site-nav .brand-public__image { width: 170px !important; max-width: 170px !important; height: 58px !important; max-height: 58px !important; }
    body .site-nav .site-nav__actions { right: 16px !important; }
}
@media (max-width: 380px) {
    body .site-nav .brand-public { width: 110px !important; }
    body .site-nav .brand-public__image { width: 110px !important; max-width: 110px !important; }
    body .site-nav .site-nav__actions { gap: 6px !important; }
    body .site-nav .site-nav__download,
    body .site-nav .site-nav__actions .public-edge-language summary { width: 44px !important; height: 44px !important; }
    body .site-nav .site-nav__download svg { width: 23px; height: 23px; }
}

/* The header language choices follow a quarter-circle around the control. */
.public-edge-actions--language-header .public-edge-language { position: relative; z-index: 150; overflow: visible !important; pointer-events: auto; }
.public-edge-actions--language-header .public-edge-language summary { position: relative; z-index: 2; display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid #d8b66b; border-radius: 50%; background: linear-gradient(145deg, #29303a, #080e19); box-shadow: 0 0 15px rgba(216, 182, 107, .25); color: #edd18c; cursor: pointer; list-style: none; }
.public-edge-actions--language-header .public-edge-language summary::-webkit-details-marker { display: none; }
.public-edge-actions--language-header .public-edge-language summary:hover, .public-edge-actions--language-header .public-edge-language summary:focus-visible { border-color: #f5d897; outline: none; }
.public-edge-actions--language-header .public-edge-language summary svg { width: 26px; height: 26px; }
.public-edge-actions--language-header .home-language-code { position: absolute; bottom: -7px; left: 50%; padding: 2px 5px; border: 1px solid #9d7c43; border-radius: 4px; background: #101824; color: #edd18c; font: 600 10px/1.2 "Cinzel", serif; transform: translateX(-50%); }
.public-edge-actions--language-header .public-edge-language__menu { position: absolute; inset: 0; display: block; width: 50px; height: 50px; pointer-events: none; }
.public-edge-actions--language-header .public-edge-language__menu a { position: absolute; top: 3px; left: 3px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #b39254; border-radius: 50%; background: #0b1524; color: #f4dfac; font: 600 12px/1 "Cinzel", serif; text-decoration: none; pointer-events: auto; opacity: 0; transform: translate(0, 0) scale(.3); animation: none; transition: none; }
.public-edge-actions--language-header .public-edge-language[open] .public-edge-language__menu a { opacity: 1; animation: public-language-expand .3s ease-out both; }
.public-edge-actions--language-header .public-edge-language__menu a:nth-child(1) { --lang-x: -140px; --lang-y: 0px; }
.public-edge-actions--language-header .public-edge-language__menu a:nth-child(2) { --lang-x: -129px; --lang-y: 54px; }
.public-edge-actions--language-header .public-edge-language__menu a:nth-child(3) { --lang-x: -99px; --lang-y: 99px; }
.public-edge-actions--language-header .public-edge-language__menu a:nth-child(4) { --lang-x: -54px; --lang-y: 129px; }
.public-edge-actions--language-header .public-edge-language__menu a:nth-child(5) { --lang-x: 0px; --lang-y: 140px; }
.public-edge-actions--language-header .public-edge-language__menu a:hover, .public-edge-actions--language-header .public-edge-language__menu a:focus-visible { background: #705524; color: #fff4d7; }
@keyframes public-language-expand { from { opacity: 0; transform: translate(0, 0) scale(.3); } to { opacity: 1; transform: translate(var(--lang-x), var(--lang-y)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .public-edge-actions--language-header .public-edge-language[open] .public-edge-language__menu a { animation: none; transform: translate(var(--lang-x), var(--lang-y)); } }

/* Hide scrollbars site-wide without disabling vertical scrolling. */
html,
body,
body * {
    scrollbar-width: none !important;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* The document is the vertical scroll container on every page. */
html {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
}
body[class^="public-page-body-"],
body.dashboard-page {
    height: auto !important;
    min-height: 100svh;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
body[class^="public-page-body-"] .public-shell,
body[class^="public-page-body-"] .public-shell > main,
body[class^="public-page-body-"] .public-page-shell,
body[class^="public-page-body-"] .public-page-shell > main {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}
body.dashboard-page .dashboard-app {
    height: auto !important;
    min-height: 100svh !important;
    max-height: none !important;
    grid-template-rows: 108px minmax(0, 1fr) auto !important;
    grid-auto-rows: auto !important;
    overflow-y: visible !important;
}
body.dashboard-page .dashboard-page__body,
body.dashboard-page .dashboard-content {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
}
@media (max-width: 1023px) {
    body.dashboard-page .dashboard-app { display: block !important; }
}

/* Two fixed gold canvas edges for every page, independent of scrolling. */
:root {
    --public-frame-color: rgba(216, 182, 107, .82);
    --public-frame-thickness: 2px;
}

/* Every template uses the same canvas; on narrow screens it fills the viewport. */
body[class^="public-page-body-"] .public-shell,
body[class^="public-page-body-"] .public-shell > main,
body[class^="public-page-body-"] .public-page-shell,
body[class^="public-page-body-"] .public-page-shell > main,
body.dashboard-page .dashboard-app {
    width: min(100%, var(--public-canvas-width)) !important;
    max-width: var(--public-canvas-width) !important;
    margin-inline: auto !important;
}

body::after {
    content: "" !important;
    position: fixed !important;
    inset: 0 auto 0 50% !important;
    display: block !important;
    width: min(100%, var(--public-canvas-width)) !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    border-inline: 0 !important;
    border-block: 0 !important;
    background: none !important;
    opacity: 1 !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

/* Outer wrappers share the body backdrop; panels and cards keep their Server Info surfaces. */
body:not(.public-page-body-home) :is(
    .public-page-content, .auth-section,
    .news-section, .news-shell,
    .server-info-page, .server-info-shell, .server-info-hero,
    .dashboard-app, .dashboard-content, .dashboard-page__body
) {
    background: transparent !important;
}

body:not(.public-page-body-home) .public-page-content::before,
body:not(.public-page-body-home) .auth-section::before {
    background: none !important;
}

/* Sky banners belong to the shared chrome, not individual page styles. */
body[class^="public-page-body-"] .public-sky-banner { position: fixed; inset: 50% 0 auto; z-index: 15; display: flex; justify-content: space-between; height: min(600px, calc(100svh - 180px)); transform: translateY(-50%); pointer-events: none; }
body[class^="public-page-body-"] .public-sky-banner[hidden] { display: none; }
body[class^="public-page-body-"] .public-sky-banner__item { display: block; flex: 0 0 auto; width: auto; height: 100%; aspect-ratio: 4 / 15; box-sizing: border-box; object-fit: cover; border: 1px solid rgba(216,182,107,.7); box-shadow: 0 8px 28px rgba(0,0,0,.55); animation: public-sky-banner-arrive .45s ease both; }
@keyframes public-sky-banner-arrive { from { opacity:.55; filter:brightness(1.45); } to { opacity:1; filter:brightness(1); } }
@media (max-width: 1366px) { body[class^="public-page-body-"] .public-sky-banner { display: none !important; } }

/* Shared navigation: every descendant is owned by this component. */
body[class^="public-page-body-"] .public-bottom-nav {
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 125;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%; min-height: var(--public-bottom-nav-height);
    background: var(--public-nav-bg); border-top: 1px solid var(--public-border-gold); box-shadow: none;
}
body[class^="public-page-body-"] .public-bottom-nav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 0; min-height: var(--public-bottom-nav-height); padding: 8px 12px;
    border-left: 1px solid rgba(201,170,99,.22); color: #a8b9d2;
    background: transparent; box-shadow: none;
    font-family: var(--font-head) !important; font-size: .68rem !important;
    font-weight: 600 !important; line-height: 1.1 !important; letter-spacing: .04em;
    text-align: center; text-decoration: none; text-transform: uppercase; white-space: nowrap;
    transition: color .2s ease;
}
body[class^="public-page-body-"] .public-bottom-nav__item:first-child { border-left: 0; }
body[class^="public-page-body-"] .public-bottom-nav__item:hover,
body[class^="public-page-body-"] .public-bottom-nav__item:focus-visible,
body[class^="public-page-body-"] .public-bottom-nav__item.is-active,
body[class^="public-page-body-"] .public-bottom-nav__item:active { color: #f5d77e; }
body[class^="public-page-body-"] .public-bottom-nav__item--cta { color: var(--public-cyan); }
body[class^="public-page-body-"] .public-bottom-nav__item--cta.is-active,
body[class^="public-page-body-"] .public-bottom-nav__item--cta.is-active:hover,
body[class^="public-page-body-"] .public-bottom-nav__item--cta.is-active:focus-visible {
    color: #f5d77e;
}
body[class^="public-page-body-"] .public-bottom-nav__item--cta:active {
    color: #f5d77e;
}
body[class^="public-page-body-"] .public-bottom-nav__symbol {
    display: block; width: 26px !important; height: 26px !important; margin: 0 auto 4px;
    color: currentColor; filter: none; transform: none !important;
}
body[class^="public-page-body-"] .public-bottom-nav__item span { display: block; }
@media (max-width: 700px) {
    body[class^="public-page-body-"] .public-bottom-nav__item { min-height: var(--public-bottom-nav-height-mobile); padding: 5px 3px; font-size: .6rem !important; }
    body[class^="public-page-body-"] .public-bottom-nav { min-height: var(--public-bottom-nav-height-mobile); }
    body[class^="public-page-body-"] .public-bottom-nav__symbol { width: 24px !important; height: 24px !important; margin-bottom: 3px; }
}

/* Social dock is identical on all public pages. Do not style it in page CSS. */
body .public-edge-actions--social-only {
    position: fixed !important;
    inset: 50% max(24px, calc((100vw - 1366px) / 2 + 24px)) auto auto !important;
    z-index: 130 !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}
body .public-edge-actions--social-only .public-edge-socials {
    display: grid !important;
    gap: 12px !important;
    margin: 0 !important;
    pointer-events: auto !important;
}
body .public-edge-actions--social-only .public-edge-social {
    position: relative !important;
    display: grid !important;
    width: 50px !important;
    height: 50px !important;
    place-items: center !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(231, 202, 132, .82) !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 35% 28%, rgba(255,255,255,.18), transparent 24%),
        linear-gradient(145deg, var(--social-tint, #27313d), #080f1b 72%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 3px 3px 0 rgba(0,0,0,.55) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease !important;
}
body .public-edge-actions--social-only .public-edge-social::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--social-accent, #c8a45c);
    border-radius: 50%;
    opacity: .7;
    pointer-events: none;
}
body .public-edge-actions--social-only .public-edge-social::after {
    content: attr(aria-label);
    position: absolute;
    right: calc(100% + 12px);
    padding: 6px 10px;
    border: 1px solid rgba(216, 182, 107, .55);
    background: rgba(8, 15, 27, .96);
    box-shadow: 0 5px 18px rgba(0,0,0,.35);
    color: #f4dfac;
    font: 600 11px/1 var(--font-head, "Cinzel", serif);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}
body .public-edge-actions--social-only .public-edge-social:hover,
body .public-edge-actions--social-only .public-edge-social:focus-visible {
    border-color: var(--social-accent, #e6cb8a) !important;
    box-shadow: 0 0 0 3px rgba(216,182,107,.12), 0 0 22px var(--social-accent, #e6cb8a), 3px 3px 0 rgba(0,0,0,.55) !important;
    filter: saturate(1.2) brightness(1.12);
    transform: translate(-3px, -3px) scale(1.05);
}
body .public-edge-actions--social-only .public-edge-social:hover::after,
body .public-edge-actions--social-only .public-edge-social:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}
body .public-edge-actions--social-only .public-edge-social:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body .public-edge-social--discord { --social-accent: #9198ff; --social-tint: #303568; }
body .public-edge-social--facebook { --social-accent: #569aff; --social-tint: #173d79; }
body .public-edge-social--zalo { --social-accent: #36caff; --social-tint: #11517a; }
body .public-edge-social--youtube { --social-accent: #ff6066; --social-tint: #761e29; }
body .public-edge-actions--social-only .public-edge-social img {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    width: 27px !important;
    height: 27px !important;
    object-fit: contain !important;
    filter: none !important;
    transition: transform .24s ease !important;
}
body .public-edge-actions--social-only .public-edge-social:hover img,
body .public-edge-actions--social-only .public-edge-social:focus-visible img {
    transform: scale(1.12) !important;
}
@media (max-width: 900px) {
    body .public-edge-actions--social-only {
        inset: auto 12px calc(68px + 16px) auto !important;
        transform: none !important;
    }
    body .public-edge-actions--social-only .public-edge-socials { gap: 8px !important; }
    body .public-edge-actions--social-only .public-edge-social { width: 44px !important; height: 44px !important; }
    body .public-edge-actions--social-only .public-edge-social img { width: 23px !important; height: 23px !important; }
    body .public-edge-actions--social-only .public-edge-social::after { display: none; }
}

/* Dashboard footer and its social icons are shared across all dashboard pages. */
body.dashboard-page .dashboard-footer-standard {
    grid-column: 2 !important;
    grid-row: 3 !important;
    position: relative !important;
    display: flex !important;
    width: 100%;
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-top: 1px solid rgba(200,164,92,.72) !important;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    overflow: hidden !important;
}
body.dashboard-page .dashboard-footer-standard::before { display: none; }
body.dashboard-page .dashboard-footer-standard__socials {
    position: absolute;
    left: calc(50% - 136px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transform: translateX(-50%);
}
body.dashboard-page .dashboard-footer-standard__social-link {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid var(--social-accent, #c8a45c);
    border-left: 4px solid var(--social-accent, #c8a45c);
    border-radius: 0;
    background: linear-gradient(135deg, var(--social-tint, #17202b), #090d15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 3px 3px 0 rgba(0,0,0,.55);
    transition: transform .2s ease, box-shadow .2s ease;
}
body.dashboard-page .dashboard-footer-standard__social-icon {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}
body.dashboard-page .dashboard-footer-standard__social-link--discord { --social-accent: #9198ff; --social-tint: #303568; }
body.dashboard-page .dashboard-footer-standard__social-link--facebook { --social-accent: #569aff; --social-tint: #173d79; }
body.dashboard-page .dashboard-footer-standard__social-link--zalo { --social-accent: #36caff; --social-tint: #11517a; }
body.dashboard-page .dashboard-footer-standard__social-link--youtube { --social-accent: #ff6066; --social-tint: #761e29; }
body.dashboard-page .dashboard-footer-standard__social-link:hover,
body.dashboard-page .dashboard-footer-standard__social-link:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 0 0 15px var(--social-accent);
}
body.dashboard-page .dashboard-footer-standard__social-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1023px) {
    body.dashboard-page .dashboard-footer-standard__socials { position: static; left: auto; transform: none; }
}
@media (max-width: 900px) {
    body.dashboard-page--guide-in-game .dashboard-footer-standard,
    body.dashboard-page--guide-on-web .dashboard-footer-standard {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: auto !important;
        min-height: 65px !important;
        max-height: none !important;
    }
}

/* Shared Server Info page header for public & guide pages.
   Matches Server Info (.server-info-page 24px + .server-info-hero 42px = 66px desktop, 14px + 30px = 44px mobile). */
.news-section,
.download-section {
    padding: 24px 0 48px !important;
    margin: 0 auto !important;
}
.news-hero,
.download-hero {
    padding: 42px 18px 14px !important;
    margin: 0 !important;
    text-align: center;
}
.dashboard-standard-header,
body[class^="public-page-body-"] :is(
    .public-giftcode-page__header,
    .public-quest-page__header,
    .public-character-page__header,
    .dashboard-page__header.dashboard-standard-header
) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 66px 18px 14px !important;
    margin: 0 auto 22px !important;
    text-align: center !important;
}
.dashboard-standard-header__brand,
body[class^="public-page-body-"] :is(
    .news-hero__eyebrow,
    .download-hero__eyebrow,
    .public-giftcode-page__brand,
    .public-quest-page__eyebrow,
    .public-character-page__eyebrow,
    .dashboard-standard-header__brand
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    color: #f1c97c !important;
    font: 700 .76rem/1 var(--font-head) !important;
    letter-spacing: .24em !important;
    text-transform: uppercase !important;
}
.dashboard-standard-header__brand::before,
.dashboard-standard-header__brand::after {
    content: "";
    width: 46px;
    height: 1px;
    background: #f1c97c;
}
.dashboard-standard-header__title,
body[class^="public-page-body-"] :is(
    .news-hero h1,
    .download-hero h1,
    .public-giftcode-page__header h1,
    .public-quest-page__header h1,
    .public-character-page__header h1,
    .dashboard-standard-header__title
) {
    margin: 14px 0 !important;
    color: #f1e5cb !important;
    font: 700 clamp(2.2rem, 5vw, 4rem)/1.02 var(--font-head) !important;
    text-shadow: 0 5px 25px rgba(0, 0, 0, .72) !important;
}
.dashboard-standard-header__description,
body[class^="public-page-body-"] :is(
    .news-hero p,
    .download-hero p,
    .public-giftcode-page__header p,
    .public-quest-page__header p,
    .public-character-page__header p,
    .dashboard-standard-header__description
) {
    max-width: 680px !important;
    margin: 0 auto !important;
    color: #c8d5e9 !important;
    font-size: 1rem !important;
    line-height: 1.8 !important;
}
@media (max-width: 760px) {
    .news-section,
    .download-section {
        padding: 14px 0 34px !important;
    }
    .news-hero,
    .download-hero {
        padding: 30px 0 8px !important;
    }
    .dashboard-standard-header,
    body[class^="public-page-body-"] :is(
        .public-giftcode-page__header,
        .public-quest-page__header,
        .public-character-page__header,
        .dashboard-page__header.dashboard-standard-header
    ) {
        padding: 44px 0 8px !important;
        margin: 0 auto 22px !important;
    }
    .dashboard-standard-header__brand,
    body[class^="public-page-body-"] :is(
        .news-hero__eyebrow,
        .download-hero__eyebrow,
        .public-giftcode-page__brand,
        .public-quest-page__eyebrow,
        .public-character-page__eyebrow,
        .dashboard-standard-header__brand
    ) {
        font-size: .64rem !important;
        letter-spacing: .14em !important;
    }
    .dashboard-standard-header__brand::before,
    .dashboard-standard-header__brand::after { width: 24px; }
    .dashboard-standard-header__title,
    body[class^="public-page-body-"] :is(
        .news-hero h1,
        .download-hero h1,
        .public-giftcode-page__header h1,
        .public-quest-page__header h1,
        .public-character-page__header h1,
        .dashboard-standard-header__title
    ) {
        font-size: 2rem !important;
    }
    .dashboard-standard-header__description,
    body[class^="public-page-body-"] :is(
        .news-hero p,
        .download-hero p,
        .public-giftcode-page__header p,
        .public-quest-page__header p,
        .public-character-page__header p,
        .dashboard-standard-header__description
    ) {
        font-size: .92rem !important;
    }
}

/* Shared account entry layout (Login, Register, Forgot Password) in Server Info style. */
.auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
    width: 100%;
    min-height: 0;
    padding: 66px 0 36px;
    margin-inline: auto;
}
.auth-page > *, .auth-page .auth-panel, .auth-page .auth-form, .auth-page .field, .auth-page .login-textbox { min-width: 0; }
.auth-page-hero {
    position: relative;
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 0;
    overflow: visible;
    border: 0;
    background: none !important;
    box-shadow: none;
    text-align: left;
}
.auth-page-hero::after {
    display: none;
}
.auth-page-hero__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 22px;
    color: #f1c97c;
    border: 1px solid rgba(241, 201, 124, .55);
    background: rgba(4, 12, 25, .78);
}
.auth-page-hero__icon .ui-icon { width: 26px; height: 26px; }
.auth-page-hero > span:not(.auth-page-hero__icon) {
    position: relative;
    z-index: 1;
    color: #65c9ff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.auth-page-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 18ch;
    margin: 14px 0 12px;
    color: #fff7e7;
    font: 700 clamp(2rem, 3.8vw, 3.1rem)/1.08 var(--font-head);
    text-shadow: 0 5px 25px rgba(0, 0, 0, .72);
}
.auth-page-hero p {
    position: relative;
    z-index: 1;
    max-width: 44ch;
    margin: 0;
    color: #c6d6eb;
    font: 400 .95rem/1.75 var(--font-body);
}
.auth-page > .auth-section {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.auth-page .auth-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    min-height: 360px;
    margin: 0;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(101, 201, 255, .2);
    border-top: 2px solid #65c9ff;
    border-radius: 0;
    background: linear-gradient(145deg, rgba(8, 21, 40, .92), rgba(4, 11, 23, .88)) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}
.auth-page .auth-eyebrow {
    display: block;
    margin: 0 0 6px;
    color: #f1c97c;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.auth-page .auth-title {
    display: block;
    margin: 0 0 20px;
    color: #f4ead4;
    font: 600 1.75rem/1.2 var(--font-head);
    text-align: left;
}
.auth-page .auth-form { display: flex; width: 100%; flex-direction: column; gap: 16px; }
.auth-page .field { display: flex; flex-direction: column; gap: 7px; }
.auth-page .field label { color: #9fb4cf; font: 600 .78rem/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.auth-page .login-textbox {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    border: 1px solid rgba(101, 201, 255, .24);
    background: rgba(4, 12, 25, .82);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-page .login-textbox:focus-within {
    border-color: #f1c97c;
    box-shadow: 0 0 0 2px rgba(241, 201, 124, .16);
}
.auth-page .auth-field-icon { display: grid; width: 46px; flex: 0 0 46px; place-items: center; color: #65c9ff; border-right: 1px solid rgba(101, 201, 255, .14); }
.auth-page .auth-field-icon .ui-icon { width: 18px; height: 18px; }
.auth-page .login-textbox input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 14px;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #eaf1ff;
    background: transparent;
    box-shadow: none;
    font: 400 .9rem var(--font-body);
}
.auth-page .login-textbox input:focus { border: 0; outline: 0; box-shadow: none; }
.auth-page .auth-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}
.auth-page .auth-actions .btn {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 0;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.auth-page .auth-actions .btn .ui-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.auth-page .auth-actions .btn-primary {
    grid-column: 1 / -1;
    color: #071321;
    border: 1px solid #ffe2a5;
    background: linear-gradient(135deg, #f1c97c, #ffe8b2);
    box-shadow: 0 8px 22px rgba(241, 201, 124, .18);
}
.auth-page .auth-actions .btn-ghost {
    color: #d9e6f5;
    border: 1px solid rgba(101, 201, 255, .22);
    background: rgba(4, 12, 25, .74);
}
.auth-page .auth-actions .btn-ghost:hover {
    border-color: #65c9ff;
    color: #f1c97c;
}
.auth-page .auth-notice {
    padding: 10px 14px;
    border: 1px solid rgba(101, 201, 255, .24);
    border-left: 3px solid #f1c97c;
    background: rgba(4, 12, 25, .84);
    color: #eaf1ff;
    font-size: .8rem;
}
.auth-page .auth-notice.alert-error { border-left-color: #ff6b7a; color: #ffd4d9; }
.auth-page .auth-notice.alert-success { border-left-color: #72e1a1; color: #d5f8e5; }
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 44px 0 28px; }
    .auth-page-hero { min-height: 0; padding: 0; }
    .auth-page .auth-panel { max-width: none; min-height: 0; padding: 24px 20px; }
}
@media (max-width: 520px) {
    .auth-page .auth-actions { grid-template-columns: 1fr; }
}
