/* ==========================================================================
   OGameXL - Outgame Auth (Login / Register / Password Reset / Universe Select)
   Independent Vite entry — does NOT touch resources/css/outgame.css (legacy
   ingame/outgame skin). Scoped purely to the new auth flow pages.
   ========================================================================== */

/* Self-hosted instead of a Google Fonts @import: the import chained three blocking
   requests (this CSS, Google's CSS, the font files) before first paint. Vite hashes
   these files, so they cache as immutable. Orbitron ships one variable file covering
   every weight; Rajdhani needs latin-ext for Turkish/Polish/Czech letters. */
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 500 800; font-display: swap;
    src: url('/build/assets/orbitron-latin-Du7j2Vp2.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/build/assets/rajdhani-400-latin-ext-DACPYgMx.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap;
    src: url('/build/assets/rajdhani-400-latin-CurJOxDW.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/build/assets/rajdhani-500-latin-ext-DiyUS11w.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap;
    src: url('/build/assets/rajdhani-500-latin-ByNUCHrt.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/build/assets/rajdhani-600-latin-ext-C9ZjJQAt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap;
    src: url('/build/assets/rajdhani-600-latin-CXCVEoA9.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/build/assets/rajdhani-700-latin-ext-S6aYESQK.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap;
    src: url('/build/assets/rajdhani-700-latin-BPDUZo87.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --void: #05060c;
    --panel: rgba(18, 22, 38, 0.62);
    --panel-solid: #10131f;
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-strong: rgba(255, 255, 255, 0.14);

    --gold: #e8c874;
    --gold-bright: #ffe9b0;
    --gold-dim: #a9863f;
    --violet: #8b6cf1;

    --text: #eef0f6;
    --text-dim: #9aa0b4;
    --text-faint: #666c85;

    --success: #4ade80;
    --danger: #f87171;

    --glow-gold: 0 0 24px rgba(232, 200, 116, 0.35);

    --radius: 14px;
    --radius-sm: 8px;
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body.auth-body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    background: var(--void);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.auth-body a { color: inherit; text-decoration: none; }
.auth-body ul { list-style: none; margin: 0; padding: 0; }
.auth-body button { font-family: inherit; }

.auth-body h1, .auth-body h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
}

.auth-body p { margin: 0; color: var(--text-dim); line-height: 1.6; }

/* ---------- Space background ---------- */

.space-bg { position: fixed; inset: 0; z-index: -3; background: var(--void); overflow: hidden; }

.space-bg::before, .space-bg::after {
    content: "";
    position: absolute;
    inset: -10%;
    background-repeat: repeat;
    opacity: 0.65;
}
.space-bg::before {
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 60% 70%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent),
        radial-gradient(1px 1px at 33% 88%, #fff, transparent),
        radial-gradient(1px 1px at 90% 60%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 15% 65%, #fff, transparent),
        radial-gradient(1px 1px at 47% 12%, #fff, transparent);
    background-size: 420px 420px;
    animation: driftStars 140s linear infinite;
}
.space-bg::after {
    background-image:
        radial-gradient(1px 1px at 10% 10%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 75% 85%, #fff, transparent),
        radial-gradient(1px 1px at 25% 75%, #fff, transparent),
        radial-gradient(1px 1px at 90% 15%, #fff, transparent);
    background-size: 300px 300px;
    opacity: 0.35;
    animation: driftStars 220s linear infinite reverse;
}
@keyframes driftStars {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-420px, -420px, 0); }
}
.space-bg .nebula-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.4; mix-blend-mode: screen; }
.space-bg .void-vignette {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 20%, transparent 0%, var(--void) 78%),
        linear-gradient(180deg, rgba(5,6,12,0.2) 0%, var(--void) 100%);
}

/* ---------- Glass ---------- */

.glass {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* ---------- Brand ---------- */

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; display: block; }
.brand-mark { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark .xl { color: var(--gold); text-shadow: var(--glow-gold); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: var(--radius-sm);
    font-family: var(--font-display); font-size: 13px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
    color: #201404; box-shadow: 0 0 18px rgba(232,200,116,0.22);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 0 24px rgba(232,200,116,0.34); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--panel-border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--violet); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #ffb4b4; }
.btn-danger:hover { background: rgba(248, 113, 113, 0.2); }
.btn-sm { padding: 9px 16px; font-size: 11px; }
/* `.auth-body a { color: inherit }` outranks a bare .btn-* class, so a link styled as a
   button would otherwise keep white text on the gold gradient. */
.auth-body a.btn-primary { color: #201404; }
.auth-body a.btn-ghost { color: var(--text); }
.auth-body a.btn-danger { color: #ffb4b4; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ---------- Forms ---------- */

.field { margin-bottom: 20px; }
.field label {
    display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
    color: var(--text-dim); margin-bottom: 8px; text-transform: uppercase;
}
.field .hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-faint); }

.input-shell { position: relative; display: flex; align-items: center; }
.input-shell .icon { position: absolute; left: 14px; width: 16px; height: 16px; opacity: 0.5; pointer-events: none; }

.auth-body input[type=email], .auth-body input[type=password], .auth-body input[type=text], .auth-body input[type=number], .auth-body select, .auth-body textarea {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--panel-border-strong);
    border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font-body); font-size: 15px; font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-shell .icon + input { padding-left: 40px; }
.input-shell input.has-toggle { padding-right: 42px; }
.password-toggle {
    position: absolute; right: 12px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; padding: 4px; cursor: pointer; color: var(--text-faint);
}
.password-toggle:hover { color: var(--text-dim); }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-visible .icon-eye { display: none; }
.password-toggle.is-visible .icon-eye-off { display: block; }
.auth-body input::placeholder, .auth-body textarea::placeholder { color: var(--text-faint); }
.auth-body input:focus, .auth-body select:focus, .auth-body textarea:focus {
    outline: none; border-color: var(--gold);
    background: rgba(232,200,116,0.05);
    box-shadow: 0 0 0 3px rgba(232,200,116,0.12);
}
.auth-body textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.checkbox-row input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--gold); }

/* ---------- Badges / Alerts ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-gold { background: rgba(232,200,116,0.14); color: var(--gold); border: 1px solid rgba(232,200,116,0.3); }
.badge-violet { background: rgba(139,108,241,0.14); color: #c3b3fb; border: 1px solid rgba(139,108,241,0.3); }
.badge-danger { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.badge-success { background: rgba(74,222,128,0.12); color: var(--success); border: 1px solid rgba(74,222,128,0.3); }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--panel-border); }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.3); color: #b6f5cd; }
.alert-danger { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.3); color: #ffc9c9; }

/* ---------- Layout helpers ---------- */

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 10px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ==========================================================================
   Login / Register page
   ========================================================================== */

/* ---------- In-game screenshot strip (promo pane) ---------- */

.promo-shots { margin-top: 26px; }

.promo-shots-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.promo-shots-title { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

.promo-shots-nav { display: flex; gap: 5px; }
.promo-shots-arrow {
    width: 22px; height: 22px; padding: 0; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--panel-border); background: rgba(10,12,20,0.55);
    color: var(--text-dim); font-size: 15px; line-height: 1;
    transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}
.promo-shots-arrow:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.promo-shots-arrow:disabled { opacity: 0.3; cursor: default; }

.promo-shots-viewport { position: relative; }
.promo-shots-viewport::before, .promo-shots-viewport::after {
    /* Fades hint that the strip runs past its edges; JS drops them at each end. */
    content: ''; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 1;
    pointer-events: none; opacity: 1; transition: opacity .2s ease;
}
.promo-shots-viewport::before { left: 0; background: linear-gradient(90deg, rgba(9,7,18,0.85), rgba(9,7,18,0)); }
.promo-shots-viewport::after { right: 0; background: linear-gradient(270deg, rgba(9,7,18,0.85), rgba(9,7,18,0)); }
.promo-shots-viewport.at-start::before, .promo-shots-viewport.at-end::after { opacity: 0; }

.promo-shots-track {
    display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-behavior: smooth; cursor: grab;
    scrollbar-width: none; -ms-overflow-style: none;
}
.promo-shots-track::-webkit-scrollbar { display: none; }
.promo-shots-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.promo-shot {
    position: relative; flex: 0 0 148px; padding: 0; scroll-snap-align: start;
    border: 1px solid var(--panel-border); border-radius: 9px; overflow: hidden;
    background: rgba(10,12,20,0.5); cursor: pointer; line-height: 0;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* height:auto is required, otherwise the img's height attribute stays definite and
   aspect-ratio is ignored. */
.promo-shot img {
    display: block; width: 100%; height: auto; aspect-ratio: 5 / 3;
    object-fit: cover; object-position: top center;
    user-select: none; -webkit-user-drag: none;
}
.promo-shot-label {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 7px 4px;
    font-size: 9px; line-height: 1.2; color: var(--text); text-align: left;
    text-transform: uppercase; letter-spacing: 0.04em;
    background: linear-gradient(180deg, rgba(5,6,12,0) 0%, rgba(5,6,12,0.9) 65%);
}
.promo-shot:hover, .promo-shot:focus-visible {
    border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    outline: none;
}
.promo-shots-track.is-dragging .promo-shot { transform: none; }

/* Same tiles, laid out full width on a content page instead of railed. */
.shots-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px; margin: 20px 0 4px;
}
.shots-grid .promo-shot { flex: none; width: 100%; border-radius: 10px; }
.shots-grid .promo-shot-label { font-size: 10.5px; padding: 20px 10px 7px; }

/* ---------- Screenshot lightbox ---------- */

body.shot-lightbox-open { overflow: hidden; }

.shot-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(3,4,8,0.93); backdrop-filter: blur(4px); }
/* Fit mode shows the whole capture inside the viewport; clicking it zooms to full size
   (at least 1.8x) and the container pans. The figure uses margin:auto inside a flex
   container rather than justify/align-content, which would clip the zoomed image's
   top-left overflow out of scroll reach. */
.shot-lightbox-scroll { --shot-gutter: 72px; position: absolute; inset: 0; overflow: auto; display: flex; padding: 56px var(--shot-gutter) 24px; overscroll-behavior: contain; }
.shot-lightbox-figure { margin: auto; }
.shot-lightbox-figure img {
    display: block; width: auto; height: auto;
    max-width: min(1100px, calc(100vw - var(--shot-gutter) * 2)); max-height: calc(100vh - 128px);
    border: 1px solid var(--panel-border); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.shot-lightbox.is-zoomed .shot-lightbox-scroll { padding: 24px; cursor: grab; }
.shot-lightbox.is-zoomed .shot-lightbox-scroll.is-panning,
.shot-lightbox.is-zoomed .shot-lightbox-scroll.is-panning img { cursor: grabbing; }
.shot-lightbox.is-zoomed .shot-lightbox-figure img { max-width: none; max-height: none; cursor: zoom-out; }
.shot-lightbox.is-zoomed .shot-lightbox-arrow { opacity: .35; }
.shot-lightbox.is-zoomed figcaption { display: none; }
.shot-lightbox-figure figcaption {
    margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.shot-lightbox-count { margin-left: 10px; color: var(--gold); }

.shot-lightbox-close, .shot-lightbox-arrow {
    position: absolute; z-index: 2; cursor: pointer; color: var(--text);
    border: 1px solid var(--panel-border); background: rgba(10,12,20,0.85);
    line-height: 1; transition: border-color .2s ease, color .2s ease;
}
.shot-lightbox-close:hover, .shot-lightbox-arrow:hover { border-color: var(--gold); color: var(--gold); }

.shot-lightbox-close { top: 14px; right: 18px; width: 38px; height: 38px; border-radius: 10px; font-size: 24px; }

.shot-lightbox-arrow {
    top: 50%; transform: translateY(-50%);
    width: 42px; height: 60px; border-radius: 10px; font-size: 30px;
}
.shot-lightbox-arrow.is-prev { left: 14px; }
.shot-lightbox-arrow.is-next { right: 14px; }

@media (max-width: 900px) {
    .promo-shot { flex: 0 0 128px; }
    .shot-lightbox-arrow { width: 34px; height: 48px; font-size: 24px; }
    .shot-lightbox-arrow.is-prev { left: 6px; }
    .shot-lightbox-arrow.is-next { right: 6px; }
    .shot-lightbox-scroll { --shot-gutter: 46px; }
}

.auth-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border); border-radius: 999px; margin-bottom: 32px; }
.auth-tabs a {
    flex: 1; text-align: center; border: none; background: transparent; padding: 11px 0; border-radius: 999px;
    font-family: var(--font-display); font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-dim); cursor: pointer; transition: all .2s ease; display: block;
}
.auth-tabs a.active { background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-dim)); color: #201404; box-shadow: var(--glow-gold); }

.auth-flip { perspective: 1800px; }
.auth-flip-inner {
    position: relative;
    transition: height .4s ease;
}
.auth-flip-inner > .auth-flip-face {
    transition: transform .6s cubic-bezier(.4,.2,.2,1), opacity .3s ease;
    transform-style: preserve-3d;
}
.auth-flip-face {
    position: absolute; top: 0; left: 0; width: 100%;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.auth-flip-front { transform: rotateY(0deg); z-index: 2; }
.auth-flip-back { transform: rotateY(180deg); z-index: 1; }
.auth-flip.is-flipped .auth-flip-front { transform: rotateY(-180deg); z-index: 1; }
.auth-flip.is-flipped .auth-flip-back { transform: rotateY(0deg); z-index: 2; }

.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aux-links { display: flex; justify-content: space-between; margin-top: -8px; margin-bottom: 24px; }
.aux-links a { font-size: 12.5px; color: var(--text-dim); }
.aux-links a:hover { color: var(--gold); }
.socialproof { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--text-faint); }
.socialproof .pips { display: flex; }
.socialproof .pips span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); border: 2px solid var(--panel-solid); margin-left: -4px; }
.socialproof .pips span:first-child { margin-left: 0; }
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown-toggle {
    display: flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--panel-border-strong);
    background: rgba(255,255,255,0.03);
    cursor: pointer; list-style: none; user-select: none;
    font-size: 12.5px; font-weight: 600; color: var(--text);
    flex-shrink: 0;
}
.lang-dropdown-toggle::-webkit-details-marker { display: none; }
.lang-dropdown-toggle:hover { border-color: var(--gold); }
.lang-dropdown-toggle .lang-flag { font-size: 15px; line-height: 1; }
.lang-dropdown-toggle .lang-chevron { width: 12px; height: 12px; color: var(--text-dim); transition: transform .15s ease; }
.lang-dropdown[open] .lang-dropdown-toggle .lang-chevron { transform: rotate(180deg); }
.lang-dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    width: 190px; overflow: hidden;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm); backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; font-size: 13px; color: var(--text-dim);
}
.lang-option .lang-flag { font-size: 16px; line-height: 1; }
.lang-option .lang-name { flex: 1; }
.lang-option .lang-check { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.lang-option.active { color: var(--gold); font-weight: 700; }

/* ==========================================================================
   Forgot / reset password (centered card)
   ========================================================================== */

.center-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.center-card { width: 100%; max-width: 420px; padding: 40px 36px; text-align: center; }
.center-card .brand { justify-content: center; margin-bottom: 26px; }
.center-card h1 { font-size: 20px; margin-bottom: 10px; }
.center-card p { font-size: 13.5px; margin-bottom: 26px; }
.center-card .field { text-align: left; }
.back-link { display: block; margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.back-link:hover { color: var(--gold); }

/* ==========================================================================
   Universe select / Command Center ("Oyuna Gir")
   ========================================================================== */

.us-topbar { padding: 18px 0; border-bottom: 1px solid var(--panel-border); margin-bottom: 8px; }
.us-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.us-topbar .logout { font-size: 13px; color: var(--text-dim); }
.us-topbar .logout:hover { color: var(--danger); }

@keyframes uniPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.badge svg { width: 12px; height: 12px; opacity: 0.85; }

.uni-setting-group { border-top: none; margin-top: 0; padding-top: 0; }
.uni-col-head .uni-meta-row {
    flex-direction: column; align-items: flex-start; gap: 8px;
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}
.uni-col-play { display: flex; align-items: center; }
.uni-col-play form { width: 100%; }
.uni-col-play .btn { margin-top: 0; }

.uni-card { padding: 24px; display: flex; flex-direction: column; position: relative; transition: transform .15s ease, border-color .15s ease; }
.uni-card:hover { transform: translateY(-3px); border-color: var(--panel-border-strong); }
.uni-card.featured { border-color: rgba(232,200,116,0.4); box-shadow: 0 0 0 1px rgba(232,200,116,0.15), 0 20px 60px rgba(0,0,0,0.45); }

.uni-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.uni-name-wrap { display: flex; align-items: center; gap: 10px; }
.uni-name-icon {
    width: 52px; height: 52px; border-radius: 999px; flex-shrink: 0; object-fit: cover;
    border: 1px solid rgba(232,200,116,0.45);
    box-shadow: 0 0 0 3px rgba(232,200,116,0.08), 0 0 18px rgba(139,108,241,0.35);
}
.uni-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.uni-name small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--text-faint); font-weight: 500; margin-top: 2px; }

