/* Custom: Heltonia theme v2 (heltonia2). RubinOT-like structure with Heltonia's own art: dark iron plates edged in
   bronze and crimson over parchment bodies, on the launcher illustration. Loaded after heltonia.css.
   Part A = layout and components (.hx-*). Part B = parchment skin for the inner pages (overrides heltonia.css part 2).
   Design notes: notas/web-rediseno.md. */

:root {
    --hx-night: #140d0c;
    --hx-iron: #231816;
    --hx-iron-2: #3d2722;
    --hx-crimson: #9e2b25;
    --hx-bronze: #c8963e;
    --hx-bronze-dk: #7a5222;
    --hx-gold: #ecc985;
    --hx-cream: #f6e7c4;
    --hx-parch: #efe3c8;
    --hx-parch-2: #e6d5b0;
    --hx-parch-3: #d9c294;
    --hx-edge: #9a7440;
    --hx-ink: #3b2416;
    --hx-ink-soft: #6e5239;
    --hx-link: #8e3a14;
    --hx-ember: #e0782a;
    --hx-ember-dk: #a9471a;
    --hx-col: 232px;
}

/* ============================================================== A. page */
body.ht.hx {
    color: var(--hx-ink);
    font-size: 15px;
    background-color: var(--hx-night);
    background-image:
        radial-gradient(ellipse 620px 120% at 50% 40%, rgba(20, 13, 12, .55), rgba(20, 13, 12, 0) 70%),
        linear-gradient(180deg, rgba(20, 13, 12, 0) 0, rgba(20, 13, 12, .25) 60%, rgba(20, 13, 12, .7) 100%),
        var(--hx-bg);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}
.hx a { color: var(--hx-link); }
.hx a:hover { color: var(--hx-crimson); }
.hx :focus-visible { outline: 2px solid var(--hx-ember); outline-offset: 2px; }

