/* =========================================================
   Lin2Web — Home page (v2): game icons, live HUD strip,
   feature tiles, onboarding steps, brand-mark community.
   Loaded after ultra.css on the public layout.
   Icons: game-icons.net (CC BY 3.0, img/gi/LICENSE.txt),
   brand marks: simple-icons (CC0, img/brand).
   ========================================================= */
.gi {
    --gi-fill: linear-gradient(180deg, #fbefcf 0%, #e0bf7c 48%, #9a7238 100%);
    display: inline-block; flex: none; width: 1em; height: 1em;
    background: var(--gi-fill);
    -webkit-mask: var(--gi) center / contain no-repeat; mask: var(--gi) center / contain no-repeat;
}
.gi--visored-helm { --gi: url("../img/gi/visored-helm.svg"); }
.gi--two-coins { --gi: url("../img/gi/two-coins.svg"); }
.gi--open-treasure-chest { --gi: url("../img/gi/open-treasure-chest.svg"); }
.gi--anvil-impact { --gi: url("../img/gi/anvil-impact.svg"); }
.gi--trophy-cup { --gi: url("../img/gi/trophy-cup.svg"); }
.gi--three-friends { --gi: url("../img/gi/three-friends.svg"); }
.gi--quill-ink { --gi: url("../img/gi/quill-ink.svg"); }
.gi--cloud-download { --gi: url("../img/gi/cloud-download.svg"); }
.gi--sword-clash { --gi: url("../img/gi/sword-clash.svg"); }
.gi--world { --gi: url("../img/gi/world.svg"); }
.gi--lightning-bolt { --gi: url("../img/gi/lightning-bolt.svg"); }
.gi--shield-reflect { --gi: url("../img/gi/shield-reflect.svg"); }
.ui-btn .gi { width: 20px; height: 20px; }

.home-hero .btn-wrapper .ui-btn--lg,
.home-hero .btn-wrapper .ui-btn--lg.ui-btn--ghost {
    border: 0;
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    box-shadow: none;
    clip-path: none;
    color: #3a2410;
    text-shadow: 0 1px 0 rgba(255, 236, 190, .55);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45));
    min-height: 58px;
    padding: 12px 48px;
}
.home-hero .btn-wrapper .ui-btn--lg:hover,
.home-hero .btn-wrapper .ui-btn--lg.ui-btn--ghost:hover {
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    color: #2a1808;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)) brightness(1.08);
}
.home-hero .btn-wrapper .ui-btn--lg:active,
.home-hero .btn-wrapper .ui-btn--lg.ui-btn--ghost:active {
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    filter: brightness(.94);
    padding: 14px 48px 10px;
}


.brand {
    display: inline-block; flex: none; width: 1em; height: 1em;
    background: currentColor;
    -webkit-mask: var(--brand) center / contain no-repeat; mask: var(--brand) center / contain no-repeat;
}
.brand--telegram { --brand: url("../img/brand/telegram.svg"); }
.brand--discord { --brand: url("../img/brand/discord.svg"); }
.brand--youtube { --brand: url("../img/brand/youtube.svg"); }
.brand--instagram { --brand: url("../img/brand/instagram.svg"); }

