:root {
    --bg: #090d14;
    --bg-soft: #111827;
    --panel: rgba(24, 32, 45, 0.92);
    --panel-solid: #18202d;
    --panel-2: #202b3b;
    --panel-3: #0f172a;
    --text: #f7f3e8;
    --muted: #aab2c0;
    --muted-2: #7d8796;
    --border: rgba(214, 168, 79, 0.22);
    --border-strong: rgba(214, 168, 79, 0.46);
    --accent: #d6a84f;
    --accent-soft: rgba(214, 168, 79, 0.14);
    --danger: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.14);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.14);
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);

    --gold-bright: #f8e6ad;
    --gold-muted: #c4a865;
    --stone-dark: #11161c;
    --stone-deep: #070b12;
    --widget-frame-fill: image-set(
        url("../assets/optimized/images/Widget_Frame_Fill.576d13bbac4e.webp") type("image/webp"),
        url("../assets/images/Widget_Frame_Fill.f7dad4d3f4b8.png") type("image/png")
    );
    --widget-frame-corner: url("../assets/images/Widget_Frame_Corner.63811eea3add.png");
    --widget-frame-edge-horz: url("../assets/images/frame_ornate_edgehorizontal.06aac0a7447a.png");
    --widget-frame-edge-vert: url("../assets/images/frame_ornate_edgevertical.c6ac336cc359.png");
    --widget-frame-divider: url("../assets/images/Widget_Frame_Divider.5510f2fe08ee.png");
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(214, 168, 79, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(71, 85, 105, 0.32), transparent 30rem),
        linear-gradient(180deg, #0a0f18 0%, #080b10 100%);
    color: var(--text);
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}


.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 28px 32px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(10, 15, 24, 0.96), rgba(24, 32, 45, 0.9));
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.subtitle {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.last-updated {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.primary-button,
.secondary-button {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 10px 14px;
    background: var(--accent-soft);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: rgba(214, 168, 79, 0.22);
}

.primary-button:disabled,
.secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.app-shell {
    width: min(1760px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 22px 0 32px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.tab-button {
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 11px 15px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 800;
}

.tab-button:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.tab-button.active {
    color: var(--accent);
    border-color: var(--border-strong);
    background: var(--accent-soft);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.browser-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 18px;
    align-items: start;
}

.lobby-panel,
.placeholder-panel {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.lobby-panel {
    min-width: 0;
    padding: 16px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 1fr));
    gap: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    padding: 10px 12px;
    outline: none;
    background: rgba(15, 23, 42, 0.88);
    color: var(--text);
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.13);
}

.quick-filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 14px 0 12px;
}

.toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.58);
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.toggle-pill input {
    width: auto;
    accent-color: var(--accent);
}

.toggle-pill:has(input:checked) {
    border-color: var(--border-strong);
    background: var(--accent-soft);
    color: var(--text);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 4px 2px 12px;
}

.summary {
    color: var(--text);
    font-weight: 900;
}

.filter-note {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 13px;
}

.table-card {
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    background: rgba(7, 11, 18, 0.58);
}

.lobby-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.lobby-table th,
.lobby-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    vertical-align: middle;
}

.lobby-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0d1420;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    user-select: none;
}

.lobby-table th:hover {
    background: #141d2c;
}

.lobby-table tbody tr {
    cursor: pointer;
    transition: background 120ms ease, box-shadow 120ms ease;
}

.lobby-table tbody tr:hover,
.lobby-table tbody tr.selected {
    background: rgba(214, 168, 79, 0.10);
}

.lobby-table tbody tr.selected {
    box-shadow: inset 3px 0 0 var(--accent);
}

.lobby-table tbody tr:last-child td {
    border-bottom: 0;
}

.lobby-cell-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 900;
}

.lobby-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-cell-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.map-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.map-thumb {
    width: 46px;
    min-width: 46px;
    aspect-ratio: 23 / 17;
    height: auto;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: #0d1420;
    object-fit: cover;
}

.map-thumb.large {
    width: 100%;
    height: 190px;
    border-radius: 18px;
}

.map-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.players-meter {
    display: grid;
    gap: 7px;
    min-width: 88px;
}

.players-count {
    font-size: 17px;
    font-weight: 950;
}

.meter-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--success), var(--accent));
}

.region-pill {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.text-flag {
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.text-flag-danger {
    color: #fecaca;
}

.text-flag-warning {
    color: #fde68a;
}


.empty-state {
    min-height: 560px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

.empty-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 40px;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: var(--text);
}

.empty-state p {
    max-width: 310px;
    margin: 0;
    line-height: 1.5;
}

.active-feed-unavailable {
    color: #f3d697;
    background: linear-gradient(90deg, rgba(145, 92, 30, 0.12), rgba(145, 92, 30, 0.04));
    border-left: 3px solid rgba(218, 164, 79, 0.75);
    line-height: 1.55;
    padding: 18px 20px !important;
}

.sidebar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
}



.sidebar-title {
    margin: 0 0 8px;
    font-size: 23px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.sidebar-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.sidebar-map {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.sidebar-map-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 12px 0 15px;
}

.stat-grid.compact {
    grid-template-columns: repeat(2, 1fr);
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.62);
}

.stat-label {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 5px;
    color: var(--text);
    font-size: 18px;
    font-weight: 950;
}

.sidebar-section {
    margin-top: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 9px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-list {
    display: grid;
    gap: 8px;
}

.player-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.56);
}

.slot-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.player-row-open {
    border-style: dashed;
    background: rgba(148, 163, 184, 0.05);
}

.player-row-open .slot-number {
    background: rgba(148, 163, 184, 0.06);
    color: rgba(148, 163, 184, 0.48);
}

.player-row-open .player-name {
    color: rgba(148, 163, 184, 0.58);
    font-weight: 800;
}

.player-row-empty {
    grid-template-columns: 1fr;
}

.player-main {
    min-width: 0;
}

.player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.player-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.player-god {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.settings-list {
    display: grid;
    gap: 7px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.setting-label {
    color: var(--muted);
}

.setting-value {
    color: var(--text);
    text-align: right;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
}

.hover-tooltip {
    position: fixed;
    z-index: 100;
    display: none;
    max-width: 360px;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 12px;
    background: rgba(7, 11, 18, 0.96);
    box-shadow: var(--shadow);
    pointer-events: none;
}

.tooltip-title {
    margin-bottom: 6px;
    color: var(--accent);
    font-weight: 950;
}

.tooltip-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
}

.tooltip-participant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 5px 0;
    color: var(--text);
    font-size: 12px;
}

.tooltip-participant span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.placeholder-panel {
    padding: 24px;
}

.placeholder-title {
    margin: 0 0 10px;
    color: var(--accent);
}

.placeholder-text {
    max-width: 900px;
    color: var(--muted);
    line-height: 1.6;
}

.placeholder-code {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 7px;
    background: var(--panel-3);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
}

.muted {
    color: var(--muted);
}

@media (max-width: 1180px) {
    .browser-layout {
        grid-template-columns: 1fr;
    }

    .details-sidebar {
        position: static;
        max-height: none;
        min-height: 420px;
    }
}

@media (max-width: 860px) {
    .app-header {
        align-items: start;
        flex-direction: column;
        padding: 22px 18px;
    }

    .header-actions {
        justify-content: start;
    }

    .app-shell {
        width: min(100vw - 20px, 1760px);
        padding-top: 12px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}

.map-feature {
    padding: 10px;
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.10), rgba(15, 23, 42, 0.46)),
        rgba(0, 0, 0, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.18);
}

.map-feature .map-thumb.large {
    height: 225px;
    border-color: rgba(214, 168, 79, 0.34);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.map-size-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 16px;
    background: rgba(214, 168, 79, 0.10);
}

.map-size-callout span {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-size-callout strong {
    color: var(--accent);
    font-size: 20px;
    font-weight: 950;
}

.setting-row-important {
    margin: 3px 0;
    padding: 10px 12px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 13px;
    background: rgba(214, 168, 79, 0.09);
}

.setting-row-danger {
    margin: 0;
    padding: 8px 0;
    border-bottom-color: rgba(248, 113, 113, 0.28);
    background: transparent;
}

.setting-row-danger .setting-label,
.setting-row-danger .setting-value {
    color: #fecaca;
    font-weight: 950;
}

.setting-row-danger .setting-value::before {
    content: "! ";
    color: var(--danger);
}

.player-god-icon-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.player-god-icon {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 50%;
    background: rgba(7, 11, 18, 0.7);
    object-fit: cover;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.player-god-icon-wrap .player-god-fallback {
    display: none;
}

.player-god-icon-wrap.show-fallback .player-god-fallback,
.player-god-fallback {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 50%;
    background: rgba(214, 168, 79, 0.10);
    color: var(--accent);
    font-size: 11px;
    font-weight: 950;
    text-align: center;
}

.player-god-spacer {
    width: 42px;
    height: 1px;
}

.sidebar-section-bottom-rules {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rules-line {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.rules-line strong {
    line-height: 1.35;
    text-align: center;
    font-weight: 950;
}

.rules-line-warning {
    color: #fecaca;
    font-weight: 950;
}

.rules-line-warning strong {
    color: var(--danger);
}

.rules-line-confirmed {
    color: var(--muted-2);
}

.rules-line-confirmed strong {
    color: var(--success);
}

/* =========================================================
   ORNATE POLISH PASS - SAFE VERSION
   ========================================================= */

.lobby-panel,
.details-sidebar {
    position: relative;
    isolation: isolate;
}

/* Main lobby panel gets the same frame language. */
.lobby-panel {
    padding: 34px 34px 28px !important;
    border: none !important;
    border-radius: 24px;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: hidden;
}

.lobby-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -2;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(248, 230, 173, 0.08), transparent 14rem),
        linear-gradient(180deg, rgba(7, 11, 18, 0.22), rgba(7, 11, 18, 0.52)),
        var(--widget-frame-fill) center / cover repeat;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.76),
        inset 0 0 42px rgba(0, 0, 0, 0.40),
        0 24px 80px rgba(0, 0, 0, 0.35);
}

.lobby-panel::after {
    content: "";
    position: absolute;
    inset: 22px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(214, 168, 79, 0.12);
    border-radius: 15px;
    box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.26);
}

.lobby-panel > .widget-frame-ornaments {
    z-index: 4;
}

.lobby-panel > :not(.widget-frame-ornaments) {
    position: relative;
    z-index: 2;
}

/* Filter/summary/table separation. */
.filter-bar {
    padding: 14px;
    border: 1px solid rgba(214, 168, 79, 0.16);
    border-radius: 18px 18px 12px 12px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(7, 11, 18, 0.30)),
        rgba(0, 0, 0, 0.10);
}

.quick-filters {
    margin: 10px 0 0;
    padding: 0 14px 14px;
    border-right: 1px solid rgba(214, 168, 79, 0.16);
    border-bottom: 1px solid rgba(214, 168, 79, 0.16);
    border-left: 1px solid rgba(214, 168, 79, 0.16);
    border-radius: 0 0 18px 18px;
    background: rgba(7, 11, 18, 0.18);
}

.summary-row {
    margin: 15px 0 14px;
    padding: 13px 14px;
    border-top: 1px solid rgba(214, 168, 79, 0.22);
    border-bottom: 1px solid rgba(214, 168, 79, 0.22);
    background:
        linear-gradient(90deg, rgba(214, 168, 79, 0.10), transparent 42%),
        rgba(7, 11, 18, 0.14);
}

.summary {
    color: var(--gold-bright);
}

.filter-note {
    color: #c4b98f;
}

.lobby-panel input,
.lobby-panel select {
    border-color: rgba(214, 168, 79, 0.16);
    background: rgba(7, 11, 18, 0.58);
}

.lobby-panel .toggle-pill {
    border-color: rgba(214, 168, 79, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(7, 11, 18, 0.40)),
        rgba(0, 0, 0, 0.12);
}

.lobby-panel .toggle-pill:has(input:checked) {
    border-color: rgba(214, 168, 79, 0.56);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.22), rgba(7, 11, 18, 0.32)),
        rgba(0, 0, 0, 0.12);
}

.lobby-panel .table-card {
    border-color: rgba(214, 168, 79, 0.18);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(7, 11, 18, 0.56)),
        rgba(0, 0, 0, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 12px 28px rgba(0, 0, 0, 0.16);
}

.lobby-panel .lobby-table th {
    font-family: "Baskervville", Georgia, serif;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(7, 11, 18, 0.94));
    color: var(--gold-bright);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.lobby-host-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

/* Details sidebar wrapper and frame. */
.details-sidebar {
    position: sticky;
    top: 18px;
    min-height: 0;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
}

.details-sidebar::before,
.details-sidebar::after {
    display: none !important;
}

.details-sidebar-frame {
    position: relative;
    z-index: 1;
    margin: 10px;
    padding: 28px 24px 22px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(248, 230, 173, 0.08), transparent 13rem),
        linear-gradient(180deg, rgba(7, 11, 18, 0.22), rgba(7, 11, 18, 0.52)),
        var(--widget-frame-fill) center / cover repeat;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.76),
        inset 0 0 42px rgba(0, 0, 0, 0.40),
        0 24px 80px rgba(0, 0, 0, 0.45);
}

.details-sidebar-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 0;
    pointer-events: none;
}

/* Shared ornate pieces. */
.widget-frame-ornaments {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.widget-corner {
    position: absolute;
    width: 54px;
    height: 54px;
    z-index: 7;
    background: var(--widget-frame-corner) left top / contain no-repeat;
    opacity: 0.98;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.72));
}

