/* ==========================================================================
   Lumiis "Dunkelgold" look (Root's mockup, 2026-12): dark panels with thin gold
   lines, smooth gold buttons, slim glowing bars. Loaded after spiel.css on /play
   and only overrides the look; layout and behaviour stay in spiel.css.
   ========================================================================== */
:root {
    --bg: #0d0b0a;
    --panel: #15120f;
    --panel-2: #1d1914;
    --line: #2f281f;
    --text: #e8decb;
    --muted: #9d9280;
    --accent: #dcb46a;
    --gold: #dcb46a;
    --gold-hi: #f3d79a;
    --gold-line: rgba(220, 180, 106, 0.34);
    --gold-line-strong: rgba(220, 180, 106, 0.7);
    --ok: #8fbf5a;
    --hp: #d8463b;
    --sp: #3d8ee6;
    --st: #d39b38;
    --xp: #9a7ad0;
    --panel-grad: linear-gradient(180deg, rgba(27, 23, 18, 0.94), rgba(16, 13, 11, 0.94));
    --gold-glow: 0 0 0 1px rgba(220, 180, 106, 0.08), 0 12px 32px rgba(0, 0, 0, 0.45);
    --scroll-thumb: #5c4a2e;
    --scroll-thumb-hover: #8a6c3c;
}

body::before {
    background:
        radial-gradient(90% 60% at 70% 0%, rgba(60, 44, 24, 0.22), transparent 70%),
        linear-gradient(rgba(10, 8, 7, 0.72), rgba(10, 8, 7, 0.88)),
        url("../images/brand/background.webp") center / cover no-repeat;
}