/* ---------- Hero + HUD strip ---------- */
.home-hero#main.hero {
    flex-direction: column;
    justify-content: flex-start;
    min-height: clamp(720px, 100vh, 1240px);
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 48px;
}
.home-hero > .wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.home-hud {
    position: relative; z-index: 2; width: 100%;
    margin-top: clamp(36px, 5vh, 72px);
}
.home-hud__row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1px;
    margin-bottom: clamp(24px, 3vh, 48px);
    border-radius: 16px; overflow: hidden;
    background: rgba(216, 177, 106, .22);
    box-shadow: 0 0 0 1px rgba(216, 177, 106, .25), 0 24px 60px -20px rgba(0, 0, 0, .9);
}
.home-hud__stat {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(24, 21, 17, .9), rgba(10, 9, 8, .94));
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background .3s;
}
.home-hud__stat:hover { background: linear-gradient(180deg, rgba(40, 32, 22, .92), rgba(12, 10, 8, .95)); }
.home-hud__icon {
    display: grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #2d261c, #090807 72%);
    box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .55), 0 0 18px -6px var(--u-gold-glow);
}
.home-hud__icon .gi { width: 26px; height: 26px; }
.home-hud__stat--realm .pulse { margin: 0 12px 0 8px; }
.home-hud__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-hud__text b { color: var(--u-gold-hi); font: normal 24px/1 var(--font-accent-bold), serif; letter-spacing: .04em; }
.home-hud__stat--realm b { color: var(--u-text); }
.home-hud__text small { color: var(--u-muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.home-hud__stat--realm small { color: var(--u-life); }

.home-hud--top .home-hud__row { margin-bottom: 0; }
.home-hud--bottom { margin-top: 0; }
.home-bars__ornament {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 34px 0 38px;
    min-height: 22px;
}
.home-bars__ornament .ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(520px, 72%);
    margin: 0 auto;
}
.home-bars__ornament .ornament::before,
.home-bars__ornament .ornament::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e8c98a 40%, #f6e7c1);
}
.home-bars__ornament .ornament::after { transform: scaleX(-1); }
.home-bars__ornament .ornament span {
    flex: none;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #fff3cf, #d7b26a);
    border: 1px solid #1a1208;
    box-shadow: 0 0 0 1px #f0d59a, 0 0 18px rgba(240, 213, 154, .9);
}


/* ---------- Features ---------- */
.home-features__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(16px, 1.4vw, 28px);
}
.home-feature {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 18px; row-gap: 6px;
    padding: clamp(22px, 1.8vw, 32px);
    border-radius: 16px;
    color: var(--u-text);
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(216, 177, 106, .12), transparent 55%),
        linear-gradient(180deg, rgba(26, 23, 19, .92), rgba(11, 10, 9, .95));
    box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .2), inset 0 1px 0 rgba(255, 240, 210, .06), 0 20px 50px -24px rgba(0, 0, 0, .9);
    transition: transform .35s var(--u-ease), box-shadow .35s;
}
.home-feature::after {
    content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--u-gold), transparent); opacity: .5; transition: opacity .3s;
}
.home-feature:hover { color: var(--u-text); transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .5), 0 26px 60px -22px rgba(0, 0, 0, .95), 0 0 40px -16px var(--u-gold-glow); }
.home-feature:hover::after { opacity: 1; }
.home-feature__icon {
    grid-row: 1 / span 2;
    display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 18px;
    background: radial-gradient(circle at 50% 30%, #32291d, #0b0a08 75%);
    box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .45), 0 10px 24px -10px rgba(0, 0, 0, .9);
    transition: transform .4s var(--u-ease);
}
.home-feature__icon .gi { width: 36px; height: 36px; }
.home-feature:hover .home-feature__icon { transform: rotate(-6deg) scale(1.06); }
.home-feature strong { align-self: end; padding-right: 20px; color: var(--u-gold-hi); font: normal 17px/1.25 var(--font-accent-bold), serif; letter-spacing: .08em; text-transform: uppercase; }
.home-feature__text { color: var(--u-text-2); font-size: 14px; line-height: 1.6; }
.home-feature__more {
    position: absolute; right: 22px; top: 28px; width: 9px; height: 9px;
    border: solid var(--u-gold); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
    opacity: .4; transition: transform .3s var(--u-ease), opacity .3s;
}
.home-feature:hover .home-feature__more { opacity: 1; transform: translateX(4px) rotate(45deg); }

/* ---------- Steps ---------- */
.home-steps__list {
    position: relative;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 32px);
    margin: 0; padding: 0; list-style: none;
}
.home-steps__list::before {
    content: ""; position: absolute; left: 16%; right: 16%; top: 62px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 177, 106, .55), transparent);
}
.home-step {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 30px 24px 28px; text-align: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 20, 17, .7), rgba(9, 8, 7, .8));
    box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .16);
}
.home-step__num { position: absolute; top: 16px; left: 20px; color: rgba(216, 177, 106, .5); font: normal 13px/1 var(--font-accent-bold), serif; letter-spacing: .2em; }
.home-step__icon {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #3b2f1f, #0b0a08 72%);
    box-shadow: 0 0 0 6px rgba(9, 8, 7, .9), inset 0 0 0 1px var(--u-gold), 0 0 26px -6px var(--u-gold-glow);
}
.home-step__icon .gi { width: 32px; height: 32px; }
.home-step strong { color: var(--u-gold-hi); font: normal 17px/1.2 var(--font-accent-bold), serif; letter-spacing: .08em; text-transform: uppercase; }
.home-step p { margin: 0; color: var(--u-text-2); font-size: 14px; }
.home-step .ui-btn { margin-top: 6px; }