.uni-fill { margin: 14px 0 18px; }
.uni-fill .fill-label { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; }
.fill-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.fill-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--gold)); }

.uni-meta-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    margin-bottom: 18px; padding-bottom: 16px;
    border-bottom: 1px solid var(--panel-border);
    font-size: 13.5px; font-weight: 600; color: var(--text);
}
.uni-meta-item { display: flex; align-items: center; gap: 6px; }
.uni-meta-item svg { width: 16px; height: 16px; color: var(--gold); opacity: 0.9; flex-shrink: 0; }
.uni-meta-item.online { color: var(--success); font-weight: 600; }
.uni-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    background: var(--success);
    animation: uniPulseDot 1.8s ease-out infinite;
}
@keyframes uniPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.badge svg { width: 12px; height: 12px; opacity: 0.85; }
.uni-card .btn { margin-top: auto; }

.uni-setting-group {
    font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.09em; color: var(--gold-dim);
    border-top: 1px solid var(--panel-border); margin: 16px 0 8px; padding-top: 16px;
}
.uni-setting-group:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.uni-settings { display: flex; flex-direction: column; }
.uni-setting-row {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 0; font-size: 12.5px; color: var(--text-dim);
}
.uni-setting-row img {
    width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
    border: 1px solid var(--panel-border-strong);
    background: rgba(255,255,255,0.03);
}
.uni-setting-row .val { margin-left: auto; color: var(--text); font-weight: 600; white-space: nowrap; padding-left: 12px; }
.uni-setting-row .val.on { color: var(--success); }
.uni-setting-row .val.off { color: var(--text-faint); }