.widget-corner-tl {
    top: 9px;
    left: 9px;
    transform: rotate(0deg);
    transform-origin: center;
}

.widget-corner-tr {
    top: 9px;
    right: 9px;
    transform: rotate(90deg);
    transform-origin: center;
}

.widget-corner-br {
    right: 9px;
    bottom: 9px;
    transform: rotate(180deg);
    transform-origin: center;
}

.widget-corner-bl {
    left: 9px;
    bottom: 9px;
    transform: rotate(270deg);
    transform-origin: center;
}

.widget-edge {
    position: absolute;
    z-index: 6;
    left: 58px;
    right: 58px;
    height: 12px;
    opacity: 0.94;
}

.widget-edge-top {
    top: 12px;
    background: var(--widget-frame-edge-horz) left center / auto 12px repeat-x;
}

.widget-edge-bottom {
    bottom: 12px;
    background: var(--widget-frame-edge-horz) left center / auto 12px repeat-x;
}

.widget-edge-side {
    position: absolute;
    z-index: 6;
    top: 58px;
    bottom: 58px;
    width: 12px;
    opacity: 0.94;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.50));
}

.widget-edge-left {
    left: 12px;
    background: var(--widget-frame-edge-vert) center top / 12px auto repeat-y;
}

.widget-edge-right {
    right: 12px;
    background: var(--widget-frame-edge-vert) center top / 12px auto repeat-y;
}

/* Details content. */
.details-sidebar-frame > .sidebar-title-row,
.details-sidebar-frame > .sidebar-map,
.details-sidebar-frame > .sidebar-section,
.details-sidebar-frame > .rules-notice,
.details-sidebar-frame > .rules-confirmed,
.details-sidebar-frame > .empty-state,
.details-sidebar-frame > .rules-badge-row {
    position: relative;
    z-index: 2;
}

.details-sidebar-frame .sidebar-title-row {
    min-height: 68px;
    margin: 0 0 16px;
    padding: 13px 18px 12px 72px;
    align-items: center;
}

.details-sidebar-frame .sidebar-title-row::before {
    display: none !important;
}

.details-sidebar-frame .sidebar-title-row::after {
    content: "";
    position: absolute;
    left: 72px;
    right: 16px;
    bottom: 0;
    height: 5px;
    background: var(--widget-frame-divider) left center / auto 5px repeat-x;
    opacity: 0.52;
}

.sidebar-title,
.section-title {
    font-family: "Baskervville", Georgia, serif;
}

.details-sidebar-frame .sidebar-title {
    margin: 0 0 8px;
    color: var(--gold-bright);
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.sidebar-host-name {
    display: inline-block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 950;
}

.sidebar-region-name {
    color: #d8c88d;
    font-size: 12px;
    font-weight: 800;
}

.details-sidebar-frame .sidebar-subtitle {
    margin: 0;
    color: #d8c88d;
    font-size: 12px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.details-sidebar-frame .sidebar-map,
.details-sidebar-frame .sidebar-section,
.details-sidebar-frame .rules-notice,
.details-sidebar-frame .rules-confirmed {
    margin-left: 4px;
    margin-right: 4px;
}

.details-sidebar-frame .sidebar-map {
    margin-top: 0;
    margin-bottom: 16px;
}

.details-sidebar-frame .map-feature {
    padding: 10px;
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.10), rgba(15, 23, 42, 0.46)),
        rgba(0, 0, 0, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 14px 30px rgba(0, 0, 0, 0.22);
}

.details-sidebar-frame .map-feature .map-thumb.large {
    height: 205px;
    border-radius: 15px;
}

.details-sidebar-frame .sidebar-map-caption strong {
    color: var(--gold-bright);
}

.details-sidebar-frame .sidebar-map-caption span {
    color: #d8c88d;
}

.details-sidebar-frame .map-size-callout {
    border-color: rgba(214, 168, 79, 0.32);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.13), rgba(7, 11, 18, 0.38)),
        rgba(0, 0, 0, 0.14);
}

.details-sidebar-frame .map-size-callout span {
    color: #c4b98f;
}

.details-sidebar-frame .map-size-callout strong {
    color: var(--gold-bright);
    text-shadow: 0 0 14px rgba(214, 168, 79, 0.18);
}

.details-sidebar-frame .sidebar-section {
    position: relative;
    margin-top: 15px;
    padding-top: 15px;
}

.details-sidebar-frame .sidebar-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--widget-frame-divider) left center / auto 5px repeat-x;
    opacity: 0.36;
}

.details-sidebar-frame .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 10px;
    color: var(--gold-bright);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.92);
}

.details-sidebar-frame .player-list {
    gap: 7px;
}

.details-sidebar-frame .player-row {
    padding: 8px 9px;
    border: 1px solid rgba(214, 168, 79, 0.20);
    border-radius: 11px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(7, 11, 18, 0.50)),
        rgba(0, 0, 0, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 8px 18px rgba(0, 0, 0, 0.13);
}


.details-sidebar-frame .player-row-open {
    opacity: 0.82;
}

.details-sidebar-frame .slot-number {
    border: 1px solid rgba(214, 168, 79, 0.18);
    background:
        radial-gradient(circle at top, rgba(248, 230, 173, 0.08), transparent 70%),
        rgba(7, 11, 18, 0.62);
    color: #d8c88d;
}

.details-sidebar-frame .player-god-icon {
    border-color: rgba(214, 168, 79, 0.44);
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.34),
        0 7px 18px rgba(0, 0, 0, 0.26);
}

.details-sidebar-frame .setting-row {
    position: relative;
    padding: 8px 0 9px;
    border-bottom: none;
}

.details-sidebar-frame .setting-row::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--widget-frame-divider) left center / auto 4px repeat-x;
    opacity: 0.20;
}

.details-sidebar-frame .setting-row:last-child::after {
    display: none;
}

.details-sidebar-frame .setting-label {
    color: #c4b98f;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
}

.details-sidebar-frame .setting-value {
    color: var(--text);
    text-align: right;
    font-weight: 850;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.84);
}

/* Compact rules/status badges. */
.rules-badge-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: -4px 4px 14px;
}

.rules-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 999px;
    background: rgba(7, 11, 18, 0.28);
    color: #d8c88d;
    font-size: 11px;
    font-weight: 850;
}

.rules-badge-warning {
    border-color: rgba(248, 113, 113, 0.36);
    background: rgba(248, 113, 113, 0.10);
    color: #fecaca;
}

.details-sidebar-frame .rules-notice {
    margin-top: 14px;
    border: 1px solid rgba(214, 168, 79, 0.25);
    border-radius: 14px;
    padding: 10px 12px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(7, 11, 18, 0.48)),
        rgba(0, 0, 0, 0.14);
}

.details-sidebar-frame .rules-confirmed {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

/* Hover tooltip polish. */
.hover-tooltip {
    border-color: rgba(214, 168, 79, 0.45);
    min-width: 280px;
    max-width: min(390px, calc(100vw - 32px));
    padding: 14px;
    background:
        radial-gradient(circle at top left, rgba(248, 230, 173, 0.07), transparent 10rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(7, 11, 18, 0.98));
}

.tooltip-title {
    margin-bottom: 4px;
    font-family: "Baskervville", Georgia, serif;
    color: var(--gold-bright);
    font-size: 18px;
    line-height: 1.15;
}

.tooltip-host {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.tooltip-meta {
    gap: 7px;
    margin: 10px 0 12px;
}

.tooltip-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid rgba(214, 168, 79, 0.24);
    border-radius: 999px;
    background: rgba(248, 230, 173, 0.07);
    color: rgba(247, 243, 232, 0.86);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.tooltip-chip-icon {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    color: var(--gold-bright);
    font-size: 12px;
    line-height: 1;
}

.tooltip-player-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.tooltip-player-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    background: rgba(7, 11, 18, 0.42);
    color: var(--text);
}

.tooltip-player-row .player-god-icon-wrap,
.tooltip-player-row .player-god-icon {
    width: 30px;
    height: 30px;
}

.tooltip-player-row .player-god-icon-wrap {
    border-radius: 999px;
}

.tooltip-player-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tooltip-player-name {
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tooltip-player-meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .details-sidebar {
        position: static;
        min-height: 420px;
    }
}


body > header > div:nth-child(1) > h1 {
  font-family: "Baskervville", serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: rgb(160, 43, 43);
  -webkit-text-stroke: 1px rgb(112, 96, 44);
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95); */
  font-variant: small-caps;
}


/* Leaderboard integration */
.leaderboard-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 2px 7px 3px;
    border: 1px solid rgba(214, 168, 79, 0.32);
    border-radius: 999px;
    background: rgba(214, 168, 79, 0.11);
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.leaderboard-confidence-exact {
    border-color: rgba(52, 211, 153, 0.36);
    background: rgba(52, 211, 153, 0.10);
    color: #bbf7d0;
}

.leaderboard-confidence-partial {
    border-color: rgba(214, 168, 79, 0.38);
    background: rgba(214, 168, 79, 0.12);
    color: var(--gold-bright);
}

.leaderboard-loading {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(148, 163, 184, 0.08);
    color: var(--muted);
}

.leaderboard-unrated {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.05);
    color: rgba(170, 178, 192, 0.78);
}

.leaderboard-confidence-id {
    border-color: rgba(52, 211, 153, 0.52);
    background:
        linear-gradient(180deg, rgba(52, 211, 153, 0.16), rgba(7, 11, 18, 0.18));
    color: #dcfce7;
}

.leaderboard-confidence-id::before {
    content: "ID ";
    margin-right: 4px;
    color: #86efac;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.leaderboard-confidence-id_mismatch {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(248, 113, 113, 0.10);
    color: #fecaca;
}

/* Reliable leaderboard matching */
.leaderboard-confidence-id {
    border-color: rgba(52, 211, 153, 0.52);
    background:
        linear-gradient(180deg, rgba(52, 211, 153, 0.16), rgba(7, 11, 18, 0.18));
    color: #dcfce7;
}

.leaderboard-confidence-id::before {
    content: "ID ";
    margin-right: 4px;
    color: #86efac;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.leaderboard-confidence-exact::before {
    content: "NAME ";
    margin-right: 4px;
    color: #f8e6ad;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.leaderboard-confidence-rejected,
.leaderboard-confidence-id_mismatch,
.leaderboard-confidence-ambiguous_exact {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(248, 113, 113, 0.10);
    color: #fecaca;
}



/* Reliable rating pass */
.leaderboard-no-rating {
    min-width: 26px;
    justify-content: center;
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.04);
    color: rgba(170, 178, 192, 0.72);
}

.details-sidebar-frame .sidebar-title-row {
    padding-left: 18px;
}

.details-sidebar-frame .sidebar-title-row::after {
    left: 18px;
}

/* Plain player rating text */
.player-rating-inline {
    display: inline;
    color: #d8c88d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.player-rating-loading {
    color: rgba(170, 178, 192, 0.72);
}

.player-rating-empty {
    color: rgba(170, 178, 192, 0.72);
}

/* Plain rating, no badge treatment */
.player-rating-inline {
    display: inline;
    color: #d8c88d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.player-rating-loading,
.player-rating-empty {
    color: rgba(170, 178, 192, 0.72);
}


/* Map size emphasis */
.map-size-callout.map-size-large strong {
    color: #ffe08a;
    font-size: 25px;
    text-shadow:
        0 0 12px rgba(214, 168, 79, 0.18),
        0 2px 4px rgba(0, 0, 0, 0.88);
}

.map-size-callout.map-size-giant {
    border-color: rgba(248, 176, 110, 0.42);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.15), rgba(91, 26, 26, 0.22)),
        rgba(0, 0, 0, 0.16);
}

.map-size-callout.map-size-giant strong {
    color: #ffd37a;
    font-size: 30px;
    text-shadow:
        0 0 14px rgba(214, 168, 79, 0.28),
        0 0 18px rgba(248, 113, 113, 0.28),
        0 2px 5px rgba(0, 0, 0, 0.92);
}

/* Lobby panel split into framed sections */
.lobby-panel {
    display: grid;
    gap: 18px;
}

.lobby-subpanel {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: 28px 28px 24px;
    border-radius: 22px;
    overflow: hidden;
}

.lobby-subpanel::before {
    content: "";
    position: absolute;
    inset: 8px;
    z-index: -2;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(248, 230, 173, 0.07), transparent 13rem),
        linear-gradient(180deg, rgba(7, 11, 18, 0.18), rgba(7, 11, 18, 0.44)),
        var(--widget-frame-fill) center / cover repeat;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.72),
        inset 0 0 36px rgba(0, 0, 0, 0.36),
        0 16px 40px rgba(0, 0, 0, 0.22);
}

.lobby-subpanel::after {
    content: "";
    position: absolute;
    inset: 21px;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(214, 168, 79, 0.11);
    border-radius: 14px;
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.22);
}

.lobby-subpanel > .widget-frame-ornaments {
    z-index: 4;
}

.lobby-subpanel-content {
    position: relative;
    z-index: 2;
}

.lobby-controls-frame {
    padding-bottom: 20px;
}

.lobby-list-frame {
    padding-top: 28px;
}

/* The outer lobby panel is now just the container for the two ornate frames. */
.lobby-panel::before,
.lobby-panel::after,
.lobby-panel > .widget-frame-ornaments {
    display: none !important;
}