/* ---------- Community ---------- */
.home-community__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 1.4vw, 28px); }
.home-social {
    --tone: #d8b16a;
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 18px;
    padding: 22px 24px;
    border-radius: 16px;
    color: var(--u-text);
    background:
        radial-gradient(80% 140% at 0% 50%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 60%),
        linear-gradient(180deg, rgba(24, 21, 17, .92), rgba(10, 9, 8, .95));
    box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .18), 0 20px 50px -24px rgba(0, 0, 0, .9);
    transition: transform .35s var(--u-ease), box-shadow .35s;
}
.home-social--telegram { --tone: #2aabee; }
.home-social--discord { --tone: #5865f2; }
.home-social--youtube { --tone: #ff3d3d; }
.home-social--instagram { --tone: #e1306c; }
.home-social:hover { color: var(--u-text); transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 55%, transparent), 0 26px 60px -22px rgba(0, 0, 0, .95), 0 0 40px -14px var(--tone); }
.home-social__icon {
    display: grid; place-items: center; flex: none;
    width: 58px; height: 58px; border-radius: 50%;
    color: #f4ead6;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tone) 50%, #111), #0a0908 78%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 60%, transparent), 0 0 22px -8px var(--tone);
    transition: transform .4s var(--u-ease);
}
.home-social__icon .brand { width: 26px; height: 26px; }
.home-social:hover .home-social__icon { transform: scale(1.08) rotate(-6deg); }
.home-social__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; text-align: left; }
.home-social__body strong { color: var(--u-gold-hi); font: normal 16px/1.2 var(--font-accent-bold), serif; letter-spacing: .1em; text-transform: uppercase; }
.home-social__body span { color: var(--u-text-2); font-size: 13px; line-height: 1.5; }
.home-social__arrow { flex: none; width: 9px; height: 9px; border: solid var(--u-gold); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: .5; transition: transform .3s var(--u-ease), opacity .3s; }
.home-social:hover .home-social__arrow { opacity: 1; transform: translateX(4px) rotate(45deg); }

/* ---------- Footer socials ---------- */
.site-footer__socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__socials a {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    color: var(--u-text-2);
    background: radial-gradient(circle at 50% 30%, #2a241b, #0a0908 75%);
    box-shadow: inset 0 0 0 1px rgba(216, 177, 106, .35);
    transition: color .25s, box-shadow .25s, transform .25s var(--u-ease);
}
.site-footer__socials a .brand { width: 18px; height: 18px; }
.site-footer__socials a:hover { color: var(--u-gold-hi); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--u-gold), 0 0 18px -4px var(--u-gold-glow); }

@media (max-width: 960px) {
    .home-steps__list { grid-template-columns: 1fr; }
    .home-steps__list::before { display: none; }
    .home-hud__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .home-hud__row { grid-template-columns: 1fr; }
    .home-feature { grid-template-columns: 1fr; text-align: left; }
    .home-feature__icon { grid-row: auto; margin-bottom: 8px; }
}

/* layout fixes: one HUD row, balanced feature grid */
.home-hero .home-hud .wrap { width: min(calc(100% - 2 * var(--u-gutter)), 1400px); }
@media (min-width: 961px) {
    .home-hud__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
}
@media (min-width: 1200px) {
    .home-features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


.home-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #e6c27a;
    font-size: 13px;
    letter-spacing: .34em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 #000;
}
.home-hero .hero-eyebrow::before,
.home-hero .hero-eyebrow::after {
    content: "";
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e6c27a);
}
.home-hero .hero-eyebrow::after { transform: scaleX(-1); }

.home-hero .home-realms {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 56px 0 0;
    background: transparent;
}
.home-hero .home-realms .section-head { margin-bottom: 28px; }

.home-realms .section-head .section-eyebrow { margin-top: 16px; }

.realm-card.server_item.realm-card--x200 {
    background-color: #120e0b;
    background-image:
        linear-gradient(90deg, rgba(8, 6, 5, .92) 0%, rgba(8, 6, 5, .72) 28%, rgba(8, 6, 5, .28) 52%, rgba(8, 6, 5, .42) 100%),
        url("../img/x200-card.jpg");
    background-repeat: no-repeat;
    background-position: center, right center;
    background-size: auto, cover;
}

.realm-card.server_item.realm-card--x20 {
    background-color: #120e0b;
    background-image:
        linear-gradient(90deg, rgba(8, 6, 5, .9) 0%, rgba(8, 6, 5, .58) 24%, rgba(8, 6, 5, .16) 46%, rgba(8, 6, 5, .38) 100%),
        url("../img/x20-card.jpg");
    background-repeat: no-repeat;
    background-position: center, center center;
    background-size: auto, cover;
}

@media (min-width: 601px) {
    .home-hero .home-realms .realm-card.server_item {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "crest desc" "info info";
        padding-bottom: 86px;
    }
    .home-hero .home-realms .realm-card__actions {
        position: absolute;
        right: 22px;
        bottom: 16px;
        z-index: 2;
    }
}

.home-hero .home-realms .realm-card__actions .ui-btn {
    border: 0;
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    box-shadow: none;
    clip-path: none;
    color: #3a2410;
    text-shadow: 0 1px 0 rgba(255, 236, 190, .55);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
    min-height: 48px;
    min-width: 210px;
    padding: 8px 34px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.home-hero .home-realms .realm-card__actions .ui-btn:hover {
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    color: #2a1808;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) brightness(1.08);
}
.home-hero .home-realms .realm-card__actions .ui-btn:active {
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    filter: brightness(.94);
    padding: 10px 34px 6px;
}

.home-hero .home-realms .realm-card--x200 .realm-card__crest::before {
    content: none;
}
.home-hero .home-realms .realm-card--x200 .realm-card__crest img {
    filter: none;
}

.site-header .nav-link--servers {
    height: 100%;
    cursor: pointer;
    font: inherit;
}
.site-header .nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .85;
    transition: transform .2s ease;
}
.site-header .nav-item--servers:hover .nav-caret,
.site-header .nav-item--servers.is-open .nav-caret { transform: rotate(180deg); }

.site-header .nav-item--servers { position: relative; }
.site-header .servers-menu {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    z-index: 130;
    width: 280px;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1a1511, #100e0c);
    border: 1px solid rgba(201, 164, 99, .38);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.site-header .nav-item--servers:hover .servers-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
}
.site-header .servers-menu__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.site-header .servers-menu__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.site-header .servers-menu__tabs label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    margin: 0;
    padding: 8px 10px 10px;
    border-radius: 10px 10px 0 0;
    color: #b7ab99;
    cursor: pointer;
    box-shadow: inset 0 -2px 0 transparent;
}
.site-header .servers-menu__tabs img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45));
}
.site-header .servers-menu__tabs b,
.site-header .servers-menu__tabs small { display: block; }
.site-header .servers-menu__tabs b {
    color: #f3e6c8;
    font-family: var(--font-accent-bold), serif;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: .04em;
    line-height: 1.1;
}
.site-header .servers-menu__tabs small {
    color: #8d8274;
    font-size: 11px;
    letter-spacing: .04em;
}
.site-header #servers-pvp:checked ~ .servers-menu__tabs label[for="servers-pvp"],
.site-header #servers-rpg:checked ~ .servers-menu__tabs label[for="servers-rpg"] {
    color: #fff4d6;
    box-shadow: inset 0 -2px 0 #e6c27a;
    background: linear-gradient(180deg, rgba(230, 194, 122, .08), transparent);
}
.site-header .servers-menu__pane { display: none; padding: 8px 6px 6px; }
.site-header #servers-pvp:checked ~ .servers-menu__pane--pvp,
.site-header #servers-rpg:checked ~ .servers-menu__pane--rpg { display: block; }
.site-header .servers-menu__name {
    padding: 8px 10px 6px;
    color: #f6e7c4;
    font-family: var(--font-accent-bold), serif;
    font-size: 16px;
    letter-spacing: .03em;
}
.site-header .servers-menu__pane a {
    display: block;
    padding: 8px 10px;
    color: #d8ccb6;
    font-size: 14px;
    letter-spacing: .02em;
    border-radius: 8px;
}
.site-header .servers-menu__pane a:hover {
    color: #fff4d6;
    background: rgba(230, 194, 122, .08);
}