.lobby-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 44px 0 8px; }
.lobby-eyebrow { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 10px; }
.lobby-hero h1 { font-size: 30px; line-height: 1.2; }
.lobby-hero h1 .gold { color: var(--gold); text-shadow: var(--glow-gold); }
.lobby-hero p { margin-top: 10px; max-width: 560px; font-size: 15px; }
.lobby-clock { text-align: right; padding: 14px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border); backdrop-filter: blur(18px); flex-shrink: 0; }
.lobby-clock .lbl { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.lobby-clock .time { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.lobby-clock .date { font-size: 12.5px; color: var(--text-dim); }

.lobby-section-head { display: flex; align-items: center; gap: 14px; margin: 40px 0 18px; }
.lobby-section-head h2 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.lobby-section-head .count { font-family: var(--font-display); font-size: 11px; color: var(--gold); border: 1px solid rgba(232,200,116,.35); border-radius: 999px; padding: 2px 9px; }
.lobby-section-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--panel-border-strong), transparent); }
.lobby-section-sub { margin: -8px 0 18px; font-size: 14px; }

/* ---- Your empires ---- */
.lobby-empires { display: flex; flex-direction: column; gap: 18px; }
.lobby-empire { display: grid; grid-template-columns: 330px minmax(0, 1fr) 230px; min-height: 216px; overflow: hidden; position: relative; }
.lobby-empire.is-under-attack { border-color: rgba(248,113,113,.5); box-shadow: 0 0 0 1px rgba(248,113,113,.15), 0 20px 60px rgba(0,0,0,.45), 0 0 50px rgba(248,113,113,.12); }
.lobby-empire.is-under-attack::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--danger); z-index: 3; animation: lobbyAlarm 1.4s ease-in-out infinite; }
@keyframes lobbyAlarm { 50% { opacity: .25; } }