.lobby-panel {
    padding: 0 !important;
    overflow: visible !important;
}

/* Keep filter groups visually clean inside the controls frame. */
.lobby-controls-frame .quick-filters {
    margin-bottom: 0;
}

.lobby-controls-frame .summary-row {
    margin-bottom: 0;
}

.lobby-toggle-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
}

.lobby-panel .lobby-toggle-control,
.lobby-toggle-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    justify-content: center;
    border-width: 0 1px 0 0;
    border-radius: 0;
    background: rgba(5, 13, 24, 0.34);
    color: rgba(246, 234, 208, 0.72);
}

.lobby-toggle-control input {
    width: auto;
    accent-color: var(--accent);
}

.active-match-toggle-row {
    grid-template-columns: minmax(0, 260px);
}

.lobby-panel .lobby-toggle-control:last-child,
.lobby-toggle-control:last-child {
    border-right-width: 0;
}

.lobby-panel .lobby-toggle-control:has(input:checked),
.lobby-toggle-control:has(input:checked) {
    background:
        linear-gradient(180deg, rgba(244, 196, 103, 0.18), rgba(244, 196, 103, 0.06)),
        rgba(18, 35, 54, 0.64);
    color: #f9dfaa;
}

.lobby-sort-controls {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
    min-width: min(100%, 290px);
}

.lobby-sort-field {
    display: grid;
    gap: 5px;
    min-width: 190px;
    margin: 0;
}

.lobby-sort-field span {
    color: rgba(246, 234, 208, 0.84);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lobby-sort-direction {
    min-width: 72px;
    min-height: 42px;
    border: 1px solid rgba(214, 168, 79, 0.24);
    border-radius: 12px;
    background: rgba(7, 11, 18, 0.62);
    color: #f5eedf;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lobby-sort-direction:hover,
.lobby-sort-direction:focus-visible {
    outline: none;
    border-color: rgba(245, 204, 120, 0.58);
    box-shadow: 0 0 0 3px rgba(245, 204, 120, 0.12);
}

@media (max-width: 760px) {
    .summary-row {
        align-items: stretch;
        flex-direction: column;
    }

    .lobby-toggle-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lobby-toggle-control:nth-child(2n) {
        border-right-width: 0;
    }

    .lobby-sort-controls {
        justify-content: stretch;
        width: 100%;
    }

    .lobby-sort-field {
        min-width: 0;
        flex: 1 1 auto;
    }
}

/* Map size fixed-height emphasis */
.map-size-callout {
    min-height: 76px;
}

.map-size-callout strong {
    min-width: 120px;
    line-height: 1;
}

.map-size-callout:not(.map-size-large):not(.map-size-giant) strong {
    color: var(--text);
    font-size: 20px;
    text-shadow: none;
}

.active-match-detail-link,
.player-details-title-link,
.recent-match-link {
    color: inherit;
    text-decoration: none;
}

.active-match-detail-link:hover,
.active-match-detail-link:focus-visible,
.player-details-title-link:hover,
.player-details-title-link:focus-visible,
.recent-match-link:hover,
.recent-match-link:focus-visible {
    color: #f9dfaa;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.recent-match-linked-row {
    cursor: pointer;
}

.recent-match-linked-row:hover .recent-match-link {
    color: #f9dfaa;
}

.active-elo-projection-section {
    border-top: 1px solid rgba(214, 168, 79, 0.16);
    padding-top: 14px;
}

.active-win-probability-section {
    border-top: 1px solid rgba(214, 168, 79, 0.16);
    padding-top: 14px;
}

.active-win-probability-card {
    display: grid;
    gap: 12px;
    padding: 14px 14px 13px;
    border: 1px solid rgba(214, 168, 79, 0.18);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(16, 22, 32, 0.94), rgba(7, 11, 18, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.active-win-probability-summary {
    display: grid;
    gap: 4px;
}

.active-win-probability-summary strong {
    color: #f8e5b0;
    font-size: 15px;
    font-weight: 900;
}

.active-win-probability-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.active-win-probability-players {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.active-win-probability-player {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(6, 12, 20, 0.68);
}

.active-win-probability-player-right {
    text-align: right;
}

.active-win-probability-player span {
    color: rgba(246, 234, 208, 0.9);
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-win-probability-player strong {
    color: var(--accent);
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.active-win-probability-player small {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.active-win-probability-bar {
    overflow: hidden;
    height: 10px;
    border: 1px solid rgba(214, 168, 79, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.active-win-probability-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f8e6ad 0%, #d6a84f 62%, #8f6b26 100%);
    box-shadow: 0 0 22px rgba(214, 168, 79, 0.22);
}

.active-win-probability-card-unavailable {
    color: var(--muted);
}

.active-win-probability-card-unavailable strong {
    color: #f8e5b0;
    font-size: 15px;
    font-weight: 900;
}

.active-win-probability-card-unavailable span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.active-win-probability-card-unavailable small {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.active-elo-projection-list {
    display: grid;
    gap: 8px;
}

.active-elo-projection-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid rgba(214, 168, 79, 0.14);
    border-radius: 8px;
    background: rgba(5, 13, 24, 0.34);
}

.active-elo-projection-row span {
    min-width: 0;
    overflow: hidden;
    color: rgba(246, 234, 208, 0.86);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-elo-projection-row strong,
.active-elo-projection-row small {
    color: #f9dfaa;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.active-elo-projection-row small {
    color: rgba(246, 234, 208, 0.68);
}

/* ELO label cleanup */
.player-rating-inline {
    color: #f0dfaa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.01em;
}

/* Player details view */
.player-row-clickable {
    cursor: pointer;
    transition:
        border-color 140ms ease,
        background 140ms ease,
        transform 140ms ease;
}

.player-row-clickable:hover {
    border-color: rgba(214, 168, 79, 0.38);
    background:
        linear-gradient(90deg, rgba(214, 168, 79, 0.08), rgba(15, 23, 42, 0.58));
    transform: translateY(-1px);
}

.player-details-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at center, rgba(214, 168, 79, 0.10), transparent 38rem),
        rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.player-details-overlay.is-visible {
    display: flex;
}

.player-details-modal {
    position: relative;
    width: min(920px, 96vw);
    max-height: min(820px, 92vh);
    padding: 10px;
    border-radius: 24px;
    overflow: hidden;
}

.player-details-frame {
    position: relative;
    z-index: 2;
    max-height: calc(92vh - 20px);
    overflow: auto;
    padding: 32px 30px 28px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(248, 230, 173, 0.10), transparent 16rem),
        linear-gradient(180deg, rgba(7, 11, 18, 0.28), rgba(7, 11, 18, 0.72)),
        var(--widget-frame-fill) center / cover repeat;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.78),
        inset 0 0 48px rgba(0, 0, 0, 0.42),
        0 28px 90px rgba(0, 0, 0, 0.62);
}

.player-details-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(214, 168, 79, 0.34);
    border-radius: 999px;
    background: rgba(7, 11, 18, 0.72);
    color: var(--gold-bright);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.player-details-close:hover {
    border-color: rgba(248, 230, 173, 0.68);
    background: rgba(214, 168, 79, 0.13);
}

.player-details-content {
    position: relative;
    z-index: 2;
}

.player-details-header {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding-right: 44px;
}

.player-avatar-placeholder {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(214, 168, 79, 0.35);
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 20%, rgba(248, 230, 173, 0.28), transparent 2.8rem),
        rgba(7, 11, 18, 0.62);
    color: var(--gold-bright);
    font-family: "Baskervville", Georgia, serif;
    font-size: 30px;
    font-weight: 900;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.28);
}

.player-details-header h2 {
    margin: 0;
    color: var(--gold-bright);
    font-family: "Baskervville", Georgia, serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.player-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: #c4b98f;
    font-size: 12px;
    font-weight: 800;
}

.player-details-meta span {
    padding: 4px 8px;
    border: 1px solid rgba(214, 168, 79, 0.18);
    border-radius: 999px;
    background: rgba(7, 11, 18, 0.28);
}

.player-details-section {
    margin-top: 18px;
}

.player-details-section-title {
    margin-bottom: 10px;
    color: var(--gold-bright);
    font-family: "Baskervville", Georgia, serif;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.player-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.player-stat-card {
    min-height: 116px;
    padding: 14px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.10), rgba(7, 11, 18, 0.20)),
        rgba(7, 11, 18, 0.36);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.16);
}

.player-stat-card-empty {
    opacity: 0.62;
}

.player-stat-label {
    min-height: 32px;
    color: #d5c58d;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-stat-value {
    margin-top: 10px;
    color: var(--gold-bright);
    font-size: 22px;
    font-weight: 950;
}

.player-stat-sub {
    margin-top: 8px;
    color: #b7ad8a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.recent-match-list {
    display: grid;
    gap: 7px;
}

.recent-match-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 90px 70px minmax(84px, 0.7fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.44);
}

.recent-match-row strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-match-row span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.player-details-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 180px;
    color: var(--muted);
    font-weight: 800;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(214, 168, 79, 0.24);
    border-top-color: var(--gold-bright);
    border-radius: 999px;
    animation: player-details-spin 900ms linear infinite;
}

.player-details-error {
    padding: 14px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 14px;
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font-weight: 800;
}

@keyframes player-details-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .player-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recent-match-row {
        grid-template-columns: minmax(0, 1fr) 70px 58px;
    }

    .recent-match-row .mono {
        display: none;
    }
}

@media (max-width: 620px) {
    .player-details-overlay {
        padding: 10px;
    }

    .player-details-frame {
        padding: 26px 18px 20px;
    }

    .player-details-header {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    .player-avatar-placeholder {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 24px;
    }

    .player-stat-grid {
        grid-template-columns: 1fr;
    }
}


/* Blessing-frame player modal polish */
:root {
    --blessing-window-frame: url("../assets/images/Blessing_Window_Frame.0c689dde7c71.png");
    --blessing-window-fill: image-set(
        url("../assets/optimized/images/Blessing_Window_Frame_Fill.d4936e5d7dce.webp") type("image/webp"),
        url("../assets/images/Blessing_Window_Frame_Fill.bfc17dbad29b.png") type("image/png")
    );
}

.player-details-modal {
    width: min(1040px, 96vw);
    max-height: min(860px, 92vh);
    padding: 34px;
    background: var(--blessing-window-frame) center / 100% 100% no-repeat;
}

.player-details-modal > .widget-frame-ornaments {
    display: none;
}

.player-details-frame {
    max-height: calc(92vh - 92px);
    padding: 34px 34px 30px;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(5, 8, 11, 0.22), rgba(5, 8, 11, 0.52)),
        var(--blessing-window-fill) center / cover no-repeat;
    box-shadow:
        inset 0 0 0 1px rgba(248, 230, 173, 0.06),
        inset 0 0 68px rgba(0, 0, 0, 0.48);
}

.player-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(214, 168, 79, 0.35);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(248, 230, 173, 0.28), transparent 2.8rem),
        rgba(7, 11, 18, 0.62);
    color: var(--gold-bright);
    font-family: "Baskervville", Georgia, serif;
    font-size: 30px;
    font-weight: 900;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.28);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-ratings-table-wrap,
.recent-match-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(214, 168, 79, 0.20);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.07), rgba(7, 11, 18, 0.18)),
        rgba(7, 11, 18, 0.32);
}

.player-ratings-table,
.recent-match-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.player-ratings-table th,
.player-ratings-table td,
.recent-match-table th,
.recent-match-table td {
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    text-align: left;
    vertical-align: middle;
}

.player-ratings-table thead th,
.recent-match-table thead th {
    color: #d5c58d;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.18);
}

.player-ratings-table tbody th {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.player-ratings-table tbody td {
    color: #d9cfaa;
    font-size: 13px;
    font-weight: 800;
}

.player-ratings-table tbody td:nth-child(2) {
    color: var(--gold-bright);
    font-size: 15px;
    font-weight: 950;
}

.rating-peak {
    display: block;
    margin-top: 3px;
    color: #b7ad8a;
    font-size: 11px;
    font-weight: 800;
}

.player-rating-row-empty {
    opacity: 0.62;
}

.recent-match-table td {
    color: #d9cfaa;
    font-size: 13px;
    font-weight: 800;
}

.recent-match-table td:nth-child(3) {
    color: var(--text);
    font-weight: 950;
}

.recent-match-table tbody tr:last-child td,
.player-ratings-table tbody tr:last-child td,
.player-ratings-table tbody tr:last-child th {
    border-bottom: 0;
}

.player-stat-grid,
.recent-match-list {
    display: block;
}

@media (max-width: 620px) {
    .player-details-modal {
        padding: 20px;
    }

    .player-details-frame {
        max-height: calc(92vh - 58px);
        padding: 28px 18px 22px;
    }
}



/* Player details modal v2 fixes */
.player-details-overlay {
    align-items: center;
    justify-content: center;
}

.player-details-modal {
    background-color: #05070a;
    background-image: var(--blessing-window-frame);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.player-details-frame {
    min-height: min(680px, calc(92vh - 92px));
    background-color: #070a0d;
    background-image:
        linear-gradient(180deg, rgba(5, 8, 11, 0.20), rgba(5, 8, 11, 0.42)),
        var(--blessing-window-fill);
    background-position: center;
    background-size: 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    scrollbar-color: rgba(248, 230, 173, 0.45) rgba(0, 0, 0, 0.18);
    scrollbar-width: thin;
}

.player-details-frame::-webkit-scrollbar {
    width: 10px;
}

.player-details-frame::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.22);
}

