html, body {
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.light,
body#news.light,
body#rules.light,
body#register.light,
body#index.light {
    margin: 0;
    color: #edf0f3;
    font-family: Arial, Helvetica, sans-serif;
    background: #030507 url('../../images/login/background.jpg') center center / cover no-repeat fixed;
}

body.light::before {
    display: none;
}

section {
    position: relative;
    z-index: 1;
}

.lobby-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.lobby-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 14px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, rgba(12, 15, 18, 0.22) 0%, rgba(12, 15, 18, 0.08) 100%);
    border-bottom: 1px solid rgba(189, 196, 201, 0.10);
    backdrop-filter: blur(2px);
    box-shadow: none;
}

.lobby-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f3f5f7;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lobby-brand small {
    display: block;
    color: #bfc7ce;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lobby-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.07);
    position: relative;
}

.lobby-brand-icon::before,
.lobby-brand-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.lobby-brand-icon::before {
    width: 7px;
    height: 7px;
    background: #ecf1f5;
}

.lobby-brand-icon::after {
    width: 23px;
    height: 9px;
    border: 1px solid rgba(235, 240, 245, 0.75);
}

.lobby-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8d0d7;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lobby-topbar-lang-select {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c8d0d7;
    white-space: nowrap;
}

.lobby-topbar-lang-select label {
    margin: 0;
    color: #d8dde2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lobby-topbar-select {
    min-width: 150px;
    max-width: 170px;
    height: 36px;
    padding: 0 38px 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(207, 214, 220, 0.18);
    background: rgba(18, 21, 26, 0.88);
    color: #f4f6f8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lobby-topbar-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.32);
}

.lobby-topbar-stat,
.lobby-topbar-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.lobby-topbar-lang-links a {
    color: #f5f7fa;
    text-decoration: none;
    opacity: 0.72;
    margin-left: 8px;
}

.lobby-topbar-lang-links a.is-current,
.lobby-topbar-lang-links a:hover {
    opacity: 1;
}

.lobby-anchor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(73, 79, 86, 0.95) 0%, rgba(39, 43, 48, 0.95) 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.lobby-anchor-btn:hover {
    text-decoration: none;
    color: #fff;
    filter: brightness(1.08);
}

.lobby-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 22px 16px 42px;
}

.lobby-grid {
    display: grid;
    grid-template-columns: 285px 1fr;
    gap: 18px;
    align-items: start;
}

.lobby-card {
    background: rgba(12, 15, 18, 0.56);
    border: 1px solid rgba(189, 196, 201, 0.14);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(3px);
}

.lobby-card + .lobby-card {
    margin-top: 18px;
}

.lobby-card-inner {
    padding: 18px;
}

.lobby-eyebrow {
    color: #b8c0c7;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    margin-bottom: 8px;
}

.lobby-hero-title {
    margin: 0;
    font-size: 42px;
    line-height: 0.98;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #f7f9fb;
}

.lobby-hero-title.small {
    font-size: 28px;
}

.lobby-hero-text {
    max-width: 680px;
    margin-top: 14px;
    color: #d3dae0;
    font-size: 13px;
    line-height: 1.55;
}

.lobby-hero-text strong {
    color: #ffffff;
}

.lobby-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.lobby-section-title {
    margin: 0;
    color: #f5f7f9;
    font-size: 16px;
    font-weight: 600;
}

.lobby-subtext {
    color: #aeb7bf;
    font-size: 13px;
    line-height: 1.55;
    margin: 10px 0 0;
}

.lobby-form .field {
    margin-bottom: 16px;
}