.lobby-visual { position: relative; background-size: cover; background-position: center; }
.lobby-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,22,.15) 0%, rgba(10,12,22,.35) 55%, rgba(16,19,31,.96) 100%), linear-gradient(0deg, rgba(10,12,22,.85) 0%, transparent 55%); }
.lobby-numeral { position: absolute; z-index: 2; top: 6px; left: 18px; font-family: var(--font-display); font-weight: 800; font-size: 70px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(232,200,116,.5); letter-spacing: .02em; }
.lobby-visual-title { position: absolute; z-index: 2; left: 22px; bottom: 18px; right: 40px; }
.lobby-visual-title .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lobby-visual-title h3 { font-family: var(--font-display); font-size: 25px; font-weight: 700; margin: 2px 0 2px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.lobby-visual-title .sub { font-size: 13px; color: var(--text-dim); }

.lobby-body { min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.lobby-alerts { display: flex; flex-wrap: wrap; gap: 8px; }
.lobby-alert { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; border: 1px solid; }
.lobby-alert svg { width: 15px; height: 15px; flex-shrink: 0; }
.lobby-alert.danger { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.45); color: #ffc2c2; }
.lobby-alert.danger .timer { font-family: var(--font-display); font-size: 12.5px; color: #fff; font-variant-numeric: tabular-nums; }
.lobby-alert.safe { background: rgba(74,222,128,.07); border-color: rgba(74,222,128,.28); color: var(--success); }
.lobby-alert.info { background: rgba(139,108,241,.1); border-color: rgba(139,108,241,.35); color: #cdbfff; }
.lobby-alert.muted { background: rgba(255,255,255,.04); border-color: var(--panel-border-strong); color: var(--text-dim); }
.lobby-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.lobby-alert.danger .lobby-dot { background: var(--danger); animation: lobbyPing 1.2s ease-out infinite; }
@keyframes lobbyPing { 0% { box-shadow: 0 0 0 0 rgba(248,113,113,.7); } 100% { box-shadow: 0 0 0 8px rgba(248,113,113,0); } }

.lobby-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lobby-stat { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--panel-border); min-width: 0; }
.lobby-stat .k { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-stat .v { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lobby-stat .v em { font-style: normal; font-size: 11px; margin-left: 4px; }
.lobby-stat .v em.up { color: var(--success); }
.lobby-stat .v em.down { color: var(--danger); }

.lobby-cta { border-left: 1px solid var(--panel-border); padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.lobby-play { width: 100%; padding: 17px 18px; font-size: 14px; }
.lobby-play svg { width: 16px; height: 16px; }
.lobby-online { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; color: var(--success); font-weight: 600; }
.lobby-online .lobby-dot { animation: uniPulseDot 1.8s ease-out infinite; }

/* ---- Open universes ---- */
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.lobby-uni { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.lobby-uni:hover { transform: translateY(-4px); border-color: var(--panel-border-strong); }
.lobby-uni.featured { border-color: rgba(232,200,116,.45); box-shadow: 0 0 0 1px rgba(232,200,116,.15), 0 20px 60px rgba(0,0,0,.45), 0 0 40px rgba(232,200,116,.08); }
.lobby-banner { position: relative; height: 176px; overflow: hidden; }
.lobby-banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.lobby-uni:hover .lobby-banner .bg { transform: scale(1.06); }
.lobby-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,19,31,.98) 0%, rgba(16,19,31,.4) 45%, rgba(10,12,22,.1) 100%); }
.lobby-banner .badges { position: absolute; z-index: 2; top: 12px; left: 14px; display: flex; gap: 6px; }
.lobby-banner .lobby-numeral { left: auto; right: 16px; top: 8px; font-size: 48px; }
.lobby-banner .title { position: absolute; z-index: 2; left: 18px; bottom: 12px; right: 18px; }
.lobby-banner .title h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.lobby-banner .title span { font-size: 13px; color: var(--text-dim); }

.lobby-uni-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.lobby-speeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lobby-speed { text-align: center; padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--panel-border); }
.lobby-speed strong { display: block; font-family: var(--font-display); font-size: 17px; color: var(--gold); }
.lobby-speed span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
/* Full settings, always visible: three columns under an empire, stacked groups in a universe card. */
.lobby-empire-settings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px 0; border-top: 1px solid var(--panel-border); background: rgba(0,0,0,.14); }
.lobby-set-col { padding: 0 24px; min-width: 0; }
.lobby-set-col + .lobby-set-col { border-left: 1px solid var(--panel-border); }
.lobby-set-col .uni-setting-group { border-top: none; margin-top: 0; padding-top: 0; }
.lobby-uni-settings .uni-setting-group { margin-top: 14px; }
.lobby-uni-settings .uni-setting-group:first-of-type { margin-top: 0; }

.lobby-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--panel-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lobby-pop { font-size: 13px; color: var(--text-dim); }
.lobby-pop b { color: var(--success); font-weight: 600; }
.lobby-join { padding: 11px 20px; }

@media (max-width: 1000px) {
    .lobby-empire { grid-template-columns: minmax(0, 1fr); }
    .lobby-visual { height: 170px; }
    .lobby-visual::after { background: linear-gradient(0deg, rgba(16,19,31,.98) 0%, rgba(10,12,22,.2) 70%); }
    .lobby-cta { border-left: none; border-top: 1px solid var(--panel-border); flex-direction: row-reverse; align-items: center; }
    .lobby-play { width: auto; flex: 1; }
}
@media (max-width: 640px) {
    .lobby-hero { flex-direction: column; align-items: stretch; padding-top: 28px; }
    .lobby-hero h1 { font-size: 23px; }
    .lobby-clock { text-align: left; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
    .lobby-clock .time { font-size: 20px; }
    .lobby-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lobby-body { padding: 18px; }
    .lobby-cta { flex-direction: column; }
    .lobby-play { width: 100%; }
    .lobby-grid { grid-template-columns: 1fr; }
    .lobby-empire-settings { grid-template-columns: 1fr; padding: 0; }
    .lobby-set-col { padding: 16px 18px; }
    .lobby-set-col + .lobby-set-col { border-left: none; border-top: 1px solid var(--panel-border); }
}

/* ==========================================================================
   Forum
   ========================================================================== */

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); }

.forum-hero { padding: 40px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.forum-hero h1 { font-size: 24px; }
.forum-hero p { margin-top: 6px; font-size: 14px; }
.lang-note { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.forum-search { display: flex; gap: 10px; min-width: 300px; }
.forum-search input { flex: 1; }

.forum-stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.forum-stats-strip .stat-tile { padding: 16px 18px; }
.forum-stats-strip .stat-tile b { display:block; font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); }
.forum-stats-strip .stat-tile span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }

.forum-group { margin-bottom: 26px; }
.forum-group-title { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.forum-group-title::after { content: ""; flex: 1; height: 1px; background: var(--panel-border); }

.cat-list { overflow: hidden; }
.cat-row { display: grid; grid-template-columns: 48px 1fr auto 220px; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--panel-border); transition: background .15s ease; }
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: rgba(255,255,255,0.02); }
.cat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(139,108,241,0.18), rgba(232,200,116,0.1)); border: 1px solid var(--panel-border-strong); font-size: 19px; flex-shrink: 0; }
.cat-info a.cat-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.cat-info a.cat-title:hover { color: var(--gold); }
.cat-info p { font-size: 12.5px; margin-top: 4px; max-width: 460px; }
.cat-stats { text-align: center; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.cat-stats b { display: block; font-family: var(--font-display); font-size: 14px; color: var(--text); }
.cat-lastpost { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-faint); }
.cat-lastpost .avatar { width: 30px; height: 30px; font-size: 11px; }
.cat-lastpost .lp-title { color: var(--text-dim); font-weight: 600; display: block; }
.cat-lastpost .lp-title:hover { color: var(--gold); }