.player-details-frame::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(248, 230, 173, 0.45);
}

.player-ratings-table,
.recent-match-table {
    min-width: 0;
}

.player-ratings-table tbody td:nth-child(2) {
    color: var(--gold-bright);
    font-size: 18px;
    font-weight: 950;
}

.recent-match-table td:nth-child(4),
.recent-match-table td:nth-child(5) {
    text-align: center;
}

@media (max-width: 760px) {
    .player-ratings-table,
    .recent-match-table {
        min-width: 640px;
    }
}



/* Player details v3: rating wins/losses and recent match tabs */
.recent-match-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.recent-match-tab {
    appearance: none;
    border: 1px solid rgba(214, 168, 79, 0.20);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(7, 11, 18, 0.38);
    color: #cfc39b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition:
        border-color 140ms ease,
        background 140ms ease,
        color 140ms ease,
        transform 140ms ease;
}

.recent-match-tab:hover {
    border-color: rgba(248, 230, 173, 0.42);
    color: var(--gold-bright);
    transform: translateY(-1px);
}

.recent-match-tab.is-active {
    border-color: rgba(248, 230, 173, 0.52);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.20), rgba(7, 11, 18, 0.24));
    color: var(--gold-bright);
}

.recent-match-active-label {
    margin: 0 0 8px;
    color: #d5c58d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-details-loading-inline {
    min-height: 86px;
    padding: 12px;
}

.player-ratings-table th:nth-child(2),
.player-ratings-table td:nth-child(2),
.player-ratings-table th:nth-child(3),
.player-ratings-table td:nth-child(3),
.player-ratings-table th:nth-child(4),
.player-ratings-table td:nth-child(4),
.player-ratings-table th:nth-child(5),
.player-ratings-table td:nth-child(5),
.player-ratings-table th:nth-child(6),
.player-ratings-table td:nth-child(6) {
    text-align: center;
}



/* Recent match visual layout */
.recent-map-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.recent-map-icon {
    width: 54px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.28);
}

.recent-map-cell span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-matchup {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.recent-team-gods {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-vs {
    color: #d5c58d;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.recent-god-token {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recent-god-token .player-god-icon-wrap {
    width: 30px;
    height: 30px;
    margin: 0;
}

.recent-god-token .player-god-icon {
    width: 30px;
    height: 30px;
}

.recent-god-token .player-god-fallback {
    font-size: 9px;
}

.recent-god-token > span {
    display: none;
}

.recent-god-token-win .player-god-icon-wrap {
    border-color: rgba(52, 211, 153, 0.48);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.14);
}

.recent-god-token-loss .player-god-icon-wrap {
    border-color: rgba(248, 113, 113, 0.34);
    opacity: 0.78;
}

.recent-result {
    display: inline-block;
    min-width: 48px;
    text-align: center;
    font-weight: 950;
}

.recent-result-win {
    color: #9ff0c6;
}

.recent-result-loss {
    color: #f1a3a3;
}

.recent-match-table th:nth-child(1),
.recent-match-table td:nth-child(1) {
    width: 88px;
}

.recent-match-table th:nth-child(2),
.recent-match-table td:nth-child(2) {
    width: 260px;
}

.recent-match-table th:nth-child(3),
.recent-match-table td:nth-child(3) {
    width: 112px;
}

.recent-match-table th:nth-child(5),
.recent-match-table td:nth-child(5) {
    width: 82px;
    text-align: center;
}



/* Recent match table layout fix */
.recent-match-table {
    table-layout: fixed;
}

.recent-match-table tbody tr.recent-match-table-row {
    display: table-row;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.recent-match-table tbody tr.recent-match-table-row:nth-child(odd) {
    background: rgba(15, 23, 42, 0.18);
}

.recent-match-table tbody tr.recent-match-table-row:hover {
    background: rgba(214, 168, 79, 0.06);
}

.recent-match-table .recent-date-cell {
    color: #d9cfaa;
    font-weight: 950;
    white-space: nowrap;
}

.recent-match-table .recent-match-id-cell {
    color: #d9cfaa;
    font-weight: 900;
    white-space: nowrap;
}

.recent-match-table .recent-length-cell {
    color: #cfc39b;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.recent-match-table th:nth-child(1),
.recent-match-table td:nth-child(1) {
    width: 86px;
}

.recent-match-table th:nth-child(2),
.recent-match-table td:nth-child(2) {
    width: 245px;
}

.recent-match-table th:nth-child(3),
.recent-match-table td:nth-child(3) {
    width: 118px;
}

.recent-match-table th:nth-child(4),
.recent-match-table td:nth-child(4) {
    width: auto;
}

.recent-match-table th:nth-child(5),
.recent-match-table td:nth-child(5) {
    width: 82px;
    text-align: center;
}

.recent-match-table th:nth-child(6),
.recent-match-table td:nth-child(6) {
    width: 92px;
    text-align: center;
}

.recent-map-cell {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.recent-map-icon {
    width: 58px;
    height: 38px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 8px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.28);
}

.recent-map-cell span {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-matchup {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.recent-team-gods {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-vs-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(248, 230, 173, 0.16));
}

.recent-god-token {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recent-god-token .player-god-icon-wrap {
    width: 34px;
    height: 34px;
    margin: 0;
}

.recent-god-token .player-god-icon {
    width: 34px;
    height: 34px;
}

.recent-god-token .player-god-fallback {
    font-size: 9px;
}

.recent-player-result {
    display: none;
}

.recent-god-token-win .player-god-icon-wrap {
    border-color: rgba(52, 211, 153, 0.50);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.16);
}

.recent-god-token-loss .player-god-icon-wrap {
    border-color: rgba(248, 113, 113, 0.34);
    opacity: 0.78;
}

.recent-result {
    display: inline-block;
    min-width: 52px;
    text-align: center;
    font-weight: 950;
}

.recent-result-win {
    color: #9ff0c6;
}

.recent-result-loss {
    color: #f1a3a3;
}



/* Player rating table and recent team matchup polish */
.player-ratings-table tbody th,
.player-ratings-table tbody td {
    color: rgba(255, 255, 255, 0.92);
}

.player-ratings-table tbody td:nth-child(2) {
    color: #ffffff;
}

.player-ratings-table .rating-peak {
    color: rgba(255, 255, 255, 0.68);
}

.recent-matchup {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.recent-matchup-line {
    display: grid;
    grid-template-columns: minmax(86px, 1fr) 24px minmax(86px, 1fr);
    align-items: start;
    gap: 7px;
}

.recent-matchup-ffa {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    flex-wrap: wrap;
}

.recent-matchup-single-team {
    display: flex;
    align-items: flex-start;
}

.recent-team-gods {
    display: grid;
    grid-template-columns: repeat(2, minmax(42px, 1fr));
    align-items: start;
    justify-items: center;
    gap: 7px;
    min-width: 86px;
}

.recent-team-gods-empty {
    min-height: 48px;
}

.recent-vs-icon {
    width: 24px;
    height: 24px;
    align-self: center;
    justify-self: center;
}

.recent-god-token {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 3px;
    min-width: 42px;
    max-width: 58px;
}

.recent-god-token .player-god-icon-wrap {
    width: 30px;
    height: 30px;
}

.recent-god-token .player-god-icon {
    width: 30px;
    height: 30px;
}

.recent-player-name {
    display: block;
    max-width: 58px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.08;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-player-result {
    display: none;
}



/* Recent match gods column final layout */
.player-ratings-table tbody th,
.player-ratings-table tbody td {
    color: rgba(255, 255, 255, 0.94);
}

.player-ratings-table tbody td:nth-child(2) {
    color: #ffffff;
}

.recent-matchup {
    min-width: 0;
}

.recent-matchup-with-vs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: calc(var(--matchup-row-count, 1) * 47px);
    padding: 2px 34px;
}

.recent-matchup-teams {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.recent-matchup-row {
    display: grid;
    grid-template-columns: minmax(66px, 1fr) minmax(66px, 1fr);
    align-items: start;
    column-gap: 42px;
    min-height: 44px;
}

.recent-team-slot {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.recent-vs-center {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.recent-vs-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(248, 230, 173, 0.20));
}

.recent-team-gods {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.recent-god-token {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 4px;
    width: 62px;
    min-width: 0;
}

.recent-god-token-empty {
    height: 42px;
}

.recent-god-token .player-god-icon-wrap {
    width: 30px;
    height: 30px;
    margin: 0;
}

.recent-god-token .player-god-icon {
    width: 30px;
    height: 30px;
}

.recent-god-token .player-god-fallback {
    font-size: 9px;
}

.recent-player-name {
    display: block !important;
    width: 62px;
    max-width: 62px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.08;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-player-result {
    display: none;
}

.recent-god-token-win .player-god-icon-wrap {
    border-color: rgba(52, 211, 153, 0.52);
    box-shadow: 0 0 11px rgba(52, 211, 153, 0.15);
}

.recent-god-token-loss .player-god-icon-wrap {
    border-color: rgba(248, 113, 113, 0.34);
    opacity: 0.8;
}

.recent-match-table .recent-length-cell {
    color: #ffffff;
    font-weight: 950;
}

.recent-match-table th:nth-child(4),
.recent-match-table td:nth-child(4) {
    width: 310px;
}



/* Recent matches final touchups */
.recent-match-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin: 0 0 -1px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(214, 168, 79, 0.28);
}

.recent-match-tab {
    position: relative;
    min-width: 132px;
    margin: 0 -1px 0 0;
    border: 1px solid rgba(214, 168, 79, 0.24);
    border-bottom-color: rgba(214, 168, 79, 0.28);
    border-radius: 13px 13px 0 0;
    padding: 9px 14px 8px;
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.08), rgba(7, 11, 18, 0.44));
    color: #cfc39b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.01em;
    text-align: center;
    transform: none;
}

.recent-match-tab:hover {
    border-color: rgba(248, 230, 173, 0.44);
    color: var(--gold-bright);
    transform: none;
}

.recent-match-tab.is-active {
    z-index: 2;
    border-color: rgba(248, 230, 173, 0.48);
    border-bottom-color: rgba(7, 11, 18, 0.86);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.18), rgba(7, 11, 18, 0.72));
    color: #fff1bd;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 -3px 12px rgba(214, 168, 79, 0.06);
}

.recent-match-dynamic-body {
    border: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 0 15px 15px 15px;
    padding: 13px;
    background:
        linear-gradient(180deg, rgba(7, 11, 18, 0.28), rgba(7, 11, 18, 0.10));
}

/* Remove the black square/card treatment behind recent-match god icons. */
.recent-match-table .recent-god-token .player-god-icon-wrap {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none;
}

.recent-match-table .recent-god-token .player-god-icon-wrap::before,
.recent-match-table .recent-god-token .player-god-icon-wrap::after {
    display: none !important;
}

.recent-match-table .recent-god-token .player-god-icon {
    display: block;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
}

/* Let recent player names breathe underneath the god icons. */
.recent-god-token {
    width: auto;
    min-width: 76px;
    max-width: none;
    overflow: visible;
}

.recent-player-name {
    display: block !important;
    width: max-content;
    max-width: 130px;
    overflow: visible;
    color: rgba(255, 255, 255, 0.84);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.12;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.recent-matchup-row {
    column-gap: 54px;
}

.recent-team-slot {
    overflow: visible;
}

.recent-match-table th:nth-child(4),
.recent-match-table td:nth-child(4) {
    width: 380px;
    overflow: visible;
}

/* Keep match length clearly readable. */
.recent-match-table .recent-length-cell {
    color: #ffffff;
    font-weight: 950;
}



/* Preferences and ornate refresh button */
.preferences-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.preference-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d5c58d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.preference-control select {
    min-width: 190px;
    border: 1px solid rgba(214, 168, 79, 0.32);
    border-radius: 10px;
    padding: 8px 11px;
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.10), rgba(7, 11, 18, 0.34)),
        rgba(7, 11, 18, 0.82);
    color: var(--gold-bright);
    font: inherit;
    text-transform: none;
    letter-spacing: 0.01em;
}

#refreshButton {
    min-width: 146px;
    min-height: 42px;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 8px 26px !important;
    background:
        image-set(
            url("../assets/optimized/images/BtnOrnate_Sml_Off.75a91d9ceee6.webp") type("image/webp"),
            url("../assets/images/BtnOrnate_Sml_Off.fde030baa733.png") type("image/png")
        ) center / 100% 100% no-repeat !important;
    color: var(--gold-bright) !important;
    box-shadow: none !important;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 8px rgba(248, 230, 173, 0.20);
}

#refreshButton:hover,
#refreshButton:focus-visible {
    background-image: image-set(
        url("../assets/optimized/images/BtnOrnate_Sml_Focus.737f8a6d4415.webp") type("image/webp"),
        url("../assets/images/BtnOrnate_Sml_Focus.c30c0d4621d9.png") type("image/png")
    ) !important;
}

#refreshButton:active {
    background-image: image-set(
        url("../assets/optimized/images/BtnOrnate_Sml_On.3bdcb11458f6.webp") type("image/webp"),
        url("../assets/images/BtnOrnate_Sml_On.213e2d4ea5af.png") type("image/png")
    ) !important;
}

#refreshButton:disabled {
    background-image: image-set(
        url("../assets/optimized/images/BtnOrnate_Sml_Disabled.63b1d76486b0.webp") type("image/webp"),
        url("../assets/images/BtnOrnate_Sml_Disabled.ccefe749bfae.png") type("image/png")
    ) !important;
    color: rgba(255, 255, 255, 0.48) !important;
    cursor: wait;
}