.lobby-form label,
.lobby-strong-label {
    display: block;
    margin-bottom: 7px;
    color: #e6eaee;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lobby-form input,
.lobby-form select,
.lobby-form textarea,
.lobby-select {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(207, 214, 220, 0.14);
    background: rgba(18, 21, 26, 0.9);
    border-radius: 12px;
    color: #f6f7f9;
    padding: 0 14px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lobby-form textarea {
    min-height: 160px;
    padding: 11px;
    resize: vertical;
}

.lobby-form input:focus,
.lobby-form select:focus,
.lobby-form textarea:focus {
    outline: none;
    border-color: rgba(232, 237, 241, 0.34);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.lobby-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 18px;
    color: #c6cdd4;
    font-size: 13px;
}

.lobby-inline-row a,
.lobby-inline-row a:hover,
.lobby-link,
.lobby-link:hover {
    color: #eef1f4;
    text-decoration: none;
}

.lobby-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lobby-check input {
    width: auto;
    height: auto;
}

.lobby-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.lobby-btn,
button.lobby-btn,
input.lobby-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(85, 91, 99, 0.98) 0%, rgba(45, 49, 54, 0.98) 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.lobby-btn:hover,
button.lobby-btn:hover,
input.lobby-btn:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.07);
}

.lobby-btn.is-primary {
    background: linear-gradient(180deg, rgba(177, 184, 191, 0.95) 0%, rgba(93, 100, 108, 0.95) 100%);
    color: #11161b;
    border-color: rgba(255, 255, 255, 0.18);
}

.lobby-btn.is-secondary {
    background: rgba(16, 18, 22, 0.72);
    color: #f0f4f7;
}

.lobby-btn.full {
    width: 100%;
}

.lobby-muted-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: #818c95;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.lobby-muted-divider::before,
.lobby-muted-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.lobby-universe-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: stretch;
}

.lobby-universe-visual {
    position: relative;
    min-height: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: url('../../images/login/background.jpg') center center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.lobby-universe-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 6, 8, 0.03) 0%, rgba(4, 6, 8, 0.10) 100%);
}

.lobby-status-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(155, 168, 121, 0.18);
    border: 1px solid rgba(190, 215, 120, 0.35);
    color: #e5efc4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lobby-universe-meta h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    color: #f7f8fb;
}

.lobby-universe-meta p {
    margin: 6px 0 0;
    color: #b3bcc4;
    font-size: 15px;
}

.lobby-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.lobby-stat-box {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-stat-box span {
    display: block;
    color: #adb7c0;
    font-size: 12px;
    line-height: 1.35;
}

.lobby-stat-box strong {
    display: block;
    margin-top: 8px;
    color: #fafcff;
    font-size: 22px;
    font-weight: 300;
}

.lobby-stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lobby-stat-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce2e7;
}

.lobby-stat-list li:last-child {
    border-bottom: 0;
}

.lobby-stat-list span {
    color: #adb7bf;
}

.lobby-stat-list strong {
    color: #fbfdff;
    font-weight: 700;
}

.lobby-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lobby-table-wrap {
    overflow-x: auto;
}

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

.lobby-table th,
.lobby-table td {
    padding: 11px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-table th {
    color: #98a6b1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.lobby-table td {
    color: #eef2f6;
    font-size: 14px;
}

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

.lobby-news-list {
    display: grid;
    gap: 14px;
}

.lobby-news-item {
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-news-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 500;
    color: #f5f7fb;
}

.lobby-news-meta {
    color: #aeb7bf;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.lobby-news-text,
.lobby-rules-content,
.lobby-copy {
    color: #d7dee4;
    font-size: 15px;
    line-height: 1.7;
}

.lobby-copy p:first-child {
    margin-top: 0;
}

.lobby-copy p:last-child {
    margin-bottom: 0;
}

.lobby-rules-content {
    padding: 4px 0 0;
}

.lobby-rules-content table,
.lobby-rules-content img {
    max-width: 100%;
}

.lobby-rules-content a,
.lobby-news-text a {
    color: #ffffff;
}

.lobby-page-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.lobby-side-summary {
    color: #cad2d9;
    font-size: 14px;
    line-height: 1.6;
}

.lobby-footer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 24px;
}

.lobby-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0 8px;
    color: #b2bbc3;
    font-size: 13px;
}

.lobby-footer-inner a {
    color: #edf1f4;
    text-decoration: none;
}

.lobby-footer-inner a:hover {
    text-decoration: underline;
}

.lobby-register-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: start;
}