.list-head { padding: 28px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.list-head h1 { font-size: 20px; }
.list-head p { margin-top: 6px; font-size: 13px; }

.topic-list-head { display: grid; grid-template-columns: 1fr 100px 100px 200px; gap: 18px; padding: 12px 20px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); border-bottom: 1px solid var(--panel-border-strong); }
.topic-row { display: grid; grid-template-columns: 1fr 100px 100px 200px; gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--panel-border); }
.topic-row:last-child { border-bottom: none; }
.topic-row:hover { background: rgba(255,255,255,0.02); }
.topic-row.pinned { background: rgba(232,200,116,0.04); }
.topic-title-cell { display: flex; align-items: flex-start; gap: 10px; }
.topic-title-cell .pin-ic { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.topic-title a { font-size: 14px; font-weight: 600; color: var(--text); }
.topic-title a:hover { color: var(--gold); }
.topic-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 3px; }
.topic-num { text-align: center; font-size: 13px; color: var(--text-dim); }

.post-list { overflow: hidden; margin-bottom: 20px; }
.post-card { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--panel-border); }
.post-card:last-child { border-bottom: none; }
.post-author { padding: 22px 18px; text-align: center; background: rgba(255,255,255,0.015); border-right: 1px solid var(--panel-border); }
.post-author .avatar { width: 58px; height: 58px; font-size: 20px; margin: 0 auto 10px; }
.post-author .pa-name { font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.post-author .pa-meta { font-size: 10.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.7; }
.post-body { padding: 22px 24px; }
.post-body-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.post-body-top .post-time { font-size: 11.5px; color: var(--text-faint); }
.post-content { font-size: 14px; color: var(--text); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.post-actions { display: flex; gap: 8px; margin-top: 18px; }

.reaction-row { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.reaction-row form { display: contents; }
.reaction-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border-strong);
    font-size: 12px; color: var(--text-dim); cursor: pointer;
    font-family: var(--font-body);
}
.reaction-chip:hover { border-color: var(--gold); color: var(--gold); }
.reaction-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(232,200,116,0.1); }

.editor-toolbar { display: flex; gap: 4px; padding: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--panel-border-strong); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.editor-toolbar button { width: 28px; height: 28px; border: none; background: transparent; color: var(--text-dim); border-radius: 6px; cursor: pointer; font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.editor-toolbar button:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.editor-toolbar + textarea { border-radius: 0 0 var(--radius-sm) var(--radius-sm); border-top: none; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; color: var(--text-dim); border: 1px solid var(--panel-border); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: #201404; border-color: var(--gold); }

.new-topic-card { max-width: 760px; padding: 28px; }

@media (max-width: 760px) {
    .cat-row { grid-template-columns: 40px 1fr; }
    .cat-stats, .cat-lastpost { display: none; }
    .topic-row, .topic-list-head { grid-template-columns: 1fr; }
    .topic-num, .topic-row .cat-lastpost { display: none; }
    .post-card { grid-template-columns: 1fr; }
    .post-author { border-right: none; border-bottom: 1px solid var(--panel-border); display: flex; align-items: center; gap: 12px; text-align: left; }
    .post-author .avatar { margin: 0; }
    .forum-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Shared top bar (account page and anything else logged-in that isn't the
   old ingame skin)
   ========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8,10,18,0.72);
    border-bottom: 1px solid var(--panel-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color .15s ease, background .15s ease;
}
.topbar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.topbar-nav a.active { color: var(--gold); background: rgba(232,200,116,0.1); }
.topbar-user { display: flex; align-items: center; gap: 12px; }

.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--gold-dim));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
    border: 1px solid var(--panel-border-strong);
    flex-shrink: 0; overflow: hidden;
}

/* ---------- Forum notification bell ---------- */

.notif-bell { position: relative; }
.notif-bell-toggle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--panel-border-strong);
    background: rgba(255,255,255,0.03);
    cursor: pointer; list-style: none; font-size: 15px;
    position: relative; flex-shrink: 0;
}
.notif-bell-toggle::-webkit-details-marker { display: none; }
.notif-bell-toggle:hover { border-color: var(--gold); }
.notif-bell-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--danger, #f87171);
    color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    width: 320px; max-height: 400px; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--panel-border);
    border-radius: var(--radius); backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.notif-dropdown-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-bottom: 1px solid var(--panel-border);
    font-size: 12.5px; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .04em;
}
.notif-mark-all {
    background: none; border: none; color: var(--gold); font-size: 11px;
    cursor: pointer; text-transform: none; letter-spacing: normal; font-weight: 600;
}
.notif-row {
    display: block; padding: 10px 14px; border-bottom: 1px solid var(--panel-border);
    font-size: 12.5px; color: var(--text-dim);
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: rgba(255,255,255,0.03); }
.notif-row.unread { background: rgba(232,200,116,0.06); }
.notif-row .notif-text { display: block; color: var(--text); line-height: 1.5; }
.notif-row .notif-text b { color: var(--gold); }
.notif-row .notif-time { display: block; margin-top: 3px; font-size: 11px; color: var(--text-faint); }
.notif-empty { padding: 20px 14px; text-align: center; font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 860px) {
    .topbar-nav { display: none; }
}

/* ==========================================================================
   Account settings page
   ========================================================================== */

.page-head { padding: 40px 0 28px; }
.page-head h1 { font-size: 24px; }
.page-head p { margin-top: 6px; font-size: 14px; }

.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.rail-card { padding: 18px; position: sticky; top: 84px; }

.profile-mini {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 10px 18px; margin-bottom: 10px;
    border-bottom: 1px solid var(--panel-border);
}
.profile-mini .avatar { width: 44px; height: 44px; font-size: 15px; }
.profile-mini b { display: block; font-size: 14.5px; }
.profile-mini span { font-size: 12px; color: var(--text-faint); }

.tab-rail { display: flex; flex-direction: column; gap: 4px; }
.tab-rail a {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: var(--radius-sm); color: var(--text-dim); font-size: 14px;
    font-weight: 600; border: 1px solid transparent; transition: all .15s ease;
}
.tab-rail a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.tab-rail a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.tab-rail a.active { background: rgba(232,200,116,0.08); border-color: rgba(232,200,116,0.25); color: var(--gold); }
.tab-rail a.active svg { opacity: 1; }
.tab-rail a.danger-link { color: #ff9d9d; }
.tab-rail a.danger-link:hover { background: rgba(248,113,113,0.08); }

.content-card { padding: 32px 36px; }
.content-card + .content-card { margin-top: 20px; }
.section-title { margin-bottom: 4px; font-size: 18px; }
.section-desc { margin-bottom: 26px; font-size: 13.5px; }

.settings-tab { display: none; }
.settings-tab.active { display: block; animation: fadeSlideAcc .3s ease; }
@keyframes fadeSlideAcc { from { opacity:0; transform: translateY(6px);} to {opacity:1; transform:none;} }

.kv-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--panel-border); gap: 20px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row .kv-label { font-size: 14px; font-weight: 600; }
.kv-row .kv-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }

.twofa-box {
    display: flex; gap: 24px; padding: 22px; border-radius: var(--radius-sm);
    background: rgba(139,108,241,0.06); border: 1px solid rgba(139,108,241,0.22);
    align-items: center;
}
.qr-placeholder {
    width: 176px; height: 176px; border-radius: 10px;
    background: #fff; border: 1px solid var(--panel-border-strong);
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #333; text-align: center; padding: 8px;
}
.qr-placeholder svg { width: 100%; height: 100%; }