/* ============================================================== header: the logo is the memorable element */
.hx-header { display: flex; justify-content: center; padding: 26px 16px 18px; }
.hx-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none !important; }
.hx-logo img { display: block; max-width: min(420px, 80vw); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)); }
.hx-logo__emblem { width: 64px; }
.hx-logo__name {
    font-family: var(--ht-display);
    font-weight: 800;
    font-size: clamp(44px, 7vw, 76px);
    line-height: 1;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #fff1c8 0%, var(--hx-gold) 38%, var(--hx-ember) 78%, var(--hx-ember-dk) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px #2a140e;
    filter: drop-shadow(0 3px 0 #2a140e) drop-shadow(0 8px 16px rgba(0, 0, 0, .75));
}
.hx-burger { display: none; }

/* ============================================================== layout: 3 fixed columns, stack on small screens */
.hx-layout {
    display: grid;
    grid-template-columns: var(--hx-col) minmax(0, 1fr) var(--hx-col);
    gap: 10px;
    max-width: 1280px;   /* centre ~770px, like RubinOT */
    margin: 0 auto;
    padding: 0 12px 40px;
    align-items: start;
}
.hx-left, .hx-right, .hx-main { min-width: 0; }

/* ============================================================== box = plate + parchment body */
.hx-box { margin: 0 0 12px; position: relative; }
.hx-plate {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    margin: 0 -7px;
    padding: 0 26px;
    font-family: var(--ht-display) !important;
    font-weight: 700;
    font-size: 17px !important;
    line-height: 1.1;
    letter-spacing: .04em;
    color: var(--hx-cream) !important;
    text-shadow: 0 1px 0 #000, 0 0 10px rgba(0, 0, 0, .6);
    background: linear-gradient(180deg, var(--hx-gold), var(--hx-bronze) 45%, var(--hx-bronze-dk));
    clip-path: polygon(0 50%, 14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%);
    text-align: center;
}
.hx-plate::before {   /* iron face inside the bronze edge */
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, var(--hx-iron-2), var(--hx-iron) 60%, #1a100f);
    clip-path: polygon(0 50%, 13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%);
}
.hx-plate::after {    /* crimson filament under the top edge */
    content: "";
    position: absolute;
    left: 18px; right: 18px; top: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214, 70, 52, .8), transparent);
}
.hx-plate[data-tone="gold"]::before {
    background: linear-gradient(180deg, #8c3a14, #5a2210 60%, #3a1509);
}
.hx-plate[data-tone="gold"] { color: #ffe9a8 !important; }
h1.hx-plate, h2.hx-plate { margin-top: 0; margin-bottom: 0; }

.hx-body {
    position: relative;
    margin: -4px 0 0;
    padding: 14px 12px 12px;
    color: var(--hx-ink);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(255, 252, 240, .55), rgba(255, 252, 240, 0) 55%),
        radial-gradient(ellipse at 100% 100%, rgba(150, 100, 40, .2), rgba(150, 100, 40, 0) 60%),
        var(--hx-parch);
    border: 2px solid var(--hx-edge);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 0 22px rgba(130, 85, 30, .28), 0 8px 18px rgba(0, 0, 0, .5);
}
.hx-stack { display: grid; gap: 8px; }
.hx-center { text-align: center; }
.hx-center p { margin: 6px 0 10px; color: var(--hx-ink-soft); }
.hx-muted { color: var(--hx-ink-soft); margin: 0; }
.hx-more { display: block; margin-top: 8px; text-align: center; font-weight: 700; }

/* ============================================================== buttons */
.hx-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 14px;
    border: 1px solid #2a140e;
    border-radius: 4px;
    font-family: var(--ht-display);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.1;
    color: #fff7e6 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 rgba(0, 0, 0, .35);
    cursor: pointer;
    transition: filter .15s;
}
.hx-btn:hover { filter: brightness(1.12); color: #fff !important; }
.hx-btn:active { transform: translateY(1px); }
.hx-btn--ember { background: linear-gradient(180deg, #f39a4a, var(--hx-ember) 45%, var(--hx-ember-dk)); }
.hx-btn--iron { background: linear-gradient(180deg, #6a4a3c, #4a2f26 50%, #301d18); color: var(--hx-cream) !important; }
.hx-btn--discord { background: linear-gradient(180deg, #7983f5, #5865f2 50%, #3f49c4); }
.hx-btn--download {
    margin: 0 -2px 12px;
    min-height: 48px;
    font-size: 19px;
    border: 2px solid #2a140e;
    background: linear-gradient(180deg, #f6ad5c, var(--hx-ember) 45%, #8e3812);
    box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .45), 0 6px 14px rgba(0, 0, 0, .5);
}

/* ============================================================== left menu */
.hx-menu__group > summary { list-style: none; cursor: pointer; }
.hx-menu__group > summary::-webkit-details-marker { display: none; }
.hx-plate__chev { position: absolute; right: 22px; font-size: 11px; color: var(--hx-gold); transition: transform .2s; }
.hx-menu__group[open] > summary .hx-plate__chev { transform: rotate(180deg); }
.hx-menu__group:not([open]) { margin-bottom: 6px; }
.hx-menu__list { list-style: none; margin: -4px 0 0; padding: 8px 6px; }
.hx-menu__list li + li { border-top: 1px solid rgba(110, 75, 35, .18); }
.hx-menu__list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-left: 3px solid transparent;
    color: var(--hx-ink) !important;
    font-weight: 500;
    text-decoration: none !important;
}
.hx-menu__list a i { font-size: 9px; color: var(--hx-ink-soft); }
.hx-menu__list a:hover { background: rgba(200, 150, 62, .2); }
.hx-menu__list a[aria-current="page"] { border-left-color: var(--hx-crimson); background: rgba(158, 43, 37, .1); font-weight: 700; }

/* ============================================================== top bar */
.hx-topbar {
    position: relative;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    min-height: 46px;
    margin: 0 -7px 12px;
    padding: 6px 30px;
    background: linear-gradient(180deg, var(--hx-gold), var(--hx-bronze) 45%, var(--hx-bronze-dk));
    clip-path: polygon(0 50%, 18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%);
    font-weight: 700;
}
.hx-topbar::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 40%), linear-gradient(180deg, var(--hx-iron-2), var(--hx-iron));
    clip-path: polygon(0 50%, 17px 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 17px 100%);
}
.hx-topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--hx-cream) !important; text-decoration: none !important; }
.hx-topbar a:hover { color: #fff !important; }
.hx-topbar a.is-live i { color: #ff5a4a; }
.hx-topbar__sep { width: 1px; height: 20px; background: rgba(236, 201, 133, .35); }
.hx-topbar__online strong { color: #7fd38f; }
.hx-topbar__online.is-off { color: #e88a7a !important; }
.hx-flags { display: inline-flex; gap: 6px; }
.hx-flags a { padding: 2px; border: 1px solid transparent; border-radius: 3px; opacity: .65; }
.hx-flags a[aria-current="true"], .hx-flags a:hover { opacity: 1; border-color: var(--hx-gold); }
.hx-flags img { display: block; width: 24px; height: 16px; }

/* ============================================================== news ticker */
.hx-ticker__list { padding: 6px; }
.hx-ticker__row { border-bottom: 1px solid rgba(110, 75, 35, .2); }
.hx-ticker__row:nth-child(even) { background: rgba(200, 160, 90, .14); }
.hx-ticker__row > summary {
    display: grid;
    grid-template-columns: 22px auto minmax(0, 1fr) 12px;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
}
.hx-ticker__row > summary::-webkit-details-marker { display: none; }
.hx-ticker__row > summary:hover { background: rgba(200, 150, 62, .2); }
.hx-ticker__icon { color: var(--hx-crimson); text-align: center; }
.hx-ticker__row time { color: var(--hx-ink-soft); font-size: 13px; white-space: nowrap; }
.hx-ticker__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hx-ticker__chev { font-size: 10px; color: var(--hx-ink-soft); transition: transform .2s; }
.hx-ticker__row[open] .hx-ticker__chev { transform: rotate(90deg); }
.hx-ticker__row[open] .hx-ticker__text { white-space: normal; }
.hx-ticker__full { padding: 4px 12px 12px 40px; }
.hx-ticker__row[open] .hx-ticker__full { display: block; }
.hx-ticker__row:not([open]) .hx-ticker__full { display: none; }

/* ============================================================== news post */
.hx-post { padding: 2px 4px 0; }
.hx-post__head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid rgba(110, 75, 35, .3); }
.hx-post__icon {
    display: grid; place-items: center; flex: none;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--hx-crimson); color: var(--hx-cream); font-size: 14px;
    box-shadow: 0 0 0 2px var(--hx-bronze);
}
.hx .hx-post__title { margin: 0 !important; font-family: var(--ht-display); font-size: 21px !important; color: var(--hx-ink) !important; }
.hx .hx-post__title a { color: inherit !important; }
.hx-post__date { margin-left: auto; font-size: 13px; color: var(--hx-ink-soft); white-space: nowrap; }
.hx-post__body { line-height: 1.6; }
.hx-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.hx-divider::before, .hx-divider::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--hx-bronze)); }
.hx-divider::after { transform: scaleX(-1); }
.hx-divider span { width: 30px; height: 28px; background: url(images/hx/emblem.png) center / contain no-repeat; }
.hx-page__body > .hx-post:last-child .hx-divider { margin-bottom: 0; }

/* ============================================================== right column */
.hx-shop__banner {
    display: flex; align-items: center; gap: 10px;
    margin: -2px 0 10px; padding: 12px 10px;
    border: 1px solid rgba(110, 60, 20, .45); border-radius: 4px;
    background: radial-gradient(circle at 20% 50%, rgba(255, 210, 120, .55), rgba(255, 210, 120, 0) 55%), linear-gradient(135deg, #5a2210, #2a140e);
    color: var(--hx-cream) !important; text-decoration: none !important; font-size: 14px; line-height: 1.3;
}
.hx-shop__banner img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.hx-boosted { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-boosted figure { margin: 0; text-align: center; }
.hx-slot {
    display: grid; place-items: center;
    width: 76px; height: 76px; margin: 0 auto 6px;
    background: radial-gradient(circle, #4a332a, #22150f);
    border: 2px solid var(--hx-bronze); border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .7), 0 0 0 1px #2a140e;
}
.hx-slot img { max-width: 64px; max-height: 64px; image-rendering: pixelated; }
.hx-boosted figcaption { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.hx-boosted figcaption b { display: block; font-family: var(--ht-display); font-size: 14px; color: var(--hx-crimson); }
.hx-server p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 4px 0; font-size: 14px; }
.hx-server p + p { border-top: 1px solid rgba(110, 75, 35, .2); }
.hx-server span { color: var(--hx-ink-soft); }
.hx-server time { font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-server a { font-weight: 700; text-align: right; }
.hx-discord__icon {
    display: grid; place-items: center;
    width: 58px; height: 58px; margin: 0 auto;
    border-radius: 50%; border: 3px solid var(--hx-bronze);
    background: #5865f2; color: #fff; font-size: 28px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.hx-wiki__icon { background: var(--hx-crimson); font-size: 24px; }
.hx-top { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.hx-top li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.hx-top li + li { border-top: 1px solid rgba(110, 75, 35, .18); }
.hx-top__outfit { flex: none; width: 40px; height: 40px; background: center bottom / 64px no-repeat; }
.hx-top__who { display: grid; min-width: 0; line-height: 1.2; }
.hx-top__who a { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-top__who small { color: var(--hx-ink-soft); font-size: 12px; }
.hx-search { display: grid; gap: 8px; }
.hx-search input {
    width: 100%; box-sizing: border-box; padding: 7px 9px;
    border: 1px solid var(--hx-edge); border-radius: 4px; background: #fffaf0; color: var(--hx-ink); font: inherit;
}

.hx-footer { text-align: center; color: var(--hx-cream); text-shadow: 0 1px 2px #000; font-size: 13px; }
.hx-totop {
    position: fixed; right: 18px; bottom: 18px; z-index: 50;
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 2px solid var(--hx-bronze); border-radius: 50%;
    background: var(--hx-iron); color: var(--hx-gold) !important;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.hx-totop.is-visible { opacity: 1; pointer-events: auto; }

/* ============================================================== responsive */
@media (max-width: 1100px) {
    .hx-layout { grid-template-columns: var(--hx-col) minmax(0, 1fr); }
    .hx-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 12px; }
}
@media (max-width: 720px) {
    .hx-header { flex-direction: column; align-items: center; gap: 12px; padding: 18px 16px 12px; }
    .hx-burger {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
        border: 2px solid var(--hx-bronze); border-radius: 4px; background: var(--hx-iron);
        color: var(--hx-cream); font: 700 16px var(--ht-display); cursor: pointer;
    }
    .hx-layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px 32px; }
    .hx-left { display: none; }
    .hx-left.is-open { display: block; }
    .hx-topbar { gap: 6px 12px; padding: 8px 26px; font-size: 14px; }
    .hx-ticker__row > summary { grid-template-columns: 20px minmax(0, 1fr) 12px; }
    .hx-ticker__row time { display: none; }
    .hx-ticker__full { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .hx-btn, .hx-plate__chev, .hx-ticker__chev, .hx-totop { transition: none; }
}

/* ===================================================================================================================
   B. Parchment skin for the inner pages. heltonia.css part 2 paints them dark through its variables and a few fixed
   colours; inside the page body the variables are switched to parchment and the fixed colours are overridden here.
   =================================================================================================================== */
.hx .hx-page__body {
    container: hxpage / inline-size;   /* inner-page twigs adapt to this column (heltonia.css @container hxpage) */
    --ht-text: var(--hx-ink);
    --ht-muted: var(--hx-ink-soft);
    --ht-bronze: #8a5a1c;
    --ht-bronze-hi: #7a2f12;
    --ht-slate: #f3e9d2;
    --ht-slate-2: #ebdcba;
    --ht-slate-3: #dcc596;
    --ht-night: #e6d5b0;
    --ht-line: rgba(120, 80, 30, .35);
    font-size: 15px;
    color-scheme: light;
}
.hx .hx-page__body b, .hx .hx-page__body strong { color: inherit; }
.hx .hx-page__body table tr:nth-child(odd) > td { background-color: rgba(255, 250, 235, .55); }
.hx .hx-page__body table tr:nth-child(even) > td { background-color: rgba(200, 160, 90, .16); }
.hx .hx-page__body table table tr > td { background-color: transparent; }
.hx .hx-page__body table tr.Odd > td, .hx .hx-page__body .Odd { background-color: rgba(255, 250, 235, .55) !important; }
.hx .hx-page__body table tr.Even > td, .hx .hx-page__body .Even { background-color: rgba(200, 160, 90, .16) !important; }
.hx .hx-page__body td, .hx .hx-page__body th { border-color: rgba(120, 80, 30, .2) !important; }
.hx .LabelV, .hx .LabelH, .hx .LabelV120, .hx .LabelV150, .hx .LabelV200, .hx td.LabelV, .hx .white {
    background: #dcc596 !important;
    color: var(--hx-ink) !important;
}
.hx .hx-page__body input:not([type]), .hx .hx-page__body input[type="text"], .hx .hx-page__body input[type="password"],
.hx .hx-page__body input[type="email"], .hx .hx-page__body input[type="number"], .hx .hx-page__body select,
.hx .hx-page__body textarea { background: #fffaf0 !important; color: var(--hx-ink) !important; }
.hx .hx-page__body select option { background: #fffaf0; color: var(--hx-ink); }
.hx .hx-page__body .FormFieldError, .hx .hx-page__body .ErrorMessage, .hx .hx-page__body .error { color: #a3221a !important; }
.hx .hx-page__body .CaptionContainer .Text { color: var(--hx-cream) !important; }
.hx .hx-page__body .CaptionContainer .CaptionInnerContainer {
    background: linear-gradient(180deg, var(--hx-iron-2), var(--hx-iron)) !important;
    border-color: var(--hx-bronze-dk);
}
.hx .hx-page__body .hn-card {
    border-color: rgba(120, 80, 30, .35);
    background: radial-gradient(circle at 50% 0%, rgba(255, 252, 240, .8), rgba(214, 190, 140, .55) 75%);
}
.hx .hx-page__body .hn-card__icon { color: var(--hx-crimson); }
.hx .hx-page__body .hn-card__bonus { color: #2f7a3e; }
.hx .hx-page__body .hn code { background: rgba(120, 80, 30, .15); color: var(--hx-link); }
.hx .hx-page__body img[src*="/letters/"] { filter: none; }
/* theme buttons used inside pages and news bodies (.ht-btn from heltonia.css) */
.hx .hx-page__body .ht-btn {
    border: 1px solid #2a140e;
    color: var(--hx-cream) !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
    background: linear-gradient(180deg, #6a4a3c, #4a2f26 50%, #301d18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 2px 0 rgba(0, 0, 0, .3);
}
.hx .hx-page__body .ht-btn--ember { background: linear-gradient(180deg, #f39a4a, var(--hx-ember) 45%, var(--hx-ember-dk)); color: #fff7e6 !important; }
.hx .hx-page__body .ht-btn:hover { filter: brightness(1.12); text-decoration: none; }

/* ============================================================== highscores (highscores.html.twig), RubinOT-like:
   filter box with selects + plain zebra table. Lives here because it only exists in heltonia2. */
.hxs { display: grid; gap: 14px; }
.hxs-filters {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px;
    padding: 14px; border: 1px solid var(--hx-edge); border-radius: 4px; background: rgba(255, 250, 236, .55);
}
.hxs-field { display: grid; gap: 4px; margin: 0; font-size: 14px; color: var(--hx-ink-soft); }
.hx .hx-page__body .hxs-field select {
    width: 100%; min-height: 36px; padding: 4px 10px; border: 1px solid var(--hx-edge); border-radius: 3px; font: inherit; font-size: 15px;
}
.hx .hx-page__body .hxs-field select:focus-visible { outline: 2px solid var(--hx-crimson); outline-offset: 1px; }
.hxs-filters__foot {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
    margin: 0; padding-top: 10px; border-top: 1px solid rgba(120, 80, 30, .25); font-size: 12px; color: var(--hx-ink-soft);
}
.hxs-board { border: 1px solid var(--hx-edge); border-radius: 4px; background: rgba(255, 250, 236, .55); padding: 10px; }
.hx .hx-page__body .hxs-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hx .hx-page__body .hxs-table th {
    padding: 7px 8px; text-align: left; font-weight: 700; color: var(--hx-ink);
    background: #dcc596; border-bottom: 1px solid var(--hx-edge) !important;
}
.hx .hx-page__body .hxs-table td { padding: 5px 8px; color: var(--hx-ink-soft); border-bottom: 1px solid rgba(120, 80, 30, .14) !important; }
.hx .hx-page__body .hxs-table tbody tr:nth-child(odd) > td { background: rgba(255, 252, 242, .7); }
.hx .hx-page__body .hxs-table tbody tr:nth-child(even) > td { background: rgba(220, 197, 150, .28); }
.hx .hx-page__body .hxs-table tbody tr:hover > td { background: rgba(200, 150, 62, .22); }
.hx .hx-page__body .hxs-table .hxs-num { text-align: right; white-space: nowrap; }
.hxs-rank { width: 48px; }
.hx .hx-page__body .hxs-top > .hxs-rank { font-weight: 700; }
.hx .hx-page__body .hxs-top--1 > .hxs-rank { color: #b8860b; }
.hx .hx-page__body .hxs-top--2 > .hxs-rank { color: #7d8691; }
.hx .hx-page__body .hxs-top--3 > .hxs-rank { color: #a0522d; }
.hx .hx-page__body .hxs-name a { color: var(--hx-link); font-weight: 600; }
.hx .hx-page__body .hxs-value { color: var(--hx-ink); font-weight: 700; }
.hxs-online { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #2f8a4a; vertical-align: middle; }
.hxs-empty { margin: 0; padding: 20px 8px; color: var(--hx-ink-soft); }
.hxs-pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 10px 0 2px; font-size: 14px; }
.hxs-pager [aria-disabled] { opacity: .45; }
@container hxpage (max-width: 460px) {
    .hx .hx-page__body .hxs-voc { display: none; }
    .hx .hx-page__body .hxs-table td, .hx .hx-page__body .hxs-table th { padding: 5px 5px; }
}

/* ============================================================== online (online.html.twig), RubinOT-like:
   world information box + "Players online" bar with A-Z letters + sortable zebra table. */
.hxo { display: grid; gap: 16px; }
.hxo-sec { display: grid; gap: 8px; }
.hx .hx-page__body .hxo-plate { justify-content: space-between; margin: 0 -4px; font-size: 15px !important; text-align: left; flex-wrap: wrap; padding: 6px 26px; }
.hxo-plate > span { display: inline-flex; align-items: center; gap: 8px; }
.hxo-letters { display: flex; flex-wrap: wrap; gap: 2px 7px; font-size: 12px; letter-spacing: 0; }
.hxo-letters a { color: var(--hx-gold) !important; }
.hxo-letters a:hover { color: #fff !important; text-decoration: none; }
.hxo-letters span { color: rgba(246, 231, 196, .35); }
.hxo-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0;
    padding: 14px 16px; border: 1px solid var(--hx-edge); border-radius: 4px; background: rgba(255, 250, 236, .55); font-size: 14px;
}
.hxo-info > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px; }
.hxo-info__wide { grid-column: 1 / -1; }
.hxo-info dt { font-weight: 400; color: var(--hx-ink-soft); }
.hxo-info dd { margin: 0; color: var(--hx-ink); }
.hxo-info dd > i { width: 14px; margin-right: 4px; color: var(--hx-ink-soft); }
.hxo-info small { color: var(--hx-ink-soft); }
.hxo-on { color: #2f8a4a; font-weight: 700; }
.hxo-off { color: #a3221a; font-weight: 700; }
.hxo-vocs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hxo-vocs b { color: var(--hx-crimson); }
.hxo-board { border: 1px solid var(--hx-edge); border-radius: 4px; background: rgba(255, 250, 236, .55); padding: 10px; }
.hx .hx-page__body .hxo-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hx .hx-page__body .hxo-table th {
    padding: 7px 10px; text-align: left; font-weight: 700; color: var(--hx-ink);
    background: #dcc596; border-bottom: 1px solid var(--hx-edge) !important;
}
.hx .hx-page__body .hxo-table th a { color: var(--hx-ink-soft); font-weight: 400; }
.hx .hx-page__body .hxo-table td { padding: 6px 10px; color: var(--hx-ink-soft); border-bottom: 1px solid rgba(120, 80, 30, .14) !important; scroll-margin-top: 12px; }
.hx .hx-page__body .hxo-table tbody tr:nth-child(odd) > td { background: rgba(255, 252, 242, .7); }
.hx .hx-page__body .hxo-table tbody tr:nth-child(even) > td { background: rgba(220, 197, 150, .28); }
.hx .hx-page__body .hxo-table tbody tr:hover > td { background: rgba(200, 150, 62, .22); }
.hx .hx-page__body .hxo-table .hxo-num { text-align: right; padding-right: 24px; }
.hx .hx-page__body .hxo-name a { color: var(--hx-link); font-weight: 600; }
.hxo-empty { margin: 0; padding: 20px 8px; color: var(--hx-ink-soft); }
@container hxpage (max-width: 560px) {
    .hxo-info { grid-template-columns: 1fr; }
    .hxo-info > div { grid-template-columns: 110px minmax(0, 1fr); }
}

/* ============================================================== Fast travel (2026-11-29) */
.hx-travel__body { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 16px; align-items: center; }
.hx-travel__shot {
    display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover;
    border: 2px solid var(--hx-bronze-dk); border-radius: 4px;
    box-shadow: 0 0 0 1px var(--hx-iron), 0 3px 10px rgba(0, 0, 0, .35);
}
.hx-travel__info p { margin: 0 0 10px; color: var(--hx-ink-soft); }
.hx-travel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-travel__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.35; }
.hx-travel__list b { display: block; font-family: var(--ht-display); font-size: 16px; color: var(--hx-crimson); }
.hx-travel__icon {
    display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; border: 2px solid var(--hx-bronze); background: var(--hx-iron-2); color: var(--hx-gold); font-size: 14px;
    transition: transform .15s, background-color .15s;
}
.hx-travel__list li:hover .hx-travel__icon { transform: scale(1.08); background: var(--hx-crimson); }
@media (prefers-reduced-motion: reduce) {
    .hx-travel__icon { transition: none; }
    .hx-travel__list li:hover .hx-travel__icon { transform: none; }
}
@media (max-width: 720px) {
    .hx-travel__body { grid-template-columns: 1fr; }
    .hx-travel__shot { max-height: none; }
}