.lobby-register-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
}

.lobby-register-form-grid .full {
    grid-column: 1 / -1;
}

.lobby-help {
    display: block;
    margin-top: 6px;
    color: #9da8b1;
    font-size: 12px;
    line-height: 1.5;
}

.lobby-pill-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #eef2f5;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lobby-empty {
    color: #aeb7bf;
    font-style: italic;
}

@media (max-width: 1050px) {
    .lobby-grid,
    .lobby-register-layout,
    .lobby-universe-card,
    .lobby-grid-2 {
        grid-template-columns: 1fr;
    }

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

    .lobby-hero-title {
        font-size: 44px;
    }

    .lobby-hero-title.small {
        font-size: 36px;
    }
}

@media (max-width: 720px) {
    .lobby-topbar,
    .lobby-topbar-right,
    .lobby-page-header,
    .lobby-title-row,
    .lobby-btn-row,
    .lobby-inline-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .lobby-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lobby-card-inner {
        padding: 18px;
    }

    .lobby-hero-title {
        font-size: 34px;
    }

    .lobby-hero-title.small {
        font-size: 30px;
    }

    .lobby-register-form-grid,
    .lobby-stat-grid {
        grid-template-columns: 1fr;
    }
}


.lobby-universe-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.lobby-universe-toolbar .field {
    margin: 0;
    min-width: 240px;
}

.lobby-universe-toolbar .lobby-strong-label {
    margin-bottom: 8px;
}

.lobby-topbar-right strong,
.lobby-topbar-lang strong {
    color: #ffffff;
}

.lobby-topbar-lang-links a {
    opacity: 0.9;
}