.danger-zone { border: 1px solid rgba(248,113,113,0.28); background: rgba(248,113,113,0.04); }

.notif-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--panel-border); }
.notif-row:last-child { border-bottom: none; }
.notif-row .kv-label { font-size: 13.5px; font-weight: 500; }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .track { position: absolute; inset: 0; background: rgba(255,255,255,0.1); border: 1px solid var(--panel-border-strong); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .track::before { content:""; position:absolute; width:16px; height:16px; left:3px; top:2px; background: var(--text-dim); border-radius:50%; transition:.2s; }
.switch input:checked + .track { background: rgba(232,200,116,0.25); border-color: var(--gold); }
.switch input:checked + .track::before { transform: translateX(18px); background: var(--gold); }

.recovery-codes-list {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    font-family: var(--font-display); font-size: 13px;
    background: rgba(0,0,0,0.25); border: 1px solid var(--panel-border-strong);
    border-radius: var(--radius-sm); padding: 16px;
}

@media (max-width: 860px) {
    .account-layout { grid-template-columns: 1fr; }
    .rail-card { position: static; }
    .content-card { padding: 24px; }
}

/* ---------- Rules page ---------- */

.rules-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rules-toc a {
    font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
    padding: 7px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border-strong);
    color: var(--text-dim);
}
.rules-toc a:hover { color: var(--gold); border-color: var(--gold); }

.rules-content { padding: 32px; }
.rules-content section { margin-bottom: 36px; scroll-margin-top: 90px; }
.rules-content section:last-child { margin-bottom: 0; }

.rules-content h2 {
    font-size: 18px; color: var(--gold-bright);
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--panel-border-strong);
}
.rules-content h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.rules-content h4 { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; color: var(--gold); letter-spacing: .02em; margin: 16px 0 6px; }

.rules-content p { margin: 0 0 12px; }
.rules-content p:last-child { margin-bottom: 0; }

.rules-content ul, .rules-content ol { list-style: revert; margin: 0 0 14px; padding-left: 22px; }
.rules-content ul:last-child, .rules-content ol:last-child { margin-bottom: 0; }
.rules-content li { margin-bottom: 6px; color: var(--text-dim); line-height: 1.6; }
.rules-content li::marker { color: var(--gold-dim); }
.rules-content li > ul, .rules-content li > ol { margin-top: 6px; }

.rules-content strong { color: var(--text); font-weight: 700; }

.rules-note {
    background: rgba(232,200,116,0.06); border: 1px solid rgba(232,200,116,0.2);
    border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: 13.5px; color: var(--text-dim); margin: 0 0 14px;
}
.rules-note.rules-note-danger { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); }

/* Inline gold "XL" for use inside running prose (unlike .brand-mark, doesn't change
   font-size/family/weight - only color+glow, so it flows naturally within a sentence). */
.xl-gold { color: var(--gold); text-shadow: var(--glow-gold); font-weight: 700; }

/* ── Public changelog page ───────────────────────────────────────────────
   One collapsible block per dated entry, newest open. Reuses .rules-content
   for the prose inside each entry so patch notes read like every other public
   text page on the site. */

.changelog-page__intro {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--text-dim);
}

.changelog-page .changelog-entry {
    border-bottom: 1px solid var(--panel-border-strong);
}

.changelog-page .changelog-entry:last-of-type {
    border-bottom: none;
}

.changelog-entry__summary {
    cursor: pointer;
    padding: 14px 2px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--gold-bright);
    /* Both lines are needed to drop the native marker: Safari still uses the
       old pseudo-element, everything else honours list-style. */
    list-style: none;
}

.changelog-entry__summary::-webkit-details-marker {
    display: none;
}

.changelog-entry__summary::before {
    content: "\25B8";
    display: inline-block;
    width: 16px;
    color: var(--gold-dim);
    transition: transform 0.15s ease;
}

.changelog-entry[open] > .changelog-entry__summary::before {
    transform: rotate(90deg);
}

.changelog-entry__body {
    padding: 0 0 18px 18px;
}