/* Fixed-width refresh button */
#refreshButton {
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
}

#refreshButton.is-refreshing,
#refreshButton:disabled {
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
}



/* Top logo replacement */
.top-logo-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
}

.top-logo-image {
    display: block;
    width: min(620px, 92vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 10px rgba(214, 168, 79, 0.14));
}

@media (max-width: 720px) {
    .top-logo-image {
        width: min(460px, 92vw);
    }
}



/* Actual top logo header */
.brand-block {
    display: grid;
    gap: 7px;
    align-items: center;
}

.app-header .top-logo-title {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.app-header .top-logo-image {
    display: block;
    width: min(620px, 54vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 10px rgba(214, 168, 79, 0.16));
}

@media (max-width: 920px) {
    .app-header .top-logo-image {
        width: min(560px, 92vw);
    }
}



/* Top logo while keeping Prostagma title */
.brand-block {
    display: grid;
    gap: 6px;
    align-items: start;
}

.app-header .top-logo-title {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.app-header .top-logo-image {
    display: block;
    width: min(560px, 52vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 10px rgba(214, 168, 79, 0.16));
}

.app-header .brand-block h1 {
    margin-top: 2px;
}

@media (max-width: 920px) {
    .app-header .top-logo-image {
        width: min(500px, 92vw);
    }
}



/* Header stars background and logo order */
.app-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 11, 18, 0.72), rgba(7, 11, 18, 0.42)),
        url("../assets/images/MainPage_HeaderStars.0add4e41c102.png") center / cover no-repeat,
        rgba(7, 11, 18, 0.72);
}

.app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 45%, rgba(214, 168, 79, 0.10), transparent 18rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.26));
    z-index: 0;
}

.app-header > * {
    position: relative;
    z-index: 1;
}

.app-header .brand-block {
    display: grid;
    gap: 7px;
    align-items: start;
}

.app-header .brand-block h1 {
    margin: 0;
}

.app-header .top-logo-title {
    display: block !important;
    margin: 2px 0 4px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.app-header .top-logo-image {
    display: block;
    width: min(560px, 52vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 10px rgba(214, 168, 79, 0.16));
}

@media (max-width: 920px) {
    .app-header .top-logo-image {
        width: min(500px, 92vw);
    }
}



/* Recent matches: no horizontal scroll, info column */
.recent-match-table-wrap {
    overflow-x: visible !important;
}

.recent-match-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.recent-match-table th,
.recent-match-table td {
    box-sizing: border-box;
}

.recent-match-table th:nth-child(1),
.recent-match-table td:nth-child(1) {
    width: 118px;
}

.recent-match-table th:nth-child(2),
.recent-match-table td:nth-child(2) {
    width: 220px;
}

.recent-match-table th:nth-child(3),
.recent-match-table td:nth-child(3) {
    width: auto;
}

.recent-match-table th:nth-child(4),
.recent-match-table td:nth-child(4) {
    width: 78px;
    text-align: center;
}

.recent-match-table th:nth-child(5),
.recent-match-table td:nth-child(5) {
    width: 86px;
    text-align: center;
}

.recent-info-cell {
    display: grid;
    gap: 2px;
    align-content: center;
    min-width: 0;
}

.recent-info-cell strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
}

.recent-info-cell span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.recent-info-cell .mono {
    color: #d9cfaa;
    font-size: 10px;
    letter-spacing: 0.01em;
}

.recent-map-cell {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
}

.recent-map-icon {
    width: 52px;
    height: 34px;
}

.recent-map-cell span {
    min-width: 0;
    white-space: normal;
    line-height: 1.12;
}

.recent-matchup-with-vs {
    padding-left: 28px;
    padding-right: 28px;
}

.recent-matchup-row {
    column-gap: 40px;
}

.recent-god-token {
    min-width: 68px;
}

.recent-player-name {
    max-width: 96px;
}



/* ===== Final branded Prostagma header ===== */
.app-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(5, 9, 16, 0.82), rgba(6, 11, 18, 0.56)),
        url("../assets/images/MainPage_HeaderStars.0add4e41c102.png") center / cover no-repeat,
        rgba(7, 11, 18, 0.78);
}

.app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 17% 36%, rgba(255, 189, 89, 0.10), transparent 16rem),
        radial-gradient(circle at 30% 58%, rgba(185, 33, 31, 0.08), transparent 20rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.30));
    z-index: 0;
}

.app-header > * {
    position: relative;
    z-index: 1;
}

.app-header .brand-block {
    display: grid;
    gap: 10px;
    align-items: start;
}

.site-brand-lockup {
    display: grid;
    gap: 8px;
    align-items: start;
}

.prostagma-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.prostagma-mark {
    position: relative;
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
}

.prostagma-mark-halo {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(245, 210, 133, 0.34) 0%, rgba(222, 98, 42, 0.18) 36%, rgba(0, 0, 0, 0) 72%);
    filter: blur(8px);
    transform: scale(1.08);
}

.prostagma-mark-glow,
.prostagma-mark-ring,
.prostagma-arkantos {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.prostagma-mark-glow-back {
    opacity: 0.68;
    transform: scale(1.18);
    filter: blur(1px);
}

.prostagma-mark-glow-front {
    opacity: 0.82;
    transform: scale(1.08);
}

.prostagma-mark-ring {
    transform: scale(1.02);
    filter:
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.60))
        drop-shadow(0 0 10px rgba(255, 208, 104, 0.10));
}

.prostagma-arkantos {
    inset: 6px 1px 0 2px;
    width: calc(100% - 3px);
    height: calc(100% - 6px);
    object-fit: contain;
    filter:
        drop-shadow(0 6px 10px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 12px rgba(255, 218, 120, 0.08));
}

.app-header .brand-block h1 {
    margin: 0 !important;
    font-family: "Baskervville", Georgia, serif;
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: 0.01em;
    color: transparent;
    background:
        linear-gradient(
            180deg,
            #ffe8b5 0%,
            #ffc872 16%,
            #d66b3e 33%,
            #b22522 56%,
            #7f1013 77%,
            #f0c572 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1.05px rgba(222, 177, 86, 0.92);
    text-shadow:
        0 2px 0 rgba(44, 8, 7, 0.95),
        0 4px 8px rgba(0, 0, 0, 0.58),
        0 0 12px rgba(140, 16, 19, 0.18);
}

.app-header .top-logo-title {
    display: block !important;
    margin: -4px 0 0 122px !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.app-header .top-logo-image {
    display: block;
    width: min(510px, 47vw);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.96;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 10px rgba(214, 168, 79, 0.16));
}

.app-header .subtitle {
    max-width: 780px;
    margin-top: 1px;
}

@media (max-width: 920px) {
    .prostagma-title-line {
        gap: 10px;
    }

    .prostagma-mark {
        width: 94px;
        height: 94px;
        flex-basis: 94px;
    }

    .app-header .brand-block h1 {
        font-size: clamp(24px, 6vw, 38px);
    }

    .app-header .top-logo-title {
        margin-left: 104px !important;
    }

    .app-header .top-logo-image {
        width: min(455px, 86vw);
    }
}

@media (max-width: 640px) {
    .prostagma-title-line {
        align-items: center;
    }

    .prostagma-mark {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }

    .app-header .brand-block h1 {
        font-size: clamp(22px, 8vw, 32px);
    }

    .app-header .top-logo-title {
        margin-left: 90px !important;
    }

    .app-header .top-logo-image {
        width: min(390px, 88vw);
    }
}

@media (max-width: 520px) {
    .app-header .top-logo-title {
        margin-left: 0 !important;
    }

    .site-brand-lockup {
        gap: 10px;
    }
}



/* ===== Prostagma header cleanup pass ===== */
.prostagma-title-line {
    gap: 10px;
}

.prostagma-mark {
    width: 124px;
    height: 124px;
    flex: 0 0 124px;
}

.prostagma-mark-halo {
    inset: 14px;
    background:
        radial-gradient(circle, rgba(248, 221, 155, 0.36) 0%, rgba(223, 112, 48, 0.18) 34%, rgba(0, 0, 0, 0) 72%);
    filter: blur(9px);
    transform: scale(1.16);
}

.prostagma-mark-glow-back {
    opacity: 0.62;
    transform: scale(1.2);
    filter: blur(1.6px);
}

.prostagma-mark-glow-front {
    opacity: 0.86;
    transform: scale(1.08);
}

.prostagma-mark-ring {
    transform: scale(1.03);
    filter:
        drop-shadow(0 3px 9px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 12px rgba(255, 208, 104, 0.11));
}

.prostagma-arkantos {
    inset: 10px 7px 4px 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    object-fit: contain;
    filter:
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 10px rgba(255, 221, 131, 0.10));
}

.app-header .brand-block h1 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0.008em;
    background:
        linear-gradient(
            180deg,
            #ffe2a1 0%,
            #ffc05d 14%,
            #d45d32 35%,
            #aa191a 56%,
            #761012 78%,
            #edc067 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0.95px rgba(224, 179, 89, 0.95);
    text-shadow:
        0 2px 0 rgba(52, 8, 7, 0.95),
        0 4px 8px rgba(0, 0, 0, 0.56),
        0 0 10px rgba(140, 16, 19, 0.14);
}

.app-header .top-logo-title {
    margin: -10px 0 0 134px !important;
}

.app-header .top-logo-image {
    width: min(400px, 36vw);
    opacity: 0.95;
}

.site-brand-lockup {
    gap: 2px;
}

.app-header .subtitle {
    margin-top: 4px;
    font-size: 0.965rem;
    max-width: 860px;
}

@media (max-width: 920px) {
    .prostagma-mark {
        width: 108px;
        height: 108px;
        flex-basis: 108px;
    }

    .app-header .brand-block h1 {
        font-size: clamp(22px, 4.8vw, 34px);
    }

    .app-header .top-logo-title {
        margin-left: 116px !important;
    }

    .app-header .top-logo-image {
        width: min(360px, 72vw);
    }
}

@media (max-width: 640px) {
    .prostagma-mark {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
    }

    .app-header .brand-block h1 {
        font-size: clamp(20px, 7vw, 28px);
    }

    .app-header .top-logo-title {
        margin-left: 98px !important;
        margin-top: -6px !important;
    }

    .app-header .top-logo-image {
        width: min(320px, 80vw);
    }
}


/* ===== Prostagma header alignment polish ===== */
.site-brand-lockup {
    display: grid;
    grid-template-columns: 108px minmax(0, auto);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
}