@media (max-width: 900px) {
    .lobby-universe-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .lobby-universe-toolbar .field {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .lobby-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .lobby-topbar-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .lobby-topbar-lang-select {
        width: 100%;
        justify-content: flex-end;
    }
}



@media (max-width: 1180px) {
    .lobby-main, .lobby-footer {
        max-width: 980px;
    }

    .lobby-grid {
        grid-template-columns: 260px 1fr;
        gap: 16px;
    }

    .lobby-universe-card {
        grid-template-columns: 220px 1fr;
    }

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

@media (max-width: 860px) {
    .lobby-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .lobby-grid,
    .lobby-register-layout,
    .lobby-universe-card,
    .lobby-grid-2 {
        grid-template-columns: 1fr;
    }

    .lobby-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .lobby-topbar-select {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .lobby-universe-toolbar .field {
        width: 100%;
        min-width: 0;
    }
}

/* Compact lobby pass - v11
   Objectif: rendu moins gros, moins de hauteur, pas d'overflow horizontal. */
html,
body {
    width: 100%;
    overflow-x: hidden !important;
}

.lobby-shell {
    min-height: 100vh;
    overflow-x: hidden;
}

.lobby-topbar {
    gap: 10px;
    padding: 5px 10px;
    flex-wrap: nowrap;
}

.lobby-brand {
    gap: 8px;
    font-size: 19px;
    line-height: 1;
    min-width: 0;
}

.lobby-brand small {
    font-size: 9px;
    letter-spacing: 0.12em;
}

.lobby-brand-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.lobby-brand-icon::before {
    width: 5px;
    height: 5px;
}

.lobby-brand-icon::after {
    width: 17px;
    height: 7px;
}

.lobby-topbar-right {
    gap: 7px;
    font-size: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.lobby-topbar-stat {
    font-size: 10px;
}

.lobby-topbar-lang-select {
    gap: 6px;
    min-width: 0;
}

.lobby-topbar-lang-select label {
    font-size: 10px;
    letter-spacing: 0.02em;
}

.lobby-topbar-select {
    min-width: 110px;
    max-width: 126px;
    height: 28px;
    padding: 0 24px 0 9px;
    border-radius: 8px;
    font-size: 11px;
}

.lobby-anchor-btn {
    padding: 6px 10px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
}

.lobby-main {
    max-width: 960px;
    padding: 10px 10px 14px;
}

.lobby-grid {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 10px;
}

.lobby-card {
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.lobby-card + .lobby-card,
.lobby-card[style],
.lobby-grid-2[style] {
    margin-top: 10px !important;
}

.lobby-card-inner {
    padding: 10px 12px;
}

.lobby-title-row {
    gap: 8px;
    margin-bottom: 7px;
}

.lobby-section-title {
    font-size: 13px;
}

.lobby-eyebrow {
    font-size: 8px;
    letter-spacing: 0.16em;
    margin-bottom: 4px;
}

.lobby-hero-title,
.lobby-hero-title.small {
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.lobby-hero-text {
    max-width: 100%;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.35;
}

.lobby-subtext {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
}

.lobby-form .field {
    margin-bottom: 8px;
}

.lobby-form label,
.lobby-strong-label {
    margin-bottom: 4px;
    font-size: 11px;
}

.lobby-form input,
.lobby-form select,
.lobby-form textarea,
.lobby-select {
    height: 31px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
}

.lobby-inline-row {
    gap: 6px;
    margin: 6px 0 9px;
    font-size: 10px;
}

.lobby-btn-row {
    gap: 7px;
    margin-top: 9px;
}

.lobby-btn,
button.lobby-btn,
input.lobby-btn {
    min-height: 31px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 11px;
}

.lobby-muted-divider {
    gap: 8px;
    margin: 9px 0;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.lobby-copy,
.lobby-news-text,
.lobby-rules-content {
    font-size: 11px;
    line-height: 1.38;
}

.lobby-copy p {
    margin: 6px 0;
}

.lobby-pill-inline {
    gap: 5px;
    padding: 4px 7px;
    font-size: 9px;
    letter-spacing: 0.06em;
}

.lobby-stat-list li {
    gap: 7px;
    padding: 6px 0;
    font-size: 11px;
}

.lobby-universe-toolbar {
    gap: 8px;
    margin-bottom: 8px;
}

.lobby-universe-toolbar .field {
    min-width: 170px;
}

.lobby-universe-toolbar .lobby-strong-label {
    margin-bottom: 4px;
}

.lobby-universe-card {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
}

.lobby-universe-visual {
    min-height: 112px;
    border-radius: 12px;
}

.lobby-status-pill {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    font-size: 9px;
}

.lobby-universe-meta h3 {
    font-size: 16px;
}

.lobby-universe-meta p {
    margin-top: 3px;
    font-size: 11px;
}

.lobby-stat-grid {
    gap: 7px;
    margin: 9px 0;
}

.lobby-stat-box {
    padding: 7px;
    border-radius: 9px;
}

.lobby-stat-box span {
    font-size: 9px;
    line-height: 1.2;
}

.lobby-stat-box strong {
    margin-top: 4px;
    font-size: 15px;
}

.lobby-table-wrap {
    width: 100%;
    overflow-x: hidden;
}

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

.lobby-table th,
.lobby-table td {
    padding: 5px 5px;
    font-size: 10px;
    word-break: break-word;
}

.lobby-table th {
    font-size: 8px;
    letter-spacing: 0.06em;
}

/* Le bloc news/règles de l'accueil prenait trop de hauteur.
   Les liens restent disponibles dans les boutons et le footer. */
.lobby-grid > section > .lobby-grid-2 {
    display: none;
}

.lobby-footer {
    max-width: 960px;
    padding: 0 10px 8px;
}

.lobby-footer-inner {
    gap: 8px;
    padding: 8px 0 4px;
    font-size: 10px;
}

@media (max-width: 980px) {
    .lobby-main,
    .lobby-footer {
        max-width: 100%;
    }

    .lobby-grid {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 8px;
    }

    .lobby-universe-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .lobby-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .lobby-topbar {
        flex-wrap: wrap;
        align-items: center;
    }

    .lobby-topbar-right {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }

    .lobby-grid,
    .lobby-universe-card,
    .lobby-register-layout,
    .lobby-grid-2 {
        grid-template-columns: 1fr;
    }

    .lobby-universe-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .lobby-universe-toolbar .field,
    .lobby-topbar-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

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


/* v12: universe select polish + alternate background */
body.light,
body#news.light,
body#rules.light,
body#register.light,
body#index.light {
    background: #05070a url('../../images/login/bg.png') center center / cover no-repeat fixed;
}

.lobby-universe-toolbar .field {
    min-width: 220px;
    max-width: 280px;
    margin: 0;
}

.lobby-universe-select,
.lobby-form select.lobby-universe-select,
.lobby-select.lobby-universe-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 34px;
    padding: 0 40px 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(210, 217, 223, 0.22);
    background-color: rgba(17, 21, 25, 0.88);
    background-image:
        linear-gradient(45deg, transparent 50%, #dce2e7 50%),
        linear-gradient(135deg, #dce2e7 50%, transparent 50%),
        linear-gradient(180deg, rgba(70, 77, 84, 0.95) 0%, rgba(28, 32, 36, 0.95) 100%);
    background-position:
        calc(100% - 18px) 14px,
        calc(100% - 12px) 14px,
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
    color: #f6f8fa;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}

.lobby-universe-select:hover,
.lobby-form select.lobby-universe-select:hover,
.lobby-select.lobby-universe-select:hover {
    border-color: rgba(236, 241, 245, 0.34);
    filter: brightness(1.03);
}

.lobby-universe-select:focus,
.lobby-form select.lobby-universe-select:focus,
.lobby-select.lobby-universe-select:focus {
    outline: none;
    border-color: rgba(246, 249, 252, 0.42);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.22);
}

#universeLogin,
#heroUniversePicker,
#universe {
    min-width: 0;
}

@media (max-width: 980px) {
    .lobby-universe-toolbar {
        gap: 10px;
        align-items: flex-start;
    }
    .lobby-universe-toolbar .field {
        width: 100%;
        max-width: none;
    }
}


/* v13: restore old universe select body, only clean the dropdown arrow */
.lobby-universe-select,
.lobby-form select.lobby-universe-select,
.lobby-select.lobby-universe-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 31px !important;
    min-width: 0 !important;
    padding: 0 30px 0 9px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(207, 214, 220, 0.14) !important;
    background-color: rgba(18, 21, 26, 0.9) !important;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23cfd6dc' d='M1.41 0.59 6 5.17l4.59-4.58L12 2 6 8 0 2z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 10px 7px !important;
    color: #f6f7f9 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
    filter: none !important;
}

.lobby-universe-select:hover,
.lobby-form select.lobby-universe-select:hover,
.lobby-select.lobby-universe-select:hover {
    border-color: rgba(207, 214, 220, 0.24) !important;
    filter: none !important;
}

.lobby-universe-select:focus,
.lobby-form select.lobby-universe-select:focus,
.lobby-select.lobby-universe-select:focus {
    outline: none !important;
    border-color: rgba(232, 237, 241, 0.34) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
}

.lobby-universe-select::-ms-expand {
    display: none;
}

.lobby-universe-toolbar .field {
    min-width: 0;
    max-width: 240px;
}


/* v14: vraie skin du sélecteur univers + futurs univers */
body.light,
body#news.light,
body#rules.light,
body#register.light,
body#index.light {
    background: #05070a url('../../images/login/background.jpg') center center / cover no-repeat fixed;
}

.lobby-native-select {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.lobby-universe-picker {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 10;
}

.lobby-universe-picker.is-wide {
    min-width: 220px;
}

.lobby-picker-toggle {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 38px 8px 12px;
    border: 1px solid rgba(220, 225, 230, 0.20);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(52, 57, 62, 0.96) 0%, rgba(19, 22, 26, 0.96) 100%);
    color: #f7f9fb;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.22);
    position: relative;
}

.lobby-picker-toggle::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(240, 244, 248, 0.86);
    border-bottom: 2px solid rgba(240, 244, 248, 0.86);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .18s ease;
}

.lobby-universe-picker.is-open .lobby-picker-toggle::after {
    transform: translateY(-35%) rotate(225deg);
}

.lobby-picker-title {
    display: block;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-picker-meta {
    display: block;
    margin-top: 2px;
    color: #bfc7ce;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-picker-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(220, 225, 230, 0.18);
    border-radius: 12px;
    background: rgba(10, 12, 15, 0.98);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
    z-index: 1000;
}

.lobby-universe-picker.is-open .lobby-picker-menu {
    display: block;
}

.lobby-picker-option {
    width: 100%;
    display: block;
    padding: 9px 10px;
    margin: 0 0 4px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    color: #eef2f5;
    text-align: left;
    cursor: pointer;
}

.lobby-picker-option:last-child {
    margin-bottom: 0;
}

.lobby-picker-option:hover,
.lobby-picker-option.is-active {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
}

.lobby-picker-option-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.lobby-picker-option-meta {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #b7c0c8;
}

.lobby-future-card {
    overflow: visible;
}

.lobby-future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.lobby-future-universe {
    padding: 14px;
    border: 1px solid rgba(220, 225, 230, 0.13);
    border-radius: 14px;
    background: rgba(12, 15, 18, 0.46);
}

.lobby-future-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.lobby-future-date,
.lobby-future-status {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    color: #f3f5f7;
    background: rgba(255, 255, 255, 0.07);
}

.lobby-future-status {
    color: #d7ffd2;
    background: rgba(95, 185, 80, 0.14);
}

.lobby-future-universe h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 15px;
}

.lobby-future-universe p {
    margin: 6px 0 0;
    color: #cbd3da;
    font-size: 11px;
    line-height: 1.45;
}

.lobby-future-subtitle {
    color: #eef1f4 !important;
    font-weight: 700;
}

.lobby-future-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.lobby-future-stats span {
    display: inline-flex;
    gap: 4px;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    color: #cfd6dc;
    font-size: 10px;
}

.lobby-future-stats strong {
    color: #ffffff;
}

@media (max-width: 980px) {
    .lobby-universe-picker.is-wide {
        min-width: 0;
    }
}

/* Lobby account dashboard */
.lobby-success {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(110, 220, 120, 0.28);
    border-radius: 10px;
    color: #d8ffd8;
    background: rgba(50, 150, 70, 0.13);
    font-size: 12px;
}

.lobby-account-universe-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.lobby-account-universe-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(220, 225, 230, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.lobby-account-universe-row strong,
.lobby-account-universe-row span {
    display: block;
}

.lobby-account-universe-row strong {
    color: #fff;
    font-size: 13px;
}

.lobby-account-universe-row span {
    margin-top: 3px;
    color: #b8c1ca;
    font-size: 11px;
}

.lobby-social-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 16px;
}

.lobby-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(220, 225, 230, 0.16);
    border-radius: 10px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
    font-size: 12px;
    font-weight: 700;
}

.lobby-social-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 560px) {
    .lobby-account-universe-row {
        grid-template-columns: 1fr;
    }

    .lobby-social-row {
        grid-template-columns: 1fr;
    }
}

/* v16 HotGame lobby dashboard */
.lobby-hotgame-shell .lobby-main {
    max-width: 1120px;
}

.lobby-hotgame-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 12px;
}

.lobby-global-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(95px, 1fr));
    gap: 8px;
    min-width: 420px;
}