.changelog-entry__body p {
    margin: 0 0 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

.changelog-entry__body p:last-child {
    margin-bottom: 0;
}

.changelog-entry__body strong {
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 640px) {
    .changelog-page.rules-content {
        padding: 18px 14px;
    }

    .changelog-entry__body {
        padding-left: 10px;
    }
}

/* Patch notes routinely contain bare URLs. Without this a single long link sets
   the min-content width of the whole page, and the phone zooms out to fit it. */
.changelog-entry__summary,
.changelog-entry__body {
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Forum - rendered posts, editor, ranks, read state, moderation
   Added alongside the forum rework: posts are now real BBCode rather than flat
   escaped text, so quotes, lists, spoilers and code blocks need styling that
   did not exist before.
   ========================================================================== */

/* --- Rendered post content -------------------------------------------- */

.post-content { line-height: 1.65; overflow-wrap: anywhere; }
.post-content a { color: var(--gold); text-decoration: underline; }
.post-content strong { font-weight: 700; color: var(--text); }
.post-content .bb-u { text-decoration: underline; }
.post-content .bb-s { text-decoration: line-through; }

.post-quote {
    margin: 12px 0;
    padding: 10px 14px;
    border-left: 3px solid var(--gold-dim);
    background: rgba(232, 200, 116, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-quote cite { display: block; font-style: normal; font-size: 11.5px; color: var(--gold); margin-bottom: 6px; font-weight: 600; }
.post-quote cite a { color: var(--gold); text-decoration: none; }
.post-quote cite a:hover { text-decoration: underline; }
.post-quote .pq-body { color: var(--text-dim); font-size: 13px; }
/* Nested quotes step back visually so a quote-of-a-quote stays readable. */
.post-quote .post-quote { background: rgba(255, 255, 255, 0.03); border-left-color: var(--text-faint); }

.post-code {
    margin: 12px 0;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12.5px;
    white-space: pre-wrap;
    overflow-x: auto;
}

.post-spoiler {
    margin: 12px 0;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}
.post-spoiler > summary { cursor: pointer; padding: 8px 12px; font-size: 12px; color: var(--gold); list-style: none; }
.post-spoiler > summary::-webkit-details-marker { display: none; }
.post-spoiler > div { padding: 0 12px 12px; }

.post-list-bb { margin: 10px 0; padding-left: 22px; }
.post-list-bb li { margin: 4px 0; }

.post-image { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 10px 0; display: block; }

.post-signature {
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px dashed var(--panel-border);
    font-size: 11.5px;
    color: var(--text-faint);
    font-style: italic;
}

.post-permalink { text-decoration: none; }
.post-edited { font-size: 11px; color: var(--text-faint); font-style: italic; }

/* --- Author card: rank ------------------------------------------------- */

.post-author .pa-name a { color: var(--text); text-decoration: none; }
.post-author .pa-name a:hover { color: var(--gold); }
.pa-rank {
    margin-top: 4px;
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.pa-rank.is-staff { color: var(--gold); font-weight: 700; }

/* --- Read state -------------------------------------------------------- */

.badge-new {
    background: rgba(139, 108, 241, 0.18);
    border: 1px solid var(--violet);
    color: #c3b3ff;
    text-decoration: none;
}
.dot-new {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--violet);
    margin-right: 5px;
    vertical-align: middle;
}
.topic-row.unread .topic-title > a { font-weight: 700; color: var(--text); }
.post-card.is-new { box-shadow: inset 3px 0 0 var(--violet); }

.forum-toolbar { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.thread-head-meta { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.thread-head-actions { display: inline-flex; gap: 8px; margin-left: auto; }

/* --- Posting gate notice ----------------------------------------------- */

.gate-notice {
    padding: 16px 20px;
    margin-bottom: 18px;
    border-left: 3px solid var(--gold-dim);
}
.gate-notice-title { font-family: var(--font-display); font-size: 13px; color: var(--gold); margin-bottom: 6px; }
.gate-notice p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* --- Editor ------------------------------------------------------------ */

.forum-editor { border: 1px solid var(--panel-border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.editor-tabs { display: flex; background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--panel-border); }
.editor-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
}
.editor-tab.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.forum-editor .editor-toolbar { border: none; border-bottom: 1px solid var(--panel-border); border-radius: 0; }
.forum-editor .editor-toolbar button { width: auto; min-width: 28px; padding: 0 7px; }
.editor-sep { width: 1px; background: var(--panel-border); margin: 4px; }
.forum-editor textarea {
    display: block;
    width: 100%;
    min-height: 160px;
    border: none;
    border-radius: 0;
    resize: vertical;
}
.editor-preview { min-height: 160px; padding: 14px; color: var(--text); }
.editor-foot { display: flex; justify-content: flex-end; padding: 6px 12px; border-top: 1px solid var(--panel-border); }
.editor-count { font-size: 11px; color: var(--text-faint); }

/* --- Reactions --------------------------------------------------------- */

.reaction-chip .re-emoji { margin-right: 4px; }
/* An unused reaction stays available but recedes, so the row reads as a set of
   choices rather than a row of zeroes. */
.reaction-chip.is-empty { opacity: .45; }
.reaction-chip.is-empty:hover { opacity: 1; }
.reaction-chip[disabled] { cursor: default; opacity: .3; }

.btn-danger-ghost { color: var(--danger); }
.btn-ghost.active { border-color: var(--gold); color: var(--gold); }

/* --- Moderation panel -------------------------------------------------- */

.mod-panel { padding: 0; margin-bottom: 18px; }
.mod-panel > summary {
    cursor: pointer;
    padding: 12px 18px;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--gold);
    list-style: none;
}
.mod-panel > summary::-webkit-details-marker { display: none; }
.mod-panel-body { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 16px; align-items: center; }
.mod-panel-body form { margin: 0; }
.mod-inline { display: flex; gap: 6px; align-items: center; }
.mod-inline input[type="text"] { width: 240px; }

/* --- Forum profile ----------------------------------------------------- */

.profile-card { padding: 22px; margin-bottom: 18px; }
.profile-head { display: flex; gap: 18px; align-items: flex-start; }
.profile-avatar { width: 78px; height: 78px; flex: 0 0 78px; }
.profile-head h1 { font-size: 20px; margin: 0; }
.profile-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.profile-rank-progress { margin-top: 16px; font-size: 12px; color: var(--text-faint); }

.profile-post { padding: 12px 0; border-bottom: 1px solid var(--panel-border); }
.profile-post:last-child { border-bottom: none; }
.profile-post .pp-title { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.profile-post .pp-meta { font-size: 11px; color: var(--text-faint); margin: 3px 0 6px; }
.profile-post .pp-excerpt { font-size: 12.5px; color: var(--text-dim); }

.rank-ladder { display: flex; flex-direction: column; gap: 6px; }
.rank-row { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 12.5px; }
.rank-row.is-current { background: rgba(232, 200, 116, 0.08); color: var(--gold); font-weight: 700; }

@media (max-width: 640px) {
    .thread-head-actions { margin-left: 0; width: 100%; }
    .mod-inline input[type="text"] { width: 100%; }
    .profile-head { flex-direction: column; }
}

/* ==========================================================================
   Site footer (every public page except the centered auth cards and login)
   ========================================================================== */

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell-main { flex: 1 0 auto; }

.site-foot { margin-top: 72px; border-top: 1px solid var(--panel-border); background: linear-gradient(180deg, rgba(10,12,22,.35), rgba(5,6,12,.9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,200,116,.45), transparent); }
.site-foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding: 44px 0 32px; }
.site-foot-brand .brand img { height: 42px; }
.site-foot-brand p { margin: 14px 0 18px; max-width: 320px; font-size: 13.5px; }
.site-foot-brand .lang-dropdown-menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.site-foot-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.site-foot-col h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dim); }
.site-foot-col a { font-size: 14px; color: var(--text-dim); transition: color .15s ease, transform .15s ease; width: fit-content; }
.site-foot-col a:hover { color: var(--gold); transform: translateX(3px); }
.site-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 24px; border-top: 1px solid var(--panel-border); font-size: 12.5px; color: var(--text-faint); }
.site-foot-version { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.site-foot-version:hover { color: var(--gold); }

@media (max-width: 860px) {
    .site-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
    .site-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .site-foot { margin-top: 48px; }
    .site-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 32px; }
    .site-foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Contact page (reuses the /play lobby hero, section heads and card shell)
   ========================================================================== */

.contact-page .lobby-clock .time { font-size: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.contact-card { scroll-margin-top: 90px; }
.contact-card .lobby-banner { height: 150px; }
.contact-card.is-flash { animation: contactFlash 1.4s ease-out; }
@keyframes contactFlash {
    0% { box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(232,200,116,.35); }
    100% { box-shadow: 0 0 0 0 transparent, 0 20px 60px rgba(0,0,0,.45); }
}
.contact-title { display: flex; align-items: flex-end; gap: 12px; }
.contact-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: var(--gold); background: rgba(10,12,22,.65); border: 1px solid rgba(232,200,116,.35); box-shadow: 0 0 18px rgba(232,200,116,.15); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-title h3 { line-height: 1.15; }
.contact-desc { font-size: 14.5px; }
.contact-list { display: flex; flex-direction: column; gap: 7px; margin-top: 10px !important; }
.contact-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.contact-list svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--success); }
.contact-card .lobby-foot { flex-wrap: wrap; }
.contact-card .lobby-pop { flex: 1 1 120px; }

.contact-copy { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--panel-border-strong); background: rgba(255,255,255,.03); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.contact-copy:hover { border-color: var(--gold); color: var(--gold); }
.contact-copy.is-copied { border-style: solid; border-color: rgba(74,222,128,.5); color: var(--success); }
.contact-copy-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-copy svg { width: 14px; height: 14px; flex-shrink: 0; }

.contact-router { padding: 6px; display: flex; flex-direction: column; }
.contact-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 200px); align-items: center; gap: 16px; padding: 14px 18px; border-radius: 10px; transition: background .15s ease; }
.contact-route + .contact-route { border-top: 1px solid var(--panel-border); }
.contact-route:hover { background: rgba(255,255,255,.04); }
.contact-route-q { font-size: 15px; color: var(--text); }
.contact-route-arrow { color: var(--text-faint); transition: color .15s ease, transform .15s ease; }
.contact-route-arrow svg { width: 16px; height: 16px; display: block; }
.contact-route:hover .contact-route-arrow { color: var(--gold); transform: translateX(3px); }
.contact-route-target { justify-self: end; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232,200,116,.3); background: rgba(232,200,116,.08); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