@media (max-width: 960px) {
    .site-header .nav-item--servers { display: block; }
    .site-header .servers-menu {
        position: static;
        left: auto;
        width: auto;
        margin: 0 0 8px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
    }
    .site-header .nav-item--servers:hover .servers-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
    }
    .site-header .nav-item--servers.is-open .servers-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-header .header-download,
.site-header .header-account__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    border-radius: 10px;
    font-family: var(--font-regular), sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.site-header .header-download {
    height: auto;
    min-height: 46px;
    padding: 8px 42px;
    border: 0;
    border-radius: 0;
    background: url("../img/dark-btn.png") center / 100% 100% no-repeat;
    box-shadow: none;
    color: #f4efe6;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .65);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
.site-header .header-download:hover {
    border-color: transparent;
    background: url("../img/dark-btn.png") center / 100% 100% no-repeat;
    color: #fff;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) brightness(1.12);
}
.site-header .header-download svg,
.site-header .header-account__btn svg,
.site-header .header-account__menu svg {
    width: 16px;
    height: 16px;
    flex: none;
}
.site-header .header-account { position: relative; }
.site-header .header-account__btn {
    height: auto;
    min-height: 46px;
    padding: 8px 42px;
    border: 0;
    border-radius: 0;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    box-shadow: none;
    color: #3a2410;
    text-shadow: 0 1px 0 rgba(255, 236, 190, .55);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
    font-family: var(--font-accent-bold), serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.site-header .header-account__btn svg { display: block; }
.site-header .header-account__btn .nav-caret {
    display: inline-block;
    border-top-color: currentColor;
    opacity: 1;
}
.site-header .header-account:hover .header-account__btn .nav-caret { transform: rotate(180deg); }
.site-header .header-account__btn span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-header .header-account__btn:hover {
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    color: #2a1808;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) brightness(1.08);
}
.site-header .header-account__menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 140;
    min-width: 176px;
    padding: 14px 8px 8px;
    border-radius: 12px;
    background: linear-gradient(#1b1814, #1b1814) 0 10px / 100% calc(100% - 10px) no-repeat;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .18s;
}
.site-header .header-account__menu::before {
    content: "";
    position: absolute;
    left: -28px;
    right: -8px;
    top: 0;
    height: 14px;
}
.site-header .header-account__menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 10px;
    bottom: 0;
    z-index: -1;
    border-radius: 12px;
    background: #1b1814;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.site-header .header-account:hover .header-account__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.site-header .header-account__menu a,
.site-header .header-account__menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #f3ece2;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.site-header .header-account__menu a:hover,
.site-header .header-account__menu button:hover { background: rgba(255, 255, 255, .06); }
.site-header .header-account__menu form { margin: 0; }

@media (max-width: 1100px) {
    .site-header .header-download span { display: none; }
    .site-header .header-download { padding: 0 12px; }
}
@media (max-width: 960px) {
    .site-header .header-actions { display: none; }
}

.site-header .nav__langs-item--current {
    height: auto;
    min-height: 32px;
    gap: 6px;
    padding: 3px 22px;
    border: 0;
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    box-shadow: none;
    color: #3a2410;
    text-shadow: 0 1px 0 rgba(255, 236, 190, .45);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
    font-size: 11px;
    letter-spacing: .06em;
}
.site-header .nav__langs-item--current:hover,
.site-header .nav__langs-item--current.active {
    border-image: none;
    background: url("../img/gold-btn.png") center / 100% 100% no-repeat;
    color: #2a1808;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)) brightness(1.06);
}
.site-header .nav__langs-item--current::after {
    border-color: #3a2410;
    width: 5px;
    height: 5px;
}
.site-header .nav__langs-item--current img {
    width: 14px;
    height: 10px;
    box-shadow: none;
}

/* Account menu uses the same plate as the language dropdown. */
.site-header .header-account__menu {
    top: calc(100% + 8px);
    min-width: 168px;
    padding: 8px;
    border: 0;
    border-radius: var(--u-r, 2px);
    background: var(--u-plate-bg);
    box-shadow: var(--u-plate-shadow);
    transform: translateY(4px);
}
.site-header .header-account__menu::before {
    left: auto;
    right: 22px;
    top: -6px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: #1d1a16;
    border-left: 1px solid rgba(138, 111, 69, .75);
    border-top: 1px solid rgba(138, 111, 69, .75);
    box-shadow: -1px -1px 0 #000;
}
.site-header .header-account__menu::after {
    left: -16px;
    right: -8px;
    top: -14px;
    bottom: auto;
    z-index: 1;
    width: auto;
    height: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.site-header .header-account:hover .header-account__menu {
    transform: none;
}
.site-header .header-account__menu a,
.site-header .header-account__menu button {
    position: relative;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 2px;
    color: #d8ccb6;
    font-family: var(--font-accent-bold), serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.site-header .header-account__menu a:hover,
.site-header .header-account__menu button:hover {
    background: linear-gradient(90deg, rgba(230, 194, 122, .16), rgba(230, 194, 122, 0));
    color: #fff4d6;
}
.site-header .header-account__menu a:hover::before,
.site-header .header-account__menu button:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    height: auto;
    transform: none;
    border: 0;
    box-shadow: none;
    background: var(--gold);
}
.site-header .header-account__menu svg {
    color: var(--gold-soft, #e6c27a);
}

/* Keep each dropdown diamond on the same vertical line as the button diamond. */
.site-header .nav__langs-stroke {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation: none;
}
.site-header .nav__langs-stroke::before {
    left: 50%;
    right: auto;
    margin-left: -5px;
}
.site-header .header-account__menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px);
}
.site-header .header-account:hover .header-account__menu {
    transform: translateX(-50%);
}
.site-header .header-account__menu::before {
    left: 50%;
    right: auto;
    margin-left: -5px;
}

/* Language menu opens on hover, same as Account. */
@media (min-width: 961px) {
    .site-header .nav__langs-stroke {
        display: block;
        top: calc(100% + 8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .16s ease, visibility 0s linear .18s;
    }
    .site-header .nav__langs-stroke::after {
        content: "";
        position: absolute;
        left: -24px;
        right: -24px;
        top: -16px;
        height: 18px;
        background: transparent;
    }
    .site-header .nav__langs:hover .nav__langs-stroke {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .16s ease, visibility 0s;
    }
    .site-header .nav__langs:hover .nav__langs-item--current::after {
        transform: rotate(225deg);
        margin-top: 3px;
    }
}

/* x200 premium comparison and currency row */
.premium-compare {
    display: grid;
    grid-template-columns: minmax(120px, 1.4fr) repeat(2, minmax(72px, .5fr));
    align-items: center;
    gap: 8px 12px;
    max-width: 460px;
    margin: 4px 0 16px;
    padding: 12px 16px;
    background: var(--u-well-bg);
    box-shadow: var(--u-well-shadow);
}
.premium-compare span {
    color: #d8ccb6;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.premium-compare strong {
    text-align: center;
    color: var(--u-gold-hi, #f5dca2);
    font-family: var(--font-accent-bold), serif;
    font-size: 22px;
    line-height: 1;
}
.currency-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 8px 0 4px;
    padding: 0;
    list-style: none;
}
.currency-row li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.currency-row li::before { content: none; }
.currency-row img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px #000);
}
.currency-row span { color: #e9e1d3; font-size: 14px; }

/* Footer copyright sits in the center; the back-to-top control stays on the right. */
.site-footer .copyright {
    position: relative;
    justify-content: center;
    text-align: center;
}
.site-footer .copyright p { text-align: center; }
.site-footer .site-footer__top {
    position: absolute;
    right: 0;
    top: 22px;
}

.brand--tiktok { --brand: url("../img/brand/tiktok.svg"); }
.brand--facebook { --brand: url("../img/brand/facebook.svg"); }