.lobby-global-stat {
    padding: 10px;
    border: 1px solid rgba(220, 225, 230, 0.13);
    border-radius: 12px;
    background: rgba(12, 15, 18, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.lobby-global-stat span,
.lobby-global-stat small {
    display: block;
    color: #aeb8c1;
    font-size: 10px;
    line-height: 1.2;
}

.lobby-global-stat strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
}

.lobby-universe-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 12px;
}

.lobby-hot-universe-card {
    position: relative;
    overflow: hidden;
    padding: 13px;
    border: 1px solid rgba(220, 225, 230, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        rgba(12, 15, 18, 0.58);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.lobby-hot-universe-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(190, 205, 220, 0.12), transparent 42%);
    pointer-events: none;
}

.lobby-hot-universe-card.is-owned {
    border-color: rgba(175, 220, 125, 0.22);
}

.lobby-hot-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.lobby-hot-card-top .lobby-status-pill {
    position: static;
}

.lobby-mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    color: #e8edf2;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    white-space: nowrap;
}

.lobby-hot-universe-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.lobby-hot-universe-card p {
    position: relative;
    z-index: 1;
    margin: 6px 0 10px;
    color: #bfc8d0;
    font-size: 11px;
    line-height: 1.45;
}

.lobby-player-name {
    position: relative;
    z-index: 1;
    margin: 9px 0;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    color: #cdd5dc;
    font-size: 11px;
}