.prostagma-title-line {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.prostagma-mark {
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
}

.prostagma-mark-halo {
    inset: 16px;
    transform: scale(1.08);
}

.prostagma-mark-glow-back {
    opacity: 0.56;
    transform: scale(1.12);
}

.prostagma-mark-glow-front {
    opacity: 0.72;
    transform: scale(1.03);
}

.prostagma-mark-ring {
    transform: scale(1);
}

.prostagma-arkantos {
    inset: 14px 13px 12px 13px;
    width: calc(100% - 26px);
    height: calc(100% - 26px);
    object-fit: contain;
    object-position: center 55%;
}

.app-header .brand-block h1 {
    font-size: clamp(22px, 2.65vw, 34px);
    line-height: 0.98;
    letter-spacing: 0.004em;
}

.app-header .top-logo-title {
    grid-column: 2;
    margin: -8px 0 0 0 !important;
    align-self: start;
}

.app-header .top-logo-image {
    width: min(350px, 31vw);
    max-width: 100%;
}

.app-header .subtitle {
    margin-top: 6px;
    max-width: 920px;
}

@media (max-width: 920px) {
    .site-brand-lockup {
        grid-template-columns: 96px minmax(0, auto);
        column-gap: 10px;
    }

    .prostagma-title-line {
        gap: 10px;
    }

    .prostagma-mark {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .prostagma-arkantos {
        inset: 13px 12px 11px 12px;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(20px, 4.2vw, 30px);
    }

    .app-header .top-logo-image {
        width: min(320px, 62vw);
    }
}

@media (max-width: 640px) {
    .site-brand-lockup {
        grid-template-columns: 82px minmax(0, auto);
        column-gap: 8px;
    }

    .prostagma-mark {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .prostagma-arkantos {
        inset: 12px 11px 10px 11px;
        width: calc(100% - 22px);
        height: calc(100% - 22px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(18px, 6vw, 26px);
    }

    .app-header .top-logo-image {
        width: min(280px, 70vw);
    }
}


/* ===== Prostagma header final cohesion pass ===== */
.app-header {
    padding-top: 24px;
    padding-bottom: 18px;
}

.app-header .brand-block {
    max-width: 720px;
    gap: 6px;
}

.site-brand-lockup {
    grid-template-columns: 92px minmax(0, auto);
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
}

.prostagma-title-line {
    gap: 8px;
    align-items: center;
    margin: 0;
}

.prostagma-mark {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
}

.prostagma-mark-halo {
    inset: 16px;
    transform: scale(1.02);
    opacity: 0.95;
}

.prostagma-mark-glow-back {
    opacity: 0.48;
    transform: scale(1.07);
}

.prostagma-mark-glow-front {
    opacity: 0.62;
    transform: scale(1.01);
}

.prostagma-mark-ring {
    transform: scale(0.995);
}

.prostagma-arkantos {
    inset: 15px 15px 13px 15px;
    width: calc(100% - 30px);
    height: calc(100% - 28px);
    object-position: center 54%;
}

.app-header .brand-block h1 {
    font-size: clamp(20px, 2.3vw, 30px);
    line-height: 0.96;
    letter-spacing: 0.004em;
    transform: translateY(-1px);
}

.app-header .top-logo-title {
    margin: -12px 0 0 102px !important;
}

.app-header .top-logo-image {
    width: min(390px, 33vw);
    filter:
        drop-shadow(0 3px 8px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 8px rgba(214, 168, 79, 0.12));
}

.app-header .subtitle {
    margin-top: 2px;
    max-width: 760px;
    font-size: 0.97rem;
    color: rgba(236, 240, 248, 0.88);
}

@media (max-width: 920px) {
    .site-brand-lockup {
        grid-template-columns: 84px minmax(0, auto);
        column-gap: 9px;
    }

    .prostagma-mark {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }

    .prostagma-arkantos {
        inset: 14px 14px 12px 14px;
        width: calc(100% - 28px);
        height: calc(100% - 26px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(18px, 3.5vw, 26px);
    }

    .app-header .top-logo-title {
        margin-left: 93px !important;
        margin-top: -10px !important;
    }

    .app-header .top-logo-image {
        width: min(330px, 56vw);
    }
}

@media (max-width: 640px) {
    .app-header {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .site-brand-lockup {
        grid-template-columns: 72px minmax(0, auto);
        column-gap: 8px;
    }

    .prostagma-title-line {
        gap: 7px;
    }

    .prostagma-mark {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .prostagma-arkantos {
        inset: 12px 12px 11px 12px;
        width: calc(100% - 24px);
        height: calc(100% - 23px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(17px, 4.9vw, 23px);
    }

    .app-header .top-logo-title {
        margin-left: 80px !important;
        margin-top: -8px !important;
    }

    .app-header .top-logo-image {
        width: min(285px, 64vw);
    }

    .app-header .subtitle {
        font-size: 0.92rem;
    }
}



/* ===== Header lockup readability fix ===== */
.app-header {
    min-height: 168px;
    padding: 22px 44px 18px;
}

.app-header .brand-block {
    max-width: 780px;
    gap: 6px;
}

.site-brand-lockup {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}

.prostagma-title-line {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.prostagma-mark {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
}

.prostagma-mark-halo {
    inset: 15px;
    opacity: 0.9;
    transform: scale(1.08);
}

.prostagma-mark-glow-back {
    opacity: 0.50;
    transform: scale(1.12);
}

.prostagma-mark-glow-front {
    opacity: 0.68;
    transform: scale(1.04);
}

.prostagma-mark-ring {
    transform: scale(1.0);
}

.prostagma-arkantos {
    inset: 15px 14px 12px;
    width: calc(100% - 28px);
    height: calc(100% - 27px);
    object-fit: contain;
    object-position: center 55%;
}

.app-header .brand-block h1 {
    font-size: clamp(30px, 3.25vw, 52px);
    line-height: 0.92;
    transform: translateY(-1px);
}

.app-header .top-logo-title {
    grid-column: 2;
    margin: -14px 0 0 0 !important;
    line-height: 1 !important;
}

.app-header .top-logo-image {
    width: min(460px, 38vw);
    min-width: 330px;
    max-width: 100%;
}

.app-header .subtitle {
    margin-top: 3px;
    max-width: 860px;
    font-size: 1rem;
}

@media (max-width: 980px) {
    .app-header {
        padding: 22px 30px 18px;
    }

    .site-brand-lockup {
        grid-template-columns: 92px minmax(0, 1fr);
        column-gap: 12px;
    }

    .prostagma-title-line {
        gap: 12px;
    }

    .prostagma-mark {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .app-header .brand-block h1 {
        font-size: clamp(28px, 4.6vw, 44px);
    }

    .app-header .top-logo-image {
        width: min(410px, 54vw);
        min-width: 280px;
    }
}

@media (max-width: 680px) {
    .site-brand-lockup {
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 10px;
    }

    .prostagma-mark {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }

    .prostagma-arkantos {
        inset: 12px 11px 10px;
        width: calc(100% - 22px);
        height: calc(100% - 22px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(23px, 7vw, 34px);
    }

    .app-header .top-logo-title {
        margin-top: -9px !important;
    }

    .app-header .top-logo-image {
        width: min(330px, 72vw);
        min-width: 230px;
    }
}


/* ===== Header brand refinement pass ===== */
.app-header {
    min-height: 172px;
    padding: 24px 44px 18px;
}

.app-header .brand-block {
    max-width: 790px;
    gap: 8px;
}

.site-brand-lockup {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
    width: fit-content;
    max-width: 100%;
}

.prostagma-title-line {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.prostagma-mark {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
}

.prostagma-mark-halo {
    inset: 18px;
    opacity: 0.82;
    transform: scale(1.02);
    background: radial-gradient(circle, rgba(247, 217, 144, 0.34) 0%, rgba(194, 122, 63, 0.17) 40%, rgba(0, 0, 0, 0) 72%);
}

.prostagma-mark-glow-back {
    opacity: 0.44;
    transform: scale(1.05);
}

.prostagma-mark-glow-front {
    opacity: 0.56;
    transform: scale(0.99);
}

.prostagma-mark-ring {
    transform: scale(1);
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.60)) drop-shadow(0 0 10px rgba(224, 179, 89, 0.10));
}

.prostagma-arkantos {
    inset: 19px 13px 9px 9px;
    width: calc(100% - 22px);
    height: calc(100% - 28px);
    object-fit: contain;
    object-position: 42% 60%;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.70));
}

.app-header .brand-block h1 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.95;
    letter-spacing: 0.002em;
    transform: translateY(-1px);
    background: linear-gradient(180deg, #fbe3ae 0%, #efc879 24%, #c78a44 55%, #8e5425 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.85px rgba(229, 191, 103, 0.98);
    text-shadow:
        0 1px 0 rgba(62, 33, 16, 0.85),
        0 3px 8px rgba(0, 0, 0, 0.50),
        0 0 8px rgba(208, 160, 77, 0.10);
}

.app-header .top-logo-title {
    grid-column: 2;
    margin: -12px 0 0 2px !important;
    line-height: 1 !important;
    justify-self: start;
}

.app-header .top-logo-image {
    width: min(430px, 35vw);
    min-width: 320px;
    max-width: 100%;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.76)) drop-shadow(0 0 8px rgba(214, 168, 79, 0.10));
}

.app-header .subtitle {
    margin-top: 4px;
    max-width: 840px;
    font-size: 1rem;
    color: rgba(236, 240, 248, 0.88);
}

@media (max-width: 980px) {
    .app-header {
        padding: 22px 30px 18px;
    }

    .site-brand-lockup {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 10px;
    }

    .prostagma-mark {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .prostagma-arkantos {
        inset: 16px 12px 9px 8px;
        width: calc(100% - 20px);
        height: calc(100% - 25px);
        object-position: 41% 60%;
    }

    .app-header .brand-block h1 {
        font-size: clamp(26px, 4vw, 36px);
    }

    .app-header .top-logo-title {
        margin-top: -10px !important;
    }

    .app-header .top-logo-image {
        width: min(380px, 50vw);
        min-width: 250px;
    }
}

@media (max-width: 680px) {
    .app-header {
        padding: 20px 18px 16px;
    }

    .site-brand-lockup {
        grid-template-columns: 82px minmax(0, 1fr);
        column-gap: 8px;
    }

    .prostagma-title-line {
        gap: 8px;
    }

    .prostagma-mark {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .prostagma-arkantos {
        inset: 14px 11px 8px 7px;
        width: calc(100% - 18px);
        height: calc(100% - 22px);
        object-position: 40% 60%;
    }

    .app-header .brand-block h1 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .app-header .top-logo-title {
        margin-top: -7px !important;
        margin-left: 1px !important;
    }

    .app-header .top-logo-image {
        width: min(310px, 68vw);
        min-width: 210px;
    }

    .app-header .subtitle {
        font-size: 0.93rem;
    }
}



/* ===== Header separated brand final pass ===== */
.app-header {
    min-height: 178px;
    padding: 24px 44px 18px;
}

.app-header .brand-block {
    display: grid;
    align-items: start;
    gap: 7px;
    max-width: 850px;
}

/* The site logo is ONLY Arkantos + Prostagma?. The AoM logo is separate below. */
.site-logo-lockup {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
}

.prostagma-mark {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
}

.prostagma-mark-halo {
    inset: 18px;
    opacity: 0.78;
    transform: scale(1.02);
    background: radial-gradient(circle, rgba(247, 217, 144, 0.32) 0%, rgba(97, 104, 150, 0.16) 38%, rgba(0, 0, 0, 0) 72%);
}

.prostagma-mark-glow-back {
    opacity: 0.40;
    transform: scale(1.04);
}

.prostagma-mark-glow-front {
    opacity: 0.52;
    transform: scale(0.99);
}

.prostagma-mark-ring {
    transform: scale(1);
    filter:
        drop-shadow(0 3px 10px rgba(0, 0, 0, 0.60))
        drop-shadow(0 0 10px rgba(224, 179, 89, 0.10));
}

/* User-tuned offset: down and left inside the ring. */
.prostagma-arkantos {
    inset: 17px 13px 10px 9px;
    width: calc(100% - 22px);
    height: calc(100% - 27px);
    object-fit: contain;
    object-position: 42% 58%;
    transform: translate(-8px, 1px);
    filter:
        drop-shadow(0 8px 12px rgba(0, 0, 0, 0.70))
        drop-shadow(0 0 8px rgba(246, 220, 146, 0.08));
}

/* Navy / gold treatment to harmonize with the official AoM logo. */
.app-header .brand-block h1 {
    margin: 0 !important;
    font-family: "Baskervville", Georgia, serif;
    font-size: clamp(34px, 3.75vw, 58px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0.004em;
    color: #111a31;
    background:
        linear-gradient(
            180deg,
            #263c66 0%,
            #111b34 42%,
            #070b17 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1.12px rgba(229, 191, 103, 0.98);
    text-shadow:
        0 1px 0 rgba(255, 225, 149, 0.36),
        0 3px 8px rgba(0, 0, 0, 0.58),
        0 0 10px rgba(214, 168, 79, 0.10);
    transform: translateX(-12px);
}

/* Separate informational game logo. It no longer participates in site-logo alignment. */
.game-logo-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: -10px 0 0 124px;
    width: fit-content;
    max-width: 100%;
    line-height: 1;
}

.app-header .top-logo-title {
    display: contents !important;
}

.app-header .top-logo-image,
.game-logo-line .top-logo-image {
    display: block;
    width: min(440px, 36vw);
    min-width: 320px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    filter:
        drop-shadow(0 3px 8px rgba(0, 0, 0, 0.76))
        drop-shadow(0 0 8px rgba(214, 168, 79, 0.10));
}

.app-header .subtitle {
    margin-top: 3px;
    max-width: 920px;
    font-size: 1rem;
    color: rgba(236, 240, 248, 0.88);
}

/* Neutralize old coupled-lockup rules appended by earlier passes. */
.site-brand-lockup,
.prostagma-title-line {
    all: unset;
}

@media (max-width: 980px) {
    .app-header {
        padding: 22px 30px 18px;
    }

    .site-logo-lockup {
        gap: 12px;
    }

    .prostagma-mark {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }

    .prostagma-arkantos {
        inset: 15px 12px 9px 8px;
        width: calc(100% - 20px);
        height: calc(100% - 24px);
        transform: translate(-7px, 1px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(30px, 5vw, 46px);
    }

    .game-logo-line {
        margin-left: 108px;
        margin-top: -8px;
    }

    .app-header .top-logo-image,
    .game-logo-line .top-logo-image {
        width: min(390px, 52vw);
        min-width: 260px;
    }
}

@media (max-width: 680px) {
    .app-header {
        padding: 20px 18px 16px;
    }

    .site-logo-lockup {
        gap: 9px;
    }

    .prostagma-mark {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }

    .prostagma-arkantos {
        inset: 13px 10px 8px 7px;
        width: calc(100% - 17px);
        height: calc(100% - 21px);
        transform: translate(-6px, 1px);
    }

    .app-header .brand-block h1 {
        font-size: clamp(25px, 7vw, 36px);
    }

    .game-logo-line {
        margin-left: 89px;
        margin-top: -6px;
    }

    .app-header .top-logo-image,
    .game-logo-line .top-logo-image {
        width: min(310px, 68vw);
        min-width: 210px;
    }

    .app-header .subtitle {
        font-size: 0.93rem;
    }
}



/* ===== Header left-aligned brand correction ===== */
.app-header {
    background:
        linear-gradient(90deg, rgba(5, 9, 16, 0.82), rgba(6, 11, 18, 0.58)),
        url("../assets/images/MainPage_HeaderStars.0add4e41c102.png") top left / auto repeat,
        rgba(7, 11, 18, 0.78);
}

.app-header::before {
    background:
        radial-gradient(circle at 16% 40%, rgba(214, 168, 79, 0.09), transparent 15rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

/* Site brand stays its own unit: Arkantos + Prostagma only. */
.site-logo-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
}

.prostagma-mark {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
}

/* User-tuned Arkantos position. */
.prostagma-arkantos {
    transform: translate(-8px, 1px);
    object-position: 42% 58%;
}

/* Navy fill + gold outline, closer to the AoM Retold logo. */
.app-header .brand-block h1 {
    margin: 0 !important;
    color: #111b34 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #111b34 !important;
    -webkit-text-stroke: 1.18px rgba(229, 191, 103, 0.98);
    text-shadow:
        0 1px 0 rgba(255, 231, 164, 0.42),
        0 3px 8px rgba(0, 0, 0, 0.62),
        0 0 8px rgba(214, 168, 79, 0.12);
}

/* AoM logo is separate informational branding, aligned to the left edge of the header brand block. */
.game-logo-line {
    margin: -6px 0 0 0 !important;
    justify-content: flex-start;
}

.app-header .top-logo-image,
.game-logo-line .top-logo-image {
    width: min(440px, 36vw);
    min-width: 320px;
}

.app-header .subtitle {
    margin-top: 4px;
}

@media (max-width: 980px) {
    .game-logo-line {
        margin-left: 0 !important;
    }

    .app-header .top-logo-image,
    .game-logo-line .top-logo-image {
        width: min(390px, 52vw);
        min-width: 260px;
    }
}

@media (max-width: 680px) {
    .site-logo-lockup {
        gap: 9px;
    }

    .game-logo-line {
        margin-left: 0 !important;
        margin-top: -4px !important;
    }

    .app-header .top-logo-image,
    .game-logo-line .top-logo-image {
        width: min(310px, 68vw);
        min-width: 210px;
    }
}

/* Lobbies polish pass */
.lobby-browser-header-panel {
    position: relative;
    margin-bottom: 18px;
    padding: 18px 22px 0;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(248, 230, 173, 0.08), transparent 18rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(7, 11, 18, 0.88));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.lobby-browser-header-stars {
    position: absolute;
    inset: 0;
    background: url("../assets/images/misc/MainPage_HeaderStars.feac1f4d5ce8.png") center top / cover no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.lobby-panel-tabs-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.lobby-panel-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    padding-right: 12px;
}

.lobby-panel-tab {
    position: relative;
    min-height: 48px;
    padding: 12px 18px 13px;
    border: 1px solid rgba(214, 168, 79, 0.22);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(9, 13, 20, 0.96));
    color: #d8c88d;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lobby-panel-tab:hover,
.lobby-panel-tab:focus-visible {
    color: var(--gold-bright);
    border-color: rgba(214, 168, 79, 0.38);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.12), rgba(9, 13, 20, 0.96));
}

.lobby-panel-tab.active {
    color: var(--gold-bright);
    border-color: rgba(214, 168, 79, 0.5);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.18), rgba(20, 15, 10, 0.88)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(7, 11, 18, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.18);
}

.lobby-panel-tab.active::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 8px;
    left: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(248, 230, 173, 0.9), transparent);
}

.lobby-panel-tab-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
    margin-left: auto;
    padding-bottom: 10px;
    flex: 0 0 auto;
}

.lobby-last-updated {
    color: #c4b98f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lobby-panel .quick-filters {
    gap: 0;
    padding-top: 10px;
}

.lobby-panel .toggle-pill {
    position: relative;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px 12px 0 0;
    border-color: rgba(214, 168, 79, 0.2);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(7, 11, 18, 0.48)),
        rgba(0, 0, 0, 0.14);
    color: #c4b98f;
}

.lobby-panel .toggle-pill + .toggle-pill {
    margin-left: 6px;
}

.lobby-panel .toggle-pill:has(input:checked) {
    color: var(--gold-bright);
    border-color: rgba(214, 168, 79, 0.52);
    background:
        linear-gradient(180deg, rgba(214, 168, 79, 0.2), rgba(7, 11, 18, 0.38)),
        rgba(0, 0, 0, 0.14);
}

.table-card {
    overflow-x: hidden;
}

.lobby-table {
    min-width: 0;
    table-layout: fixed;
}

.lobby-table th {
    padding-right: 34px;
}

.lobby-table th.sortable-header,
.active-match-table th {
    position: sticky;
    cursor: pointer;
}

.lobby-table th.sortable-header::after,
.active-match-table th::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 11px;
    height: 11px;
    transform: translateY(-50%);
    background: url("../assets/images/ui/Icon_Sort_Off.4f5cbf07bdf1.png") center / contain no-repeat;
    opacity: 0.75;
}

.lobby-table th.sorted-asc::after,
.active-match-table th.sorted-asc::after {
    background-image: url("../assets/images/ui/Icon_Sort_Up.ca632af9fcf7.png");
    opacity: 1;
}

.lobby-table th.sorted-desc::after,
.active-match-table th.sorted-desc::after {
    background-image: url("../assets/images/ui/Icon_Sort_Down.da33ee2531f2.png");
    opacity: 1;
}

.lobby-table th.observer-header-cell::after {
    display: none;
}

.observer-header-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0 auto;
    object-fit: contain;
}

.lobby-table th:nth-child(1),
.lobby-table td:nth-child(1) {
    width: 30%;
}

.lobby-table th:nth-child(2),
.lobby-table td:nth-child(2) {
    width: 14%;
}

.lobby-table th:nth-child(3),
.lobby-table td:nth-child(3) {
    width: 14%;
}

.lobby-table th:nth-child(4),
.lobby-table td:nth-child(4) {
    width: 24%;
}

.lobby-table th:nth-child(5),
.lobby-table td:nth-child(5) {
    width: 18%;
}

.active-match-table th:nth-child(1),
.active-match-table td:nth-child(1) {
    width: 32%;
}

.active-match-table th:nth-child(2),
.active-match-table td:nth-child(2) {
    width: 13%;
}

.active-match-table th:nth-child(3),
.active-match-table td:nth-child(3) {
    width: 12%;
}

.active-match-table th:nth-child(4),
.active-match-table td:nth-child(4) {
    width: 9%;
}

.active-match-table th:nth-child(5),
.active-match-table td:nth-child(5) {
    width: 20%;
}

.active-match-table th:nth-child(6),
.active-match-table td:nth-child(6) {
    width: 14%;
}

/* The custom in-progress table adds a Players column (Match, Players, ELO,
   Time, Observers, Map, Region) that the ranked table above does not have.
   Without this override, the unqualified nth-child rules shift by one column
   and squash Map into the width meant for Region. */
.active-match-table.active-match-table--with-players th:nth-child(1),
.active-match-table.active-match-table--with-players td:nth-child(1) {
    width: 24%;
}

.active-match-table.active-match-table--with-players th:nth-child(2),
.active-match-table.active-match-table--with-players td:nth-child(2) {
    width: 12%;
}

.active-match-table.active-match-table--with-players th:nth-child(3),
.active-match-table.active-match-table--with-players td:nth-child(3) {
    width: 10%;
}

.active-match-table.active-match-table--with-players th:nth-child(4),
.active-match-table.active-match-table--with-players td:nth-child(4) {
    width: 10%;
}

.active-match-table.active-match-table--with-players th:nth-child(5),
.active-match-table.active-match-table--with-players td:nth-child(5) {
    width: 7%;
}

.active-match-table.active-match-table--with-players th:nth-child(6),
.active-match-table.active-match-table--with-players td:nth-child(6) {
    width: 22%;
}

.active-match-table.active-match-table--with-players th:nth-child(7),
.active-match-table.active-match-table--with-players td:nth-child(7) {
    width: 15%;
}

.lobby-cell-title,
.lobby-cell-meta,
.map-cell,
.map-name,
.region-pill,
.active-match-name-truncate {
    min-width: 0;
}

.active-match-name-truncate,
.lobby-name,
.map-name,
.region-pill {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lobby-cell-meta {
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.match-row-actions,
.recent-match-actions,
.active-match-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.match-row-actions {
    margin-left: auto;
}

.recent-match-actions {
    margin-top: 6px;
}

.copy-game-url-button {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: none;
    border-radius: 0;
    background: url("../assets/images/ui/Button_Copy_Off.6f56d5eb6d90.png") center / contain no-repeat;
    cursor: pointer;
    opacity: 0.9;
    transition: transform 120ms ease, opacity 120ms ease;
}

.copy-game-url-button:hover,
.copy-game-url-button:focus-visible,
.copy-game-url-button.is-copied {
    background-image: url("../assets/images/ui/Button_Copy_On.ddc1703eaa2c.png");
    opacity: 1;
    transform: translateY(-1px);
}

.copy-game-url-button:focus-visible {
    outline: 1px solid rgba(214, 168, 79, 0.4);
    outline-offset: 2px;
}

.copy-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    padding: 9px 13px;
    border: 1px solid rgba(214, 168, 79, 0.4);
    border-radius: 10px;
    background: rgba(7, 11, 18, 0.96);
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
    transition: opacity 140ms ease, transform 140ms ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar-utility-link,
.active-match-detail-link,
.recent-match-link,
.player-details-title-link {
    color: var(--gold-bright);
}

.sidebar-utility-link {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.recent-match-link-disabled {
    color: var(--muted-2);
    pointer-events: none;
    text-decoration: none;
}

.active-match-rating-edge {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(214, 168, 79, 0.18);
    border-radius: 14px;
    background: rgba(214, 168, 79, 0.08);
}

.active-match-rating-edge strong {
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.active-match-rating-edge span {
    color: #d8c88d;
    font-size: 12px;
    line-height: 1.45;
}

.recent-info-cell {
    display: grid;
    gap: 2px;
}

.recent-match-table .recent-info-table-cell,
.recent-match-table .recent-map-cell {
    min-width: 0;
}

.recent-match-table .recent-map-cell {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.recent-map-cell span {
    display: block;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

#refreshButton {
    margin-left: auto;
}

@media (max-width: 1180px) {
    .lobby-panel-tabs-row {
        flex-direction: column;
        align-items: stretch;
    }

    .lobby-panel-tab-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 6px;
    }
}

@media (max-width: 860px) {
    .lobby-browser-header-panel {
        padding: 14px 16px 0;
    }

    .lobby-panel-tabs {
        padding-right: 0;
    }

    .lobby-panel-tab {
        min-height: 44px;
        padding: 10px 14px 11px;
        font-size: 12px;
    }

    .lobby-table th,
    .lobby-table td {
        padding: 11px 10px;
    }

    .lobby-table th:nth-child(3),
    .lobby-table td:nth-child(3),
    .active-match-table:not(.active-match-table--with-players) th:nth-child(6),
    .active-match-table:not(.active-match-table--with-players) td:nth-child(6) {
        display: none;
    }

    .active-match-table.active-match-table--with-players th:nth-child(7),
    .active-match-table.active-match-table--with-players td:nth-child(7) {
        display: none;
    }

    .lobby-table th:nth-child(1),
    .lobby-table td:nth-child(1) {
        width: 38%;
    }

    .lobby-table th:nth-child(2),
    .lobby-table td:nth-child(2) {
        width: 18%;
    }

    .lobby-table th:nth-child(4),
    .lobby-table td:nth-child(4) {
        width: 28%;
    }

    .lobby-table th:nth-child(5),
    .lobby-table td:nth-child(5) {
        width: 16%;
    }

    .active-match-table:not(.active-match-table--with-players) th:nth-child(1),
    .active-match-table:not(.active-match-table--with-players) td:nth-child(1) {
        width: 38%;
    }

    .active-match-table:not(.active-match-table--with-players) th:nth-child(2),
    .active-match-table:not(.active-match-table--with-players) td:nth-child(2) {
        width: 15%;
    }

    .active-match-table:not(.active-match-table--with-players) th:nth-child(3),
    .active-match-table:not(.active-match-table--with-players) td:nth-child(3) {
        width: 14%;
    }

    .active-match-table:not(.active-match-table--with-players) th:nth-child(4),
    .active-match-table:not(.active-match-table--with-players) td:nth-child(4) {
        width: 11%;
    }

    .active-match-table:not(.active-match-table--with-players) th:nth-child(5),
    .active-match-table:not(.active-match-table--with-players) td:nth-child(5) {
        width: 22%;
    }

    /* Custom in-progress table keeps 6 visible columns at this breakpoint
       (Match, Players, ELO, Time, Observers, Map) after Region is hidden. */
    .active-match-table.active-match-table--with-players th:nth-child(1),
    .active-match-table.active-match-table--with-players td:nth-child(1) {
        width: 29%;
    }

    .active-match-table.active-match-table--with-players th:nth-child(2),
    .active-match-table.active-match-table--with-players td:nth-child(2) {
        width: 14%;
    }

    .active-match-table.active-match-table--with-players th:nth-child(3),
    .active-match-table.active-match-table--with-players td:nth-child(3) {
        width: 12%;
    }

    .active-match-table.active-match-table--with-players th:nth-child(4),
    .active-match-table.active-match-table--with-players td:nth-child(4) {
        width: 11%;
    }

    .active-match-table.active-match-table--with-players th:nth-child(5),
    .active-match-table.active-match-table--with-players td:nth-child(5) {
        width: 9%;
    }

    .active-match-table.active-match-table--with-players th:nth-child(6),
    .active-match-table.active-match-table--with-players td:nth-child(6) {
        width: 25%;
    }
}

/* Lobby follow-up polish */
.lobby-browser-header-panel {
    padding: 0 22px 14px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.lobby-browser-header-stars {
    display: none;
}

.lobby-panel-tabs-row {
    align-items: flex-start;
    padding: 0;
    background: transparent;
}

.lobby-panel-tabs {
    align-items: flex-start;
}

.lobby-panel-tab {
    border-top: none;
    border-bottom: 1px solid rgba(214, 168, 79, 0.28);
    border-radius: 0 0 16px 16px;
    background:
        linear-gradient(180deg, rgba(9, 13, 20, 0.96), rgba(15, 23, 42, 0.82));
}

.lobby-panel-tab.active {
    border-bottom-color: rgba(214, 168, 79, 0.5);
    background:
        linear-gradient(180deg, rgba(7, 11, 18, 0.98), rgba(214, 168, 79, 0.14)),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(20, 15, 10, 0.82));
}

.lobby-panel-tab.active::after {
    display: none;
}

.lobby-panel-tab-actions {
    padding-top: 10px;
    padding-bottom: 0;
}

.slot-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(214, 168, 79, 0.24);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 20%, rgba(248, 230, 173, 0.18), transparent 65%),
        rgba(7, 11, 18, 0.72);
}

.slot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-avatar-god .player-god-icon-wrap,
.slot-avatar-god .player-god-icon,
.slot-avatar-god .player-god-fallback {
    width: 34px;
    height: 34px;
}

.slot-avatar-open {
    border-style: dashed;
    opacity: 0.52;
}

.slot-avatar-open::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1px solid rgba(216, 200, 141, 0.7);
    border-radius: 50%;
}

.tooltip-meta,
.tooltip-chip {
    display: none;
}

.tooltip-ledger {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
    margin: 11px 0 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(214, 168, 79, 0.18);
    border-bottom: 1px solid rgba(214, 168, 79, 0.18);
}

.tooltip-ledger span {
    min-width: 0;
    overflow: hidden;
    color: #d8c88d;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-match-table {
    min-width: 900px;
}

.recent-match-table th,
.recent-match-table td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.recent-match-table th:nth-child(1),
.recent-match-table td:nth-child(1) {
    width: 14%;
}

.recent-match-table th:nth-child(2),
.recent-match-table td:nth-child(2) {
    width: 18%;
}

.recent-match-table th:nth-child(3),
.recent-match-table td:nth-child(3) {
    width: 38%;
}

.recent-match-table th:nth-child(4),
.recent-match-table td:nth-child(4) {
    width: 10%;
}

.recent-match-table th:nth-child(5),
.recent-match-table td:nth-child(5) {
    width: 10%;
}

.recent-match-table th:nth-child(6),
.recent-match-table td:nth-child(6) {
    width: 10%;
    text-align: right;
}

.recent-faceoff {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.recent-faceoff-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.recent-faceoff-player:not(.is-current-player) {
    grid-template-columns: auto minmax(0, 1fr);
}

.recent-faceoff-player:not(.is-current-player) .recent-faceoff-identity {
    order: 1;
}

.recent-faceoff-player:not(.is-current-player) .recent-faceoff-rating {
    order: 2;
    justify-items: end;
}

.recent-faceoff-identity {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
}

.recent-faceoff-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.recent-faceoff-icon img,
.recent-faceoff-icon .player-god-icon,
.recent-faceoff-icon .player-god-fallback,
.recent-faceoff-icon .player-god-icon-wrap {
    width: 38px;
    height: 38px;
}

.recent-faceoff-identity strong {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-faceoff-rating {
    display: grid;
    justify-items: start;
    gap: 3px;
    min-width: 38px;
}

.recent-faceoff-rating span {
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.recent-faceoff-rating em {
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
}

.recent-faceoff-rating em.is-positive {
    color: #8ff0b5;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.32);
}

.recent-faceoff-rating em.is-negative {
    color: #ff9a9a;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.32);
}

.recent-faceoff-vs {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: url("../assets/images/vs_frame_circle.7e9560c08704.png") center / contain no-repeat;
}

.recent-faceoff-vs::before {
    content: "";
    width: 30px;
    height: 30px;
    background: url("../assets/images/loading_screen_vs.4d0b6fe65727.png") center / contain no-repeat;
    filter: drop-shadow(0 0 8px rgba(214, 168, 79, 0.36));
}

.recent-match-detail-action {
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.recent-match-detail-action:hover,
.recent-match-detail-action:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.recent-result-win {
    color: #8ff0b5;
    font-weight: 950;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.recent-result-loss {
    color: #ff9a9a;
    font-weight: 950;
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.34);
}

.active-match-table td {
    min-width: 0;
}

.active-match-table .lobby-cell-title {
    max-width: 100%;
    overflow: hidden;
}

.active-match-tournament-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.45rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(232, 196, 111, 0.5);
  border-radius: 999px;
  color: #f8df9d;
  background: rgba(41, 29, 11, 0.72);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.active-match-tournament-badge img {
  width: 12px;
  height: 17px;
  object-fit: contain;
}

.active-match-tournament-callout {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.8rem 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(232, 196, 111, 0.42);
  border-radius: 7px;
  color: #f7e4b2;
  background: linear-gradient(90deg, rgba(91, 59, 15, 0.35), rgba(11, 17, 28, 0.72));
  text-decoration: none;
}

.active-match-tournament-callout img {
  width: 22px;
  height: 31px;
  object-fit: contain;
}

.active-match-tournament-callout span,
.active-match-tournament-callout small,
.active-match-tournament-callout strong {
  display: block;
}

.active-match-tournament-callout small {
  color: #bea972;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.active-match-details-frame .sidebar-title {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-match-region-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.active-match-region-cell .copy-game-url-button {
    margin-left: auto;
}

.active-match-region-cell > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-match-details-sidebar {
    align-self: start;
    overflow: visible !important;
    overscroll-behavior: contain;
    padding-right: 0 !important;
    padding-bottom: 14px !important;
}

.active-match-details-sidebar .details-sidebar-frame {
    box-sizing: border-box;
    max-height: calc(100vh - 150px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 22px;
    padding-bottom: 42px;
    scrollbar-gutter: stable;
}

.active-match-details-sidebar .details-sidebar-frame::-webkit-scrollbar {
    width: 8px;
}

.active-match-details-sidebar .details-sidebar-frame::-webkit-scrollbar-track {
    background: rgba(7, 11, 18, 0.38);
}

.active-match-details-sidebar .details-sidebar-frame::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(214, 168, 79, 0.38);
}

.active-match-details-sidebar .player-row,
.details-sidebar-frame .player-row {
    grid-template-columns: 38px minmax(0, 1fr);
}

.active-match-details-sidebar .slot-avatar,
.details-sidebar-frame .slot-avatar {
    align-self: center;
}

.active-match-details-sidebar .slot-avatar-god .player-god-icon-wrap,
.active-match-details-sidebar .slot-avatar-god .player-god-icon,
.active-match-details-sidebar .slot-avatar-god .player-god-fallback {
    width: 34px;
    height: 34px;
}

.recent-match-table {
    table-layout: fixed;
}

.recent-match-table td {
    overflow: hidden;
}

.recent-match-table th:nth-child(1),
.recent-match-table td:nth-child(1) {
    width: 12%;
}

.recent-match-table th:nth-child(2),
.recent-match-table td:nth-child(2) {
    width: 110px;
}

.recent-match-table th:nth-child(3),
.recent-match-table td:nth-child(3) {
    width: auto;
}

.recent-match-table th:nth-child(3) {
    text-align: center;
}

.recent-match-table th:nth-child(4),
.recent-match-table td:nth-child(4) {
    width: 98px;
    text-align: center;
}

.recent-match-table th:nth-child(5),
.recent-match-table td:nth-child(5) {
    width: 104px;
    text-align: center;
}

.recent-match-table th:nth-child(6),
.recent-match-table td:nth-child(6) {
    width: 136px;
}

.recent-match-table .recent-map-cell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.recent-match-table .recent-map-icon {
    width: 66px;
    height: 42px;
}

.recent-match-table .recent-map-cell span {
    max-width: 96px;
    margin: 0;
    text-align: center;
    white-space: normal;
}

/* Shared Prostagma shell integration */
body.lobby-browser-page {
    --bg: var(--site-bg);
    --bg-soft: rgba(10, 15, 26, 0.9);
    --panel: var(--site-bg-panel);
    --panel-solid: #0c121e;
    --panel-2: rgba(16, 24, 38, 0.94);
    --panel-3: rgba(6, 10, 18, 0.92);
    --text: var(--site-text);
    --muted: var(--site-text-muted);
    --muted-2: var(--site-text-soft);
    --border: var(--site-border);
    --border-strong: var(--site-border-strong);
    --accent: var(--site-gold);
    --accent-soft: rgba(232, 196, 111, 0.12);
    --gold-bright: var(--site-gold-strong);
    --gold-muted: var(--site-gold);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow-x: hidden;
    color: var(--site-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 196, 111, 0.1), transparent 30rem),
        linear-gradient(180deg, #07101d 0%, var(--site-bg) 34rem, #040710 100%);
    font-family: var(--site-font-body);
}

body.lobby-browser-page > .site-shell-header,
body.lobby-browser-page > .site-footer {
    flex: 0 0 auto;
}

.lobby-browser-page .app-shell {
    width: min(var(--site-content-width), calc(100% - (var(--site-page-gutter) * 2)));
    flex: 1 0 auto;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.75rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.lobby-browser-page .lobby-browser-header-panel {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1rem, 2.4vw, 1.75rem) 0;
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-md);
    background:
        linear-gradient(180deg, rgba(255, 236, 176, 0.05), rgba(0, 0, 0, 0.08)),
        var(--site-bg-panel);
    box-shadow: var(--site-shadow-soft);
    overflow: hidden;
}

.lobby-page-heading {
    max-width: 58rem;
    padding-bottom: clamp(1.25rem, 2.5vw, 1.85rem);
}

.lobby-page-heading .site-section-title {
    margin-top: 0.42rem;
}

.lobby-page-heading .site-section-title::after {
    left: 0;
    width: min(100%, 210px);
    transform: none;
}

.lobby-page-heading > p:last-child {
    max-width: 48rem;
    margin: 1.25rem 0 0;
    color: var(--site-text-muted);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.55;
}

.lobby-browser-page .lobby-panel-tabs-row {
    align-items: flex-end;
    border-top: 1px solid rgba(232, 196, 111, 0.14);
}

.lobby-browser-page .lobby-panel-tab {
    min-height: 44px;
    border-radius: 0;
    font-family: var(--site-font-body);
}

.lobby-browser-page .primary-button,
.lobby-browser-page .secondary-button {
    border-radius: var(--site-radius-sm);
    color: var(--site-gold-strong);
    background:
        linear-gradient(180deg, rgba(255, 231, 158, 0.08), rgba(0, 0, 0, 0.14)),
        rgba(6, 14, 27, 0.76);
    font-family: var(--site-font-body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lobby-browser-page .lobby-panel,
.lobby-browser-page .placeholder-panel,
.lobby-browser-page .details-sidebar {
    border-color: var(--site-border);
    border-radius: var(--site-radius-md);
    background:
        linear-gradient(180deg, rgba(255, 236, 176, 0.035), rgba(0, 0, 0, 0.08)),
        var(--site-bg-panel);
    box-shadow: var(--site-shadow-soft);
}

.lobby-browser-page .filter-bar label {
    color: var(--site-gold);
    letter-spacing: 0.1em;
}

.lobby-browser-page .lobby-panel input,
.lobby-browser-page .lobby-panel select {
    border-color: rgba(232, 196, 111, 0.2);
    border-radius: var(--site-radius-sm);
    color: var(--site-text);
    background: rgba(5, 10, 19, 0.86);
}

.lobby-browser-page .lobby-panel .toggle-pill,
.lobby-browser-page .lobby-toggle-control {
    border-radius: var(--site-radius-sm) var(--site-radius-sm) 0 0;
}

.lobby-browser-page .table-card {
    border-color: rgba(232, 196, 111, 0.18);
    border-radius: var(--site-radius-md);
    background: rgba(4, 8, 15, 0.72);
}

.lobby-browser-page .lobby-table th {
    color: var(--site-gold);
    background: #0a111e;
}

.lobby-browser-page .rules-badge,
.lobby-browser-page .tooltip-chip,
.lobby-browser-page .leaderboard-badge,
.lobby-browser-page .player-details-meta span,
.lobby-browser-page .recent-match-tab {
    border-radius: 4px;
}

.lobby-browser-page > .site-footer {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 1180px) {
    .lobby-browser-page .lobby-panel-tabs-row {
        align-items: stretch;
    }
}

@media (max-width: 860px) {
    .lobby-browser-page .app-shell {
        width: calc(100% - 2rem);
        padding-top: 2rem;
    }

    .lobby-browser-page .lobby-browser-header-panel {
        padding: 1rem 0.9rem 0;
    }

    .lobby-browser-page .lobby-panel-tabs {
        margin-inline: -0.9rem;
        padding-inline: 0.9rem;
    }

    .lobby-browser-page .lobby-panel-tab-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }

    .lobby-browser-page #refreshButton {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .lobby-browser-page .app-shell {
        width: calc(100% - 1rem);
        padding-top: 1.25rem;
    }

    .lobby-browser-page .lobby-panel {
        padding: 0.75rem;
    }

    .lobby-browser-page .lobby-toggle-row {
        grid-template-columns: 1fr;
    }

    .lobby-browser-page .lobby-toggle-control,
    .lobby-browser-page .lobby-toggle-control:nth-child(2n) {
        border-right-width: 1px;
        border-radius: var(--site-radius-sm);
    }

    .lobby-browser-page .table-card {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .lobby-browser-page .lobby-table {
        min-width: 640px;
    }

    .lobby-browser-page .details-sidebar {
        min-height: 300px;
    }
}