.contact-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-tip { padding: 22px 22px 20px; position: relative; overflow: hidden; }
.contact-tip-n { position: absolute; right: 14px; top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(232,200,116,.35); }
.contact-tip h3 { margin: 0 0 8px; padding-right: 56px; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); }
.contact-tip p { font-size: 13.5px; }

@media (max-width: 860px) {
    .contact-tips { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-route { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px; }
    .contact-route-arrow { display: none; }
    .contact-route-target { font-size: 10.5px; padding: 4px 10px; }
}

/* ==========================================================================
   Guest landing (/login, /register): the /play lobby behind a login modal
   ========================================================================== */

.lobby-hero h1 .accent { color: var(--gold); text-shadow: var(--glow-gold); }
.guest-lobby .us-topbar-inner { gap: 16px; }
.guest-lobby .us-topbar .flex-gap { flex-wrap: wrap; justify-content: flex-end; }
.us-topbar .guest-nav-link:hover { color: var(--gold); }
.guest-stats { margin-top: 28px; }
.guest-stats .guest-online { display: flex; align-items: center; gap: 8px; color: var(--success); }
.guest-stats .guest-online .lobby-dot { animation: uniPulseDot 1.8s ease-out infinite; }
.guest-lobby .lobby-alerts .badge { padding: 5px 12px; font-size: 11.5px; }

/* Recent battles ticker inside the guest universe row. */
.battle-ticker { position: relative; overflow: hidden; margin: 0 -26px; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.battle-ticker-track { display: flex; width: max-content; animation: battleTicker var(--ticker-duration, 60s) linear infinite; }
.battle-ticker:hover .battle-ticker-track { animation-play-state: paused; }
.battle-ticker-set { display: flex; gap: 10px; padding-right: 10px; }
/* Content drifts left to right: start one full set to the left and slide back to zero. */
@keyframes battleTicker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.battle-tile { flex: none; min-width: 168px; max-width: 240px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--panel-border); text-align: center; }
.battle-tile { display: block; transition: border-color .15s ease, background .15s ease; }
.battle-tile:hover, .battle-tile:focus-visible { border-color: rgba(232,200,116,.45); background: rgba(232,200,116,.06); outline: none; }
.battle-tile-names { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.battle-tile-names span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-tile-names em { font-style: normal; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--gold-dim); }
.battle-tile-names .is-win { color: var(--success); }
.battle-tile-names .is-loss { color: var(--danger); }
.battle-tile-names .is-draw { color: var(--gold); }
.battle-tile-time { display: flex; justify-content: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .battle-ticker { overflow-x: auto; scrollbar-width: none; }
    .battle-ticker-track { animation: none; }
    .battle-ticker-set[aria-hidden] { display: none; }
}
@media (max-width: 640px) {
    .battle-ticker { margin: 0 -18px; }
}
/* The promo-pane rail, full width: header styled like the lobby section heads. */
.guest-lobby .promo-shots { margin-top: 40px; }
.guest-lobby .promo-shots-head { margin-bottom: 18px; gap: 14px; }
.guest-lobby .promo-shots-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: .16em; color: var(--text); white-space: nowrap; }
.guest-lobby .promo-shots-head::after { content: ""; order: 1; flex: 1; height: 1px; background: linear-gradient(90deg, var(--panel-border-strong), transparent); }
.guest-lobby .promo-shots-nav { order: 2; }
.guest-lobby .promo-shots-arrow { width: 30px; height: 30px; font-size: 18px; }
.guest-lobby .promo-shots-viewport::before { background: linear-gradient(90deg, rgba(5,6,12,.9), rgba(5,6,12,0)); }
.guest-lobby .promo-shots-viewport::after { background: linear-gradient(270deg, rgba(5,6,12,.9), rgba(5,6,12,0)); }

.auth-modal { position: fixed; inset: 0; z-index: 1000; display: none; padding: 40px 16px; overflow-y: auto; overscroll-behavior: contain; }
.auth-modal.is-open { display: flex; }
body:has(.auth-modal.is-open) { overflow: hidden; }
.auth-modal-backdrop { position: fixed; inset: 0; background: rgba(3,4,8,.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: authFadeIn .25s ease; }
.auth-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 470px; margin: auto; padding: 32px 36px 28px; background: rgba(16,19,31,.95); border-color: var(--panel-border-strong); box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(232,200,116,.08); animation: authModalIn .3s cubic-bezier(.2,.8,.2,1); }
.auth-modal-dialog::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,200,116,.55), transparent); }
@keyframes authFadeIn { from { opacity: 0; } }
@keyframes authModalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.auth-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--panel-border-strong); background: rgba(255,255,255,.04); color: var(--text-dim); cursor: pointer; transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.auth-modal-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.auth-modal-close svg { width: 16px; height: 16px; }
.auth-modal-brand { display: flex; justify-content: center; margin: 2px 0 22px; }
.auth-modal-brand img { height: 48px; width: auto; display: block; }
.auth-modal .auth-tabs { margin-bottom: 24px; }
.auth-modal .auth-tabs[hidden], .auth-modal .auth-flip[hidden], .auth-forgot[hidden] { display: none; }
.auth-forgot h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.auth-forgot p { font-size: 13.5px; margin-bottom: 22px; }

@media (max-width: 640px) {
    .guest-lobby .guest-nav-link { display: none; }
    .guest-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .auth-modal { padding: 12px; }
    .auth-modal-dialog { padding: 26px 18px 20px; }
    .auth-modal-brand img { height: 40px; }
    .auth-modal .row-split { grid-template-columns: 1fr; gap: 0; }
}

/* Battle report modal: the in-game report, framed, dressed like the in-game overlay dialog
   (jQuery UI titlebar gradient, square corners, hard drop shadow) and sized to its fixed
   702px report plus the frame's padding and scrollbar, so nothing hangs off to one side. */
.report-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.report-modal[hidden] { display: none; }
body:has(.report-modal:not([hidden])) { overflow: hidden; }
.report-modal-dialog { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 734px; height: min(88vh, 900px); overflow: hidden; background: #0d1014; border: 1px solid #1f2833; box-shadow: 5px 8px 15px #000, 0 30px 90px rgba(0,0,0,.6); animation: authModalIn .25s cubic-bezier(.2,.8,.2,1); }
.report-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 6px 5px 14px; background: linear-gradient(180deg, #3d4b5b 0%, #2b343f 49%, #1f262d 50%, #1f2934 100%); border-bottom: 1px solid #111a22; }
.report-modal-head h2 { font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0; color: #6f9fc8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-modal-close { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 1px solid #111a22; border-radius: 3px; background: linear-gradient(180deg, #2b343f, #1a2028); color: #8fa9c4; cursor: pointer; }
.report-modal-close:hover { color: #fff; border-color: #6f9fc8; }
.report-modal-close svg { width: 12px; height: 12px; }
.report-modal-frame { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 520px) {
    .report-modal { padding: 0; }
    .report-modal-dialog { height: 100dvh; max-width: none; }
}