.lobby-player-name strong {
    color: #ffffff;
}

.lobby-hot-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0;
}

.lobby-hot-stats span {
    display: block;
    padding: 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    color: #aeb7bf;
    font-size: 10px;
}

.lobby-hot-stats strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 14px;
}

.lobby-profile-mini strong,
.lobby-profile-mini span {
    display: block;
}

.lobby-profile-mini strong {
    color: #ffffff;
    font-size: 15px;
}

.lobby-profile-mini span {
    margin-top: 2px;
    color: #aeb7bf;
    font-size: 11px;
    word-break: break-all;
}

.lobby-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 110, 110, 0.28);
    border-radius: 10px;
    color: #ffd8d8;
    background: rgba(150, 50, 50, 0.13);
    font-size: 12px;
}

@media (max-width: 980px) {
    .lobby-hotgame-hero {
        grid-template-columns: 1fr;
    }

    .lobby-global-stats {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .lobby-global-stats,
    .lobby-hot-stats,
    .lobby-universe-board {
        grid-template-columns: 1fr;
    }
}

/* v17 / HotGame V4: affichage simplifié, infos serveur + boutons accès */
.lobby-hotgame-v4 .lobby-topbar-right .lobby-topbar-stat:not(:last-child) {
    margin-right: 2px;
}

.lobby-hotgame-v4 .lobby-global-stats {
    grid-template-columns: repeat(4, minmax(105px, 1fr));
}

.lobby-hotgame-v4 .lobby-server-info-card .lobby-title-row {
    margin-bottom: 10px;
}

.lobby-hotgame-v4 .lobby-info-table {
    min-width: 820px;
}

.lobby-hotgame-v4 .lobby-info-table td strong {
    color: #ffffff;
}

.lobby-hotgame-v4 .lobby-info-table td small {
    display: block;
    margin-top: 3px;
    color: #aeb7bf;
    font-size: 10px;
    line-height: 1.25;
}

.lobby-btn.is-access,
a.lobby-btn.is-access {
    background: linear-gradient(180deg, rgba(112, 190, 75, 0.98) 0%, rgba(42, 112, 43, 0.98) 100%);
    border-color: rgba(170, 245, 120, 0.36);
    color: #f1ffe8;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.36);
}

.lobby-btn.is-access:hover,
a.lobby-btn.is-access:hover {
    color: #ffffff;
    filter: brightness(1.08);
}

.lobby-btn.is-disabled,
span.lobby-btn.is-disabled {
    background: linear-gradient(180deg, rgba(95, 99, 104, 0.76) 0%, rgba(48, 51, 55, 0.76) 100%);
    border-color: rgba(190, 195, 200, 0.14);
    color: #c0c6cc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.72;
}

.lobby-btn.is-table-action {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 10px;
    white-space: nowrap;
    box-shadow: none;
}

.lobby-hotgame-v4 .lobby-table th:last-child,
.lobby-hotgame-v4 .lobby-table td:last-child {
    width: 112px;
}

@media (max-width: 980px) {
    .lobby-hotgame-v4 .lobby-global-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lobby-hotgame-v4 .lobby-info-table {
        min-width: 760px;
    }
}

/* v18 OAuth lobby buttons */
.lobby-social-btn.is-google,
.lobby-social-btn.is-facebook {
    position: relative;
    gap: 6px;
}

.lobby-social-btn.is-google::before,
.lobby-social-btn.is-facebook::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}