h1, h2 { text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
h1 { color: #f1e6d0; font-size: 2.1rem; letter-spacing: 0.03em; }
h2 { color: var(--gold); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
a { color: var(--gold); }

/* ---------- Buttons: dark plate, thin gold rim, soft glow on the main action ---------- */
.btn {
    border: 1px solid var(--gold-line); border-image: none; border-radius: 5px;
    background: linear-gradient(180deg, #2a231b, #191511);
    image-rendering: auto; padding: 0.3rem 0.85rem; min-height: 2rem;
    color: #eadcc0; font-size: 0.82rem; letter-spacing: 0.05em; text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.06);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover:not(:disabled) { filter: none; border-color: var(--gold-line-strong); background: linear-gradient(180deg, #342a1f, #1f1a14); }
.btn:active:not(:disabled) { filter: brightness(0.9); }
.btn-primary, .btn-danger, .inv-bag-actions .btn[aria-pressed="true"] {
    border-color: var(--gold-line-strong); border-image: none;
    background: linear-gradient(180deg, #4a3920, #2c2214);
    color: var(--gold-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 228, 160, 0.18), 0 0 14px rgba(220, 180, 106, 0.12);
}
.btn-primary:hover:not(:disabled), .btn-danger:hover:not(:disabled) {
    border-image: none; border-color: var(--gold-hi);
    background: linear-gradient(180deg, #5a4526, #352816);
    box-shadow: inset 0 1px 0 rgba(255, 228, 160, 0.25), 0 0 18px rgba(220, 180, 106, 0.25);
}
.btn-primary:active:not(:disabled) { border-image: none; color: var(--gold-hi); text-shadow: none; }
.btn-danger { color: #f0c6a8; }
.btn-link { border: 0; background: none; box-shadow: none; padding: 0.3rem; min-height: 0; }
.btn-link:hover:not(:disabled) { background: none; }
.btn .btn-icon.ui-icon { width: 1.25em; height: 1.25em; margin-right: 0.5em; vertical-align: -0.3em; }
.btn.discord-btn { border-radius: 6px; border: 1px solid #3a3f5c; background: linear-gradient(180deg, #262a3b, #1b1e2a); color: #e6e8f5; box-shadow: none; }
.btn.discord-btn:hover { background: linear-gradient(180deg, #2f3550, #20243a); }

/* ---------- Panels: thin gold line, rounded corners, deep shadow ---------- */
.card, .welcome-dialog, .nav-dropdown-list, .inv-detail, .item-tooltip, .chat-footer {
    border: 1px solid var(--gold-line); border-image: none; border-radius: 8px;
    background: var(--panel-grad); background-clip: border-box; image-rendering: auto;
    box-shadow: var(--gold-glow);
}
.card { padding: 1rem 1.2rem; margin: 0.9rem 0; }
.card.story { border-image: none; border-color: rgba(220, 180, 106, 0.5); }
.item-codex-entry, .loot-values[open], .title-entry, .loot-filter-group, .account-locale, .item-codex-icon {
    border: 1px solid var(--line); border-radius: 6px; background-color: rgba(0, 0, 0, 0.25); box-shadow: none;
}
input, select, textarea {
    border: 1px solid var(--line); border-radius: 5px; background: #0f0d0b;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-line-strong); }
.flash { border-radius: 6px; }
.badge { border-radius: 99px; background: #c0392b; color: #fff; font-weight: 700; }

/* Tabs: underline style instead of pixel plates. */
.tabs { border-bottom: 1px solid var(--line); box-shadow: none; }
.tabs a, .inv-bag-tab, .inv-page-tab {
    border: 1px solid transparent; border-image: none; border-radius: 5px 5px 0 0;
    background: none; color: var(--muted); text-shadow: none; image-rendering: auto;
}
.tabs a:hover, .inv-bag-tab:hover, .inv-page-tab:hover { color: var(--text); filter: none; }
.tabs a.active, .inv-bag-tab.is-active, .inv-page-tab.is-active {
    border-image: none; border-color: var(--gold-line); border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(220, 180, 106, 0.14), transparent); color: var(--gold-hi); text-shadow: none;
}
.chat-tab, .thanks-list li, .community-link, .wardrobe-source, .collapse-toggle, .guide-fit, .log-damage { border-radius: 5px; box-shadow: none; }
.chat-tab.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
.series-replay-dot, .series-replay-bar, .duel-replay-bar { border-radius: 4px; border: 1px solid var(--line); box-shadow: none; }

/* Tables: quiet lines, gold column heads. */
.table th { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--gold-line); box-shadow: none; }
.table td { border-bottom: 1px solid rgba(255, 240, 210, 0.06); box-shadow: none; }

/* ---------- Bars: slim, rounded, with a soft glow ---------- */
.meter { height: 6px; border-radius: 99px; background: rgba(255, 245, 225, 0.07); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.meter b { border-radius: inherit; background-image: none; filter: none; }
.meter.hp b { background: linear-gradient(90deg, #a92d25, #e8524a); box-shadow: 0 0 8px rgba(232, 82, 74, 0.45); }
.meter.sp b { background: linear-gradient(90deg, #2463b8, #4fa2ff); box-shadow: 0 0 8px rgba(79, 162, 255, 0.45); }
.meter.st b { background: linear-gradient(90deg, #a36d1c, #e5ad48); box-shadow: 0 0 8px rgba(229, 173, 72, 0.35); }
.meter.xp b { background: linear-gradient(90deg, #6d4fb0, #b393ef); box-shadow: 0 0 8px rgba(179, 147, 239, 0.35); }
.stat-line { display: flex; justify-content: space-between; gap: 0.8rem; }
.stat-pct { color: var(--muted); font-variant-numeric: tabular-nums; }

.ui-icon { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }

/* ---------- Release bar = slim top bar ---------- */
.release-bar {
    margin: 0 0 0.2rem; padding: 0.7rem 0 0.8rem; gap: 0.4rem 1.2rem;
    background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.88rem;
}
.release-bar-label {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem;
    border: 1px solid var(--gold-line); border-radius: 6px; background: rgba(0, 0, 0, 0.35); font-weight: 400;
}
.release-bar-label .ui-icon { color: var(--muted); }
.release-bar-time { margin-left: -1.2rem; padding: 0.35rem 0.8rem 0.35rem 0.1rem; border: 1px solid var(--gold-line); border-left: 0; border-radius: 0 6px 6px 0; background: rgba(0, 0, 0, 0.35); color: var(--gold-hi); }
.release-bar-label { border-right: 0; border-radius: 6px 0 0 6px; }
.release-bar-link {
    display: inline-flex; align-items: center; padding: 0.35rem 1rem; border: 1px solid var(--gold-line-strong); border-radius: 6px;
    background: linear-gradient(180deg, #4a3920, #2c2214); color: var(--gold-hi); text-decoration: none; font-family: var(--font-display); font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 228, 160, 0.18);
}
.release-bar-link:hover { text-decoration: none; border-color: var(--gold-hi); }
.release-bar-note { color: var(--muted); font-size: 0.82rem; }

/* ---------- Character head (status) ---------- */
.status {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 1.4rem; align-items: center;
    padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.status-portrait { display: block; text-decoration: none; }
.status-portrait:hover { text-decoration: none; }
.status-portrait .player-avatar-large {
    width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--gold-line-strong);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.5);
    background: radial-gradient(circle at 50% 30%, #3a3226 0%, #1b1712 75%);
}
.status-portrait .player-avatar-figure { border-radius: 8px; }
.status .who strong { font-size: 1.15rem; color: #f3e8d2; }
.status .who > .muted { font-size: 0.9rem; }
.status .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.2rem; padding: 0 1.4rem; border-inline: 1px solid var(--line); }
.status .bars .stat { font-size: 0.82rem; }
.status .bars .stat-hp, .status .bars .stat-sp { grid-column: 1 / -1; }
.status .bars .stat-xp { grid-column: 1 / -1; }
.status .bars .stat-xp .meter { height: 3px; opacity: 0.8; }
.status .bars .stat-st .meter { height: 4px; }
.status .bars small { font-size: 0.72rem; }
.status .right { align-items: flex-end; gap: 0.3rem; }
.status-yang { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #f3e8d2; white-space: nowrap; }
.status-yang-icon.ui-icon { width: 1.9rem; height: 1.9rem; }
.status .ready { font-size: 1rem; color: var(--ok); }
@media (max-width: 1100px) {
    .status { grid-template-columns: auto minmax(0, 1fr) auto; }
    .status .bars { grid-column: 1 / -1; grid-row: 2; padding: 0.6rem 0 0; border-inline: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .status { grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem 0.9rem; }
    .status-portrait .player-avatar-large { width: 58px; height: 58px; }
    .status .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
    .status .bars { grid-template-columns: 1fr; }
    .status-yang { font-size: 1.05rem; }
}

/* ---------- Desktop sidebar ---------- */
@media (min-width: 801px) {
    .page.has-sidebar { max-width: 1440px; grid-template-columns: 230px minmax(0, 1fr); gap: 0 2.2rem; }
    .has-sidebar .topbar { gap: 0.8rem; padding-top: 1.1rem; }
    .has-sidebar .brand { font-size: 1.6rem; gap: 0.6rem; color: var(--gold); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
    .has-sidebar .brand-emblem { width: 40px; height: 40px; }
    .has-sidebar .btn.discord-btn { padding: 0.55rem 0.9rem; font-size: 0.95rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
    .has-sidebar .progress-board-badge, .has-sidebar .inbox-badge {
        padding: 0.55rem 0.9rem; border: 1px solid rgba(160, 190, 90, 0.6); border-radius: 6px;
        background: linear-gradient(180deg, rgba(92, 104, 40, 0.75), rgba(52, 58, 22, 0.8)); color: #eef0cf; font-size: 0.95rem; font-weight: 600;
    }
    .has-sidebar .inbox-badge { border-color: var(--gold-line-strong); background: linear-gradient(180deg, rgba(90, 70, 34, 0.75), rgba(50, 38, 18, 0.8)); color: var(--gold-hi); }
    .has-sidebar .nav {
        gap: 0; padding: 0.3rem 0.4rem; border: 1px solid var(--line); border-radius: 8px;
        background: rgba(17, 14, 12, 0.82); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); font-size: 0.98rem;
    }
    .has-sidebar .nav > a, .has-sidebar .nav > .locked, .has-sidebar .nav-town > a {
        gap: 0.8rem; padding: 0.55rem 0.7rem; border: 0; border-bottom: 1px solid rgba(255, 240, 210, 0.06); border-radius: 5px;
        background: none; box-shadow: none; font-weight: 500; color: #e3d8c4; border-image: none;
    }
    .has-sidebar .nav > a:last-child { border-bottom: 0; }
    .has-sidebar .nav > a:hover, .has-sidebar .nav-town > a:hover { background: rgba(220, 180, 106, 0.07); border-color: rgba(255, 240, 210, 0.06); }
    .has-sidebar .nav > a.active, .has-sidebar .nav-town > a.active {
        background: linear-gradient(90deg, rgba(220, 180, 106, 0.2), rgba(220, 180, 106, 0.04)); color: var(--gold-hi);
        box-shadow: inset 2px 0 0 var(--gold), 0 0 0 1px var(--gold-line);
    }
    .has-sidebar .nav-icon { width: 1.35rem; height: 1.35rem; }
    .has-sidebar .nav-town { border-bottom: 1px solid rgba(255, 240, 210, 0.06); gap: 0; }
    .has-sidebar .nav-town > a { border-bottom: 0; }
    .has-sidebar .nav-town-toggle { border: 0; background: none; }
    .has-sidebar .nav-more { padding: 0.2rem 0.4rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(17, 14, 12, 0.82); }
    .has-sidebar .nav-more + .nav-more { margin-top: -0.85rem; border-top: 1px solid rgba(255, 240, 210, 0.06); border-radius: 0 0 8px 8px; }
    .has-sidebar .nav-more:has(+ .nav-more) { border-radius: 8px 8px 0 0; }
    .has-sidebar .nav-more-toggle { padding: 0.5rem 0.4rem; color: var(--text); }
    .has-sidebar .nav-more-toggle:hover { background: none; color: var(--gold-hi); }
}

/* ---------- Page head (dungeon etc.) ---------- */
.page-back { margin: 1.1rem 0 0.2rem; }
.page-back a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.02rem; }
.page-head { display: flex; align-items: flex-start; gap: 1.1rem; margin: 0.3rem 0 1rem; }
.page-head h1 { margin: 0.2rem 0 0.4rem; text-transform: uppercase; }
.page-head-icon.ui-icon { width: 3.6rem; height: 3.6rem; color: var(--gold); filter: drop-shadow(0 0 10px rgba(220, 180, 106, 0.3)); }
.page-head .muted { color: #c9bda6; }
@media (max-width: 640px) {
    .page-head { gap: 0.7rem; }
    .page-head-icon.ui-icon { width: 2.4rem; height: 2.4rem; }
    .page-head h1 { font-size: 1.45rem; }
}

/* Section with a round icon on the left (dungeon run cards, map). */
.section-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.2rem; align-items: start; padding: 1.1rem 0 0.4rem; border-top: 1px solid var(--line); margin-top: 0.6rem; }
.section-head-icon.ui-icon {
    width: 2.9rem; height: 2.9rem; padding: 0.6rem; box-sizing: border-box; border-radius: 50%;
    border: 1px solid var(--gold-line-strong); color: var(--gold); background: radial-gradient(circle, #2a2219, #15120f);
}
.section-head h2 { margin: 0.25rem 0 0.3rem; }

/* ---------- Dungeon run card ---------- */
.card.dungeon-run { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 1.6rem; align-items: center; padding: 1.4rem; }
.dungeon-run-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--gold-line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.dungeon-run-body { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.dungeon-run-title { margin: 0 0 0.6rem; font-size: 1.35rem; color: var(--gold-hi); }
.stat.stat-icon { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: 0.6rem; align-items: center; max-width: 460px; }
.stat.stat-icon > .ui-icon { grid-row: span 2; width: 1.35rem; height: 1.35rem; }
.stat.stat-icon > .stat-line { font-size: 0.9rem; }
.stat.stat-icon > .meter { grid-column: 2; }
.dungeon-run-potions { display: flex; align-items: center; gap: 0.6rem; margin: 0.6rem 0 0.2rem; font-size: 1rem; }
.dungeon-run-potions .ui-icon { width: 1.45rem; height: 1.45rem; margin-left: 0.05rem; }
.dungeon-run-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.dungeon-run-actions .btn { padding: 0.75rem 1.5rem; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1100px) {
    .card.dungeon-run { grid-template-columns: 180px minmax(0, 1fr); }
    .dungeon-run-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 640px) {
    .card.dungeon-run { grid-template-columns: 1fr; gap: 0.9rem; padding: 0.9rem; }
    .dungeon-run-art { aspect-ratio: 21 / 9; }
    .dungeon-run-body { padding-left: 0; border-left: 0; }
    .dungeon-run-actions .btn { width: 100%; }
    .dungeon-run-actions > form { flex: 1; }
}

/* Run cards list: gold bullet, curse name in gold. */
.run-map-cards { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.run-map-cards li { position: relative; padding-left: 1.1rem; }
.run-map-cards li::before { content: ""; position: absolute; left: 0.2rem; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.run-map-cards li strong { color: var(--gold); }
.run-map-cards li.warn { color: var(--text); }

.run-map-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.run-map-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.run-map-legend .ui-icon { color: var(--gold); width: 1.1rem; height: 1.1rem; }
.run-map-legend .is-elite .ui-icon, .run-map-legend .is-boss .ui-icon { color: #e0574b; }

/* ---------- Dungeon path map: round gold medallions on a thin line ---------- */
.run-map {
    height: calc(var(--levels) * var(--row)); margin: 0.6rem 0 1.4rem; padding-left: 1.5rem;
    border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(120% 80% at 50% 50%, rgba(40, 32, 22, 0.35), rgba(0, 0, 0, 0.25));
}
.run-map-links-h { display: none; }
.run-map-links line { stroke: #6b5838; stroke-width: 1.5; stroke-dasharray: none; opacity: 0.55; }
.run-map-links line.walked { stroke: var(--gold); opacity: 1; filter: drop-shadow(0 0 3px rgba(220, 180, 106, 0.6)); }
.run-map-level { top: calc(var(--lvl) * var(--row) + var(--row) / 2); }
.run-map-room {
    left: calc(1.5rem + (100% - 1.5rem) * var(--x) / 100); top: calc(var(--lvl) * var(--row) + var(--row) / 2);
    width: 2.6rem; height: 2.6rem; min-width: 0; min-height: 0;
    border: 1px solid #6b5838; background: radial-gradient(circle at 50% 35%, #2c251c, #141110 75%);
    color: #c8b48c; opacity: 0.6; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55);
}
.run-map-room > span { display: grid; place-items: center; }
.run-map-room .ui-icon { width: 1.3rem; height: 1.3rem; }
.run-map-room.is-visited { opacity: 0.95; border-color: var(--gold-line-strong); color: var(--gold); }
.run-map-room.is-current { opacity: 1; border-color: var(--gold-hi); color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 14px rgba(243, 215, 154, 0.55); }
.run-map-room.is-reachable { opacity: 1; border: 2px solid var(--gold-hi); color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 18px rgba(243, 215, 154, 0.6); animation: run-map-pulse 2.2s ease-in-out infinite; }
.run-map-room.is-elite, .run-map-room.is-boss { color: #e0574b; border-color: rgba(224, 87, 75, 0.55); }
.run-map-room.is-boss { width: 3.1rem; height: 3.1rem; }
.run-map-room.is-boss .ui-icon { width: 1.6rem; height: 1.6rem; }
.run-map-room .btn { width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: none; color: inherit; display: grid; place-items: center; }
.run-map-room .btn .btn-icon.ui-icon { margin: 0; width: 1.4rem; height: 1.4rem; vertical-align: 0; }
.run-map-room .inline-form { width: 100%; height: 100%; }
@keyframes run-map-pulse { 50% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 26px rgba(243, 215, 154, 0.85); } }
@media (prefers-reduced-motion: reduce) { .run-map-room.is-reachable { animation: none; } }

/* Wide screens: the path runs left to right like a road, level numbers below. */
@media (min-width: 1000px) {
    .run-map { height: 320px; padding: 0 0 1.6rem; }
    .run-map-links-v { display: none; }
    .run-map-links-h { display: block; inset: 0 0 1.6rem 0; width: 100%; height: calc(100% - 1.6rem); }
    .run-map-level { top: auto; bottom: 0.3rem; left: calc((var(--lvl) + 0.5) * 100% / var(--levels)); transform: translateX(-50%); }
    .run-map-room { left: calc((var(--lvl) + 0.5) * 100% / var(--levels)); top: calc((100% - 1.6rem) * var(--x) / 100); }
}

/* ---------- Footer chat: one slim gold-lined bar ---------- */
.chat-footer { border-bottom: 0; border-radius: 8px 8px 0 0; }
.chat-footer-bar { min-height: 3rem; padding: 0.5rem 1.1rem; gap: 0.8rem; }
.chat-footer-bar:hover { background: rgba(220, 180, 106, 0.05); border-radius: 8px 8px 0 0; }
.chat-footer-title { font-family: var(--font-display); color: #f1e6d0; padding-right: 0.9rem; border-right: 1px solid var(--line); }
.chat-footer-bar .nav-icon { color: var(--gold); }
.chat-footer-last { color: #cfc3ad; font-size: 0.88rem; }
.chat-footer-toggle { color: var(--muted); }
@media (max-width: 800px) { .chat-footer { border-radius: 0; } }

/* Tutorial card and banners. */
.guest-banner, .group-fight-banner, .world-boss-reward-banner { border-radius: 6px; }

/* Discord in the sidebar: dark plate with the Discord-blue logo, like the menu. */
.discord-badge { border-radius: 6px; border: 1px solid #343a58; background: linear-gradient(180deg, #232738, #191c28); color: #e6e8f5; font-weight: 600; }
.discord-badge svg { color: #7c87ff; }
@media (min-width: 801px) {
    .has-sidebar .discord-badge { align-self: stretch; gap: 0.7rem; padding: 0.6rem 0.9rem; font-size: 1rem; }
    .has-sidebar .discord-badge svg { width: 1.4rem; height: 1.4rem; }
}
.meter.st b, .meter.xp b, .meter.sp b { filter: none; }
.status-yang { font-family: var(--font-body); }

/* Inventory windows: same thin gold line as cards, quiet header strip. */
.inv-window { border: 1px solid var(--gold-line); border-radius: 8px; background: var(--panel-grad); box-shadow: var(--gold-glow); }
.inv-window-head { margin: -2px -4px 8px; padding: 4px 8px; border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(220, 180, 106, 0.12), transparent); color: var(--gold); font-family: var(--font-display); }
.inv-bag-tab-count { color: var(--muted); }
.inv-bag-group-title { color: var(--gold); }

/* ==========================================================================
   Pages outside the game (start page, login, registration, wiki, legal,
   error pages): same dark gold look as /play.
   ========================================================================== */
.guest-topbar { padding: 1rem 0 0.9rem; border-bottom: 1px solid var(--line); }
.guest-topbar .brand { font-size: 1.5rem; gap: 0.6rem; color: var(--gold); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.guest-topbar .brand-emblem { width: 38px; height: 38px; }
.guest-menu { gap: 0.2rem 0.4rem; align-items: center; }
.guest-menu .btn-link { padding: 0.35rem 0.7rem; border: 1px solid transparent; border-radius: 5px; color: #cfc3ad; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.02em; }
.guest-menu .btn-link:hover { color: var(--gold-hi); background: rgba(220, 180, 106, 0.07); text-decoration: none; }
.guest-menu .btn-link.active { color: var(--gold-hi); border-color: var(--gold-line); background: linear-gradient(180deg, rgba(220, 180, 106, 0.14), transparent); }
.guest-menu .lang-switch { padding-right: 0.5rem; margin-right: 0.2rem; border-right: 1px solid var(--line); }
.guest-menu .lang-switch .btn-link { padding: 0.25rem 0.45rem; font-size: 0.8rem; }
.guest-main { padding-top: 1.4rem; }
.brand-banner img { border: 1px solid var(--gold-line); border-radius: 10px; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55), 0 16px 40px rgba(0, 0, 0, 0.55); }
.brand-banner-tagline { color: var(--gold); }

/* Login, registration, password pages: one centred card with a gold head line. */
.card.auth-card { margin: 1.4rem auto; padding: 1.6rem 1.8rem; border-color: var(--gold-line-strong); }
.auth-card h1 { position: relative; margin: 0 0 0.6rem; padding-bottom: 0.7rem; font-size: 1.6rem; text-align: center; color: var(--gold-hi); }
.auth-card h1::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5rem; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.auth-form label { color: #cfc3ad; font-size: 0.88rem; letter-spacing: 0.03em; }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] { padding: 0.6rem 0.75rem; font-size: 1rem; }
.auth-actions .btn { padding: 0.55rem 1.2rem; }
.auth-actions .btn-primary { flex: 1 1 auto; }
.social-login { border-top-color: var(--line); }
.social-login-btn { border-radius: 6px; }
.social-login-discord { border-color: #3a3f5c; background: linear-gradient(180deg, #262a3b, #1b1e2a); color: #e6e8f5; }
.social-login-google { border-color: #4a453c; }
.field-error { color: #ef8a7c; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); }
.race-grid .lumiis-race-card { border-radius: 8px; }
.race-grid .lumiis-race-card.selected { border-color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold), 0 0 14px rgba(220, 180, 106, 0.2); }

/* Start page */
.card.landing-hero { padding: 1.8rem 1.6rem; border-color: var(--gold-line-strong); }
.landing-hero h1 { color: var(--gold-hi); font-size: 1.9rem; }
.landing-lead { color: #d8ccb6; }
.landing-cta .btn { padding: 0.75rem 1.6rem; text-transform: uppercase; letter-spacing: 0.08em; }
.landing-section > h2 { display: flex; align-items: center; gap: 0.8rem; }
.landing-section > h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.landing-feature h3, .landing-feature h2 { color: var(--gold); }
.landing-shot img { border: 1px solid var(--gold-line); border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.landing-faq summary { color: #f1e6d0; }
.landing-faq summary::marker { color: var(--gold); }

/* Wiki, ranking, patch notes */
.wiki-breadcrumb a { color: var(--gold); }
.wiki-page h2, .wiki-section > h2 { color: var(--gold); }
.wiki-section { border-top-color: var(--line); }
.wiki-table th { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--gold-line); }
.wiki-table td { border-bottom: 1px solid rgba(255, 240, 210, 0.06); }
.wiki-table tr:hover td { background: rgba(220, 180, 106, 0.04); }

/* Legal pages and error pages */
.legal-document-body h2 { color: var(--gold); }
.legal-document-body blockquote { border-left-color: var(--gold); border-radius: 0 6px 6px 0; background: rgba(0, 0, 0, 0.3); }
.legal-document-body code { border-radius: 4px; background: rgba(0, 0, 0, 0.35); }
.error-card { text-align: center; }

/* Guest banner and community footer */
.guest-banner { border: 1px dashed var(--gold-line); background: rgba(40, 32, 20, 0.6); color: #e3d3ac; }
.guest-banner-strong { border-style: solid; border-color: var(--gold-line-strong); background: linear-gradient(180deg, rgba(74, 57, 32, 0.7), rgba(44, 34, 20, 0.7)); color: var(--gold-hi); }
.community-footer { border-top-color: var(--line); }
.community-link { border: 1px solid var(--line); border-radius: 6px; background: rgba(17, 14, 12, 0.82); color: #cfc3ad; }
.community-link:hover { border-color: var(--gold-line-strong); color: var(--gold-hi); }

/* Form details: radios/checkboxes stay native (gold tint), range sliders gold, language picker in one row each. */
input[type="checkbox"], input[type="radio"], input[type="range"] { border: 0; border-radius: 0; background: none; box-shadow: none; accent-color: var(--gold); }
.account-locale { border-radius: 6px; }
.account-locale label.inline-form { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; }

/* Fight stage: framed like the dungeon art, with a soft dark vignette. */
.cs-scene { border: 1px solid var(--gold-line-strong); border-radius: 8px; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 12px 28px rgba(0, 0, 0, 0.5); }
.cs-units::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45); }
