
.lobby-brand {
  align-items: center;
  gap: 20px;
}

.lobby-brand__logo {
  flex: none;
  width: min(360px, 42vw);
}

.lobby-brand__logo-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(73, 173, 182, 0.08));
}

.lobby-brand__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lobby-brand .hs-brand__titre {
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: 0.06em;
}

.lobby-brand .hs-brand__code {
  font-size: 10px;
  letter-spacing: 0.14em;
}

.lobby-brand__guides {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.lobby-ai-button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(73, 173, 182, .68);
  background: rgba(73, 173, 182, .09);
  color: var(--hs-accent);
  cursor: pointer;
  font-family: var(--hs-font-titre);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lobby-ai-button:hover {
  background: rgba(73, 173, 182, .17);
  box-shadow: 0 0 18px rgba(73, 173, 182, .09);
}

.lobby-ai-help { display:grid; gap:18px; }
.lobby-ai-help__intro { margin:0; color:var(--hs-texte-muted); }
.lobby-ai-help__steps { display:grid; gap:10px; margin:0; padding:0; list-style:none; counter-reset:ai-step; }
.lobby-ai-help__steps li { counter-increment:ai-step; position:relative; padding:12px 14px 12px 48px; border:1px solid #223330; background:rgba(10,20,19,.62); }
.lobby-ai-help__steps li::before { content:counter(ai-step); position:absolute; left:14px; top:12px; color:var(--hs-accent); font:600 16px var(--hs-font-titre); }
.lobby-ai-help__label { display:block; margin-bottom:5px; color:var(--hs-secondaire); font:600 10px var(--hs-font-titre); letter-spacing:.08em; text-transform:uppercase; }
.lobby-ai-help__copy { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:stretch; }
.lobby-ai-help__value { margin:0; padding:10px 12px; overflow-wrap:anywhere; border:1px solid #273936; background:#081110; color:#c4c0ae; font:11px/1.55 var(--hs-font-mono); white-space:pre-wrap; }
.lobby-ai-help__note { margin:0; padding-top:12px; border-top:1px solid #22302f; color:var(--hs-texte-muted); font-size:12px; }

/* ==========================================================================
   2256 : HOMO SYNTHÉSIS — LOBBY
   Uniquement la mise en page propre au lobby.
   ========================================================================== */

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

.lobby__principal {
  min-width: 0;
  width: 80%;
  margin: auto;
}

.lobby__aside {
  position: sticky;
  top: 18px;
}

.lobby__entry-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lobby__form {
  max-width: 470px;
  margin-top: 22px;
}

.lobby__section {
  margin-top: 18px;
}

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

.lobby__role-grid .hs-btn {
  min-height: 58px;
}

.lobby__cards {
  display: grid;
  gap: 10px;
}

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

.lobby__session {
  box-shadow: var(--hs-glow);
}

.lobby__invitation {
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: var(--hs-glow);
}

.lobby__invitation-body {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lobby__invitation-qr {
  width: min(100%, 240px);
  aspect-ratio: 1;
  padding: 10px;
  background: #fcfbe4;
}

.lobby__invitation-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lobby__scan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lobby__scan-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lobby-scanner {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lobby-scanner__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 8, 8, .88);
}

.lobby-scanner__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 18px;
  border: 1px solid #2b4441;
  background: #0b1514;
  box-shadow: var(--hs-glow);
}

.lobby-scanner__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lobby-scanner__camera {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #050a0a;
}

.lobby-scanner__camera video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lobby-scanner__cible {
  position: absolute;
  inset: 18%;
  border: 1px solid var(--hs-accent);
  box-shadow: 0 0 0 999px rgba(3, 8, 8, .35);
}

.lobby-scanner__message {
  min-height: 1.5em;
  margin: 12px 0;
  color: var(--hs-texte-muted);
  font-family: var(--hs-font-mono);
  font-size: 11px;
}

.lobby__resume-participants {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #22302f;
}

.lobby__resume-participants h4 {
  margin: 0 0 8px;
  color: var(--hs-secondaire);
  font-family: var(--hs-font-titre);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby__launch {
  margin-top: 18px;
}

.lobby__save-status {
  margin-top: 10px;
  color: var(--hs-accent);
  font-family: var(--hs-font-mono);
  font-size: 10px;
}

.lobby__phase {
  margin-bottom: 14px;
  color: var(--hs-accent);
  font-family: var(--hs-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   Identifiants de session copiables
   -------------------------------------------------------------------------- */

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

.lobby__credential-value {
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
  overflow-wrap: anywhere;
}

.lobby__copy-button {
  flex: 0 0 auto;
  min-height: 0;
  padding: 5px 9px;
  font-size: 10px;
}


.lobby__credential-value::selection {
  background: Highlight;
  color: HighlightText;
}

@media (max-width: 980px) {
  .lobby-brand__logo {
    width: min(300px, 44vw);
  }
}

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

  .lobby__aside {
    position: static;
    order: -1;
  }

  .lobby__entry-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lobby-brand {
    gap: 12px;
  }

  .lobby-brand__logo {
    width: min(100%, 320px);
  }
}

@media (max-width: 620px) {
  .lobby__role-grid,
  .lobby__cards--characters {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   JOUEUR — VALIDATION PRÊT DANS LA COLONNE SESSION
   ========================================================================== */

.lobby__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lobby__ready {
  width: 100%;
  box-shadow: var(--hs-glow);
}

.lobby__ready .hs-panel__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lobby__ready #personnage-selectionne {
  margin: 0;
}

.lobby__ready #bouton-pret {
  width: 100%;
}

@media (max-width: 880px) {
  .lobby__aside {
    gap: 10px;
  }
}


/* ==========================================================================
   LOBBY — PRÉPARATION DES PERSONNAGES
   ========================================================================== */

.lobby__mj-summary {
  display: grid;
  gap: 7px;
}

.lobby__mj-actions,
.lobby__mj-validation {
  margin-top: 14px;
}

.lobby__mj-validation {
  display: flex;
  justify-content: flex-end;
}

.lobby-character-option {
  position: relative;
}

.lobby-character-option--reserved {
  opacity: .76;
}

.lobby-character-option__toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--hs-texte);
  font-family: var(--hs-font-mono);
  font-size: 10px;
  cursor: pointer;
}

.lobby-character-option__toggle input {
  width: 17px;
  height: 17px;
  accent-color: var(--hs-accent);
}

.lobby-character-option__reason {
  margin: 8px 0 0;
  color: #d06450;
  font-family: var(--hs-font-mono);
  font-size: 10px;
}

.lobby-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lobby-location-card__meta {
  margin-top: 8px;
  color: var(--hs-secondaire);
  font-family: var(--hs-font-mono);
  font-size: 10px;
}


/* --------------------------------------------------------------------------
   Modale de consultation
   -------------------------------------------------------------------------- */

.lobby-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lobby-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 8, .82);
  cursor: pointer;
}

.lobby-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #2b403d;
  background: #0d1514;
  box-shadow: var(--hs-glow);
}

.lobby-modal__header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #22302f;
  background: #0d1514;
}

.lobby-modal__body {
  padding: 20px;
}

.lobby-fiche {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 22px;
}

.lobby-fiche__portrait {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #22302f;
  background: #111c1b;
}

.lobby-fiche__portrait--character {
  aspect-ratio: 9 / 16;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.lobby-fiche__portrait--initials {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      #16211f 0 5px,
      #0f1918 5px 11px
    );
  color: var(--hs-texte-muted);
  font: 600 clamp(38px, 7vw, 76px) var(--hs-font-titre);
  letter-spacing: .08em;
}

.lobby-fiche__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.lobby-fiche__facts div {
  padding: 8px 0;
  border-bottom: 1px solid #1b2927;
}

.lobby-fiche__facts dt {
  color: var(--hs-secondaire);
  font-family: var(--hs-font-mono);
  font-size: 9px;
  text-transform: uppercase;
}

.lobby-fiche__facts dd {
  margin: 4px 0 0;
}

.lobby-fiche__section {
  margin-top: 20px;
}

.lobby-fiche__text {
  white-space: pre-line;
  line-height: 1.55;
}

.lobby-caste {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.lobby-caste__cell {
  padding: 10px 6px;
  border: 1px solid #22302f;
  text-align: center;
}

.lobby-caste__cell strong {
  display: block;
  color: var(--hs-accent);
  font-family: var(--hs-font-titre);
  font-size: 20px;
}

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

.lobby-equipment__card {
  padding: 12px;
  border: 1px solid #22302f;
  background: #101918;
}

.lobby-equipment__card h4 {
  margin: 0;
  color: var(--hs-texte);
}

.lobby-equipment__meta {
  margin: 5px 0 0;
  color: var(--hs-secondaire);
  font-family: var(--hs-font-mono);
  font-size: 9px;
}

.lobby-equipment__description {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
}

.lobby-scenario__scene {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #22302f;
  background: #101918;
}

.lobby-scenario__block {
  margin-top: 10px;
  white-space: pre-line;
}

@media (max-width: 760px) {
  .lobby-modal {
    padding: 10px;
  }

  .lobby-modal__dialog {
    max-height: calc(100vh - 20px);
  }

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

  .lobby-fiche__portrait {
    max-height: 320px;
  }

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


/* ==========================================================================
   NAVIGATION ARRIÈRE MJ — V1.2
   ========================================================================== */

.lobby__nav-back {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ==========================================================================
   PARTICIPANTS — MENU COMPACT
   ========================================================================== */

.session-participants-panel {
  position: absolute;
  z-index: 900;
  top: calc(100% + 7px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 8px;
  background: #0d1514;
  border: 1px solid #2a3a39;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .48);
}

.session-participants-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.session-participant {
  min-height: 42px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background: var(--hs-fond-sombre);
  border: 1px solid #1d2b2a;
}

.session-participant--empty {
  display: block;
  color: var(--hs-texte-muted);
  font-family: var(--hs-font-mono);
  font-size: 10px;
}

.session-participant__status {
  width: 8px;
  height: 8px;
  background: var(--hs-secondaire, #b16517);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(177, 101, 23, .22);
}

.session-participant__status--online {
  background: var(--hs-accent);
  box-shadow: 0 0 8px rgba(73, 173, 182, .35);
}

.session-participant__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-participant__text strong {
  overflow: hidden;
  color: var(--hs-texte);
  font-family: var(--hs-font-titre);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-participant__text small {
  overflow: hidden;
  color: var(--hs-texte-muted);
  font-family: var(--hs-font-mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.lobby-participants {
  position: relative;
  margin-top: 14px;
}

.lobby-participants__button {
  width: 100%;
  justify-content: center;
}

.lobby-participants__panel {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  margin-top: 7px;
}


/* ==========================================================================
   RÈGLES & UNIVERS — HEADER LOBBY
   ========================================================================== */

.lobby-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lobby-brand__identity {
  min-width: 0;
}

@media (max-width: 620px) {
  .lobby-brand {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   RESPONSIVE LOBBY — HEADER AÉRÉ
   ========================================================================== */

@media (max-width: 900px) {
  .lobby-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
    grid-template-areas:
      "logo identity"
      "help display";
    align-items: center;
    gap: 12px 16px;
  }

  .lobby-brand__logo {
    grid-area: logo;
    width: min(260px, 100%);
  }

  .lobby-brand__identity { grid-area: identity; }

  .lobby-brand > .lobby-brand__guides {
    grid-area: help;
    justify-self: start;
  }

  .lobby-brand > .hs-header-display-control {
    grid-area: display;
    justify-self: end;
    padding: 0;
  }

  .lobby__principal { width: 100%; }
}

@media (max-width: 560px) {
  .lobby-brand {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo logo"
      "identity identity"
      "help display";
    gap: 10px 12px;
  }

  .lobby-brand__logo { width: min(260px, 86vw); }
  .lobby-brand .hs-brand__titre { font-size: 26px; }
  .lobby-brand .hs-brand__code { font-size: 9px; }

  .hs-header-display-control--lobby .hs-fullscreen-button {
    min-height: 30px;
    padding: 5px 8px;
  }

  .lobby-brand__guides { flex-wrap:wrap; }
  .lobby-ai-help__copy { grid-template-columns:1fr; }
}


/* ==========================================================================
   LOBBY — 1 FENÊTRE / 2 FENÊTRES

   - Tant que la colonne Session est cachée : panneau principal centré à 80 %.
   - Dès que « Connexion active » est visible : retour à la disposition
     historique en deux colonnes, contenu principal + panneau Session.
   - Sur tablette/mobile : une seule colonne pour conserver la lisibilité.
   ========================================================================== */

@media (min-width: 901px) {
  .lobby:has(#infos-session:not(.hs-cache)) {
    grid-template-columns:
      minmax(0, 1fr)
      330px;
  }

  .lobby:has(#infos-session:not(.hs-cache))
  .lobby__principal {
    width: 100%;
    margin: 0;
  }

  .lobby:has(#infos-session:not(.hs-cache))
  .lobby__aside {
    min-width: 0;
  }
}


/* ==========================================================================
   LOBBY — FILTRES DES BIBLIOTHÈQUES DE PERSONNAGES
   ========================================================================== */

.lobby-character-filters {
  min-width: 0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.lobby-character-filters--mj {
  margin-top: 16px;
  margin-bottom: 4px;
}

.lobby-character-filters::before {
  content: "FILTRES :";
  flex: none;
  color: rgba(138, 154, 138, .70);
  font-family: var(--hs-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .7px;
  line-height: 1;
}

.lobby-character-filter-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.lobby-character-filter-group + .lobby-character-filter-group {
  padding-left: 8px;
  border-left: 1px solid rgba(38, 55, 53, .42);
}

.lobby-character-filter {
  min-height: 22px;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: rgba(166, 176, 173, .78);
  cursor: pointer;
  font-family: var(--hs-font-mono);
  font-size: 8px;
  line-height: 1;
  letter-spacing: .3px;
  white-space: nowrap;
}

.lobby-character-filter:hover {
  color: var(--hs-texte);
}

.lobby-character-filter:has(input:checked) {
  color: rgba(210, 235, 231, .96);
}

.lobby-character-filter input {
  width: 11px;
  height: 11px;
  margin: 0;
  border: 1px solid rgba(73, 173, 182, .30);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(73, 173, 182, .055);
  cursor: pointer;
}

.lobby-character-filter input:hover {
  border-color: rgba(73, 173, 182, .48);
  background: rgba(73, 173, 182, .075);
}

.lobby-character-filter input:checked {
  border-color: rgba(73, 173, 182, .58);
  background:
    linear-gradient(
      rgba(73, 173, 182, .22),
      rgba(73, 173, 182, .22)
    ),
    rgba(73, 173, 182, .08);
  box-shadow:
    inset 0 0 0 2px rgba(10, 18, 17, .92),
    inset 0 0 0 5px rgba(73, 173, 182, .70);
}

.lobby-character-filter--master {
  color: rgba(73, 173, 182, .84);
}

.lobby-character-filter--master input:indeterminate {
  border-color: rgba(73, 173, 182, .50);
  box-shadow:
    inset 0 0 0 2px rgba(10, 18, 17, .92),
    inset 0 0 0 4px rgba(73, 173, 182, .40);
}

@media (max-width: 620px) {
  .lobby-character-filters {
    align-items: flex-start;
  }

  .lobby-character-filter-group + .lobby-character-filter-group {
    padding-left: 0;
    border-left: 0;
  }
}


/* ==========================================================================
   LOBBY MJ — OUTILS PERSONNAGES DANS LA COLONNE SESSION
   ========================================================================== */

.lobby__character-tools {
  margin-top: 14px;
}

.lobby__character-tools .hs-panel__header {
  padding-bottom: 12px;
}

.lobby__character-tools .hs-panel__body {
  padding-top: 14px;
}

.lobby__character-tools .lobby-character-filters {
  margin: 0 0 14px;
  padding: 10px 10px 9px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(73, 173, 182, .18);
  background: rgba(73, 173, 182, .035);
}

.lobby__character-tools .lobby-character-filters::before {
  margin-bottom: 1px;
  color: rgba(73, 173, 182, .88);
  font-size: 9px;
  letter-spacing: .9px;
}

.lobby__character-tools .lobby-character-filter-group {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
}

.lobby__character-tools .lobby-character-filter-group + .lobby-character-filter-group {
  padding: 8px 0 0;
  border-left: 0;
  border-top: 1px solid rgba(38, 55, 53, .42);
}

.lobby__character-tools .lobby-character-filter {
  min-height: 26px;
  padding: 4px 5px;
  color: rgba(190, 201, 198, .86);
}

.lobby__character-tools .lobby-character-filter:has(input:checked) {
  color: rgba(225, 242, 238, .98);
  background: rgba(73, 173, 182, .055);
}

.lobby__character-tools .lobby-character-filter--master {
  grid-column: 1 / -1;
  justify-content: center;
  color: rgba(73, 173, 182, .96);
  font-weight: 500;
}

.lobby__character-tools-validate {
  width: 100%;
  min-height: 36px;
}

@media (max-width: 900px) {
  .lobby__character-tools {
    margin-top: 14px;
  }

  .lobby__character-tools .lobby-character-filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .lobby__character-tools .lobby-character-filter-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ==========================================================================
   LOBBY MJ — APERÇUS DES LIEUX + AGRANDISSEMENT
   ========================================================================== */

.lobby-location-previews {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.lobby-location-preview {
  width: 180px;
  min-width: 0;
}

.lobby-location-preview__label {
  margin-bottom: 5px;
  color: rgba(138, 154, 138, .70);
  font-family: var(--hs-font-mono);
  font-size: 8px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.lobby-location-preview__image {
  display: block;
  width: 180px;
  height: 101px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(73, 173, 182, .22);
  background: #080d0d;
  cursor: zoom-in;
  transition:
    border-color .15s ease,
    filter .15s ease,
    transform .15s ease;
}

.lobby-location-preview__image:hover,
.lobby-location-preview__image:focus-visible {
  border-color: rgba(73, 173, 182, .64);
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.lobby-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 7, .88);
  backdrop-filter: blur(3px);
}

.lobby-media-lightbox__frame {
  position: relative;
  max-width: min(92vw, 1500px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #08100f;
  border: 1px solid rgba(73, 173, 182, .38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .72);
}

.lobby-media-lightbox__image {
  display: block;
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lobby-media-lightbox__close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(73, 173, 182, .42);
  background: rgba(6, 12, 11, .88);
  color: var(--hs-texte);
  cursor: pointer;
  font-family: var(--hs-font-mono);
  font-size: 20px;
  line-height: 1;
}

.lobby-media-lightbox__label {
  padding: 7px 10px;
  color: rgba(166, 176, 173, .84);
  font-family: var(--hs-font-mono);
  font-size: 8px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .lobby-location-preview,
  .lobby-location-preview__image {
    width: 150px;
  }

  .lobby-location-preview__image {
    height: 84px;
  }
}
.lobby-portable-import {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(73, 173, 182, .22);
  background: rgba(7, 23, 24, .55);
}

.lobby-portable-import .hs-input { margin: 8px 0; }
.lobby-portable-import .hs-meta { margin: 8px 0 0; }
.lobby-portable-import--continuity { border-color: rgba(177, 101, 23, .34); }

.lobby-continuity-status {
  min-height: 0;
  margin: 0 0 16px;
}

.lobby-import-success {
  padding: 12px 14px;
  border: 1px solid rgba(73, 173, 182, .52);
  background: rgba(19, 67, 70, .38);
  color: var(--hs-accent);
  font-size: 11px;
  line-height: 1.45;
}

/* ==========================================================================\n   FRISE TEMPORELLE DE SESSION — prototype personnages temporels v1\n   ========================================================================== */
.lobby-timeline {
  grid-column: 1 / -1;
  width: 80%;
  min-width: 0;
  margin: 4px auto 4px;
  padding: 8px 2px 20px;
}
.lobby-timeline__head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}
.lobby-timeline__label {
  color: var(--hs-texte-muted);
  font-family: var(--hs-font-titre);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.lobby-timeline__year {
  color: var(--hs-accent);
  font-family: var(--hs-font-mono);
  font-size: 13px;
  font-weight: 500;
}
.lobby-timeline__track-wrap {
  position: relative;
  height: 20px;
}
.lobby-timeline__track {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 9px;
  height: 1px;
  background: #314542;
  pointer-events: none;
}
.lobby-timeline__landmark {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border: 1px solid rgba(73,173,182,.72);
  background: #0d1716;
}
.lobby-timeline__landmark--minor {
  width: 5px;
  height: 5px;
  top: -2px;
  border-color: rgba(73,173,182,.38);
}
.lobby-timeline__landmark--event {
  border-color: rgba(177,101,23,.82);
  background: rgba(177,101,23,.13);
}
.lobby-timeline__input {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.lobby-timeline__input::-webkit-slider-runnable-track { height: 1px; background: transparent; }
.lobby-timeline__input::-moz-range-track { height: 1px; background: transparent; }
.lobby-timeline__input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -5px;
  border: 1px solid var(--hs-accent);
  border-radius: 0;
  background: var(--hs-accent);
  box-shadow: 0 0 10px rgba(73,173,182,.24);
}
.lobby-timeline__input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid var(--hs-accent);
  border-radius: 0;
  background: var(--hs-accent);
  box-shadow: 0 0 10px rgba(73,173,182,.24);
}
.lobby-timeline__input:disabled { cursor: default; opacity: .72; }
.lobby-timeline__input:disabled::-webkit-slider-thumb { box-shadow: none; }
.lobby-timeline__input--marker-current::-webkit-slider-thumb {
  opacity: 0;
  box-shadow: none;
}
.lobby-timeline__input--marker-current::-moz-range-thumb {
  opacity: 0;
  box-shadow: none;
}
.lobby-timeline__marks {
  position: relative;
  height: 12px;
  margin: 0 8px;
  color: #5f7773;
  font: 8px var(--hs-font-mono);
}
.lobby-timeline__marks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.lobby-timeline__marks span:first-child { left: 0; transform: none; }
.lobby-timeline__marks span:last-child { transform: translateX(-100%); }
@media (max-width: 880px) {
  .lobby-timeline { width: 100%; }
}

/* ==========================================================================
   FRISE TEMPORELLE — jalons narratifs v2
   ========================================================================== */
.lobby-timeline__track-wrap {
  overflow: visible;
}


.lobby-timeline__marker {
  position: absolute;
  z-index: 6;
  top: 9px;
  width: 0;
  height: 0;
}

.lobby-timeline__marker-trigger {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #a66422;
  border-radius: 0;
  background: #0d1716;
  box-shadow: none;
  cursor: pointer;
}

.lobby-timeline__marker--major .lobby-timeline__marker-trigger {
  width: 12px;
  height: 12px;
  border-color: var(--hs-accent);
  background: #0d1716;
  box-shadow: 0 0 9px rgba(73, 173, 182, .16);
}

.lobby-timeline__marker--history .lobby-timeline__marker-trigger:hover,
.lobby-timeline__marker--history .lobby-timeline__marker-trigger:focus-visible,
.lobby-timeline__marker--history.is-active .lobby-timeline__marker-trigger,
.lobby-timeline__marker--history.is-current-year .lobby-timeline__marker-trigger {
  background: #a66422;
  border-color: #c57c31;
}

.lobby-timeline__marker--major .lobby-timeline__marker-trigger:hover,
.lobby-timeline__marker--major .lobby-timeline__marker-trigger:focus-visible,
.lobby-timeline__marker--major.is-active .lobby-timeline__marker-trigger,
.lobby-timeline__marker--major.is-current-year .lobby-timeline__marker-trigger {
  background: var(--hs-accent);
  border-color: var(--hs-accent);
  box-shadow: 0 0 12px rgba(73, 173, 182, .32);
}

.lobby-timeline__marker--upper .lobby-timeline__marker-trigger {
  top: -4px;
}

.lobby-timeline__marker--lower .lobby-timeline__marker-trigger {
  top: 4px;
}

.lobby-timeline__popover {
  position: absolute;
  z-index: 90;
  left: 0;
  bottom: 15px;
  width: max-content;
  min-width: 190px;
  max-width: 330px;
  padding: 11px 13px 12px;
  transform: translateX(-50%) translateY(3px);
  background: linear-gradient(180deg, rgba(20, 36, 34, .99), rgba(8, 15, 14, .995));
  border: 1px solid var(--hs-accent-ligne);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .13s ease, transform .13s ease, visibility .13s ease;
}

.lobby-timeline__marker--history .lobby-timeline__popover {
  border-color: rgba(166, 100, 34, .72);
}

.lobby-timeline__popover::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: #0d1c1a;
  border-right: 1px solid var(--hs-accent-ligne);
  border-bottom: 1px solid var(--hs-accent-ligne);
}

.lobby-timeline__marker--history .lobby-timeline__popover::before {
  border-right-color: rgba(166, 100, 34, .72);
  border-bottom-color: rgba(166, 100, 34, .72);
}

.lobby-timeline__popover--left {
  left: -2px;
  transform: translateX(0) translateY(3px);
}

.lobby-timeline__popover--left::before {
  left: 10px;
  transform: rotate(45deg);
}

.lobby-timeline__popover--right {
  left: auto;
  right: -2px;
  transform: translateX(0) translateY(3px);
}

.lobby-timeline__popover--right::before {
  left: auto;
  right: 6px;
  transform: rotate(45deg);
}

.lobby-timeline__marker:hover .lobby-timeline__popover--right,
.lobby-timeline__marker:focus-within .lobby-timeline__popover--right,
.lobby-timeline__marker.is-active .lobby-timeline__popover--right {
  transform: translateX(0) translateY(0);
}

.lobby-timeline__marker:hover .lobby-timeline__popover,
.lobby-timeline__marker:focus-within .lobby-timeline__popover,
.lobby-timeline__marker.is-active .lobby-timeline__popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.lobby-timeline__marker:hover .lobby-timeline__popover--left,
.lobby-timeline__marker:focus-within .lobby-timeline__popover--left,
.lobby-timeline__marker.is-active .lobby-timeline__popover--left {
  transform: translateX(0) translateY(0);
}

/* La croix doit pouvoir fermer une bulle même tant que le pointeur reste sur le marqueur. */
.lobby-timeline__marker.is-dismissed .lobby-timeline__popover {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lobby-timeline__popover-close {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #71807b;
  font-family: var(--hs-font-mono);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.lobby-timeline__popover-close:hover,
.lobby-timeline__popover-close:focus-visible {
  color: var(--hs-texte);
}

.lobby-timeline__marker--history .lobby-timeline__popover-close:hover,
.lobby-timeline__marker--history .lobby-timeline__popover-close:focus-visible {
  color: #c57c31;
}

.lobby-timeline__popover-title {
  display: block;
  margin: 0 0 7px;
  color: var(--hs-accent);
  font-family: var(--hs-font-titre);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lobby-timeline__marker--history .lobby-timeline__popover-title {
  color: #c57c31;
}

.lobby-timeline__popover-line,
.lobby-timeline__popover-link {
  display: block;
  color: #b7c2bd;
  font-family: var(--hs-font-mono);
  font-size: 9px;
  line-height: 1.45;
}

.lobby-timeline__popover-line + .lobby-timeline__popover-line,
.lobby-timeline__popover-link + .lobby-timeline__popover-link {
  margin-top: 3px;
}

.lobby-timeline__popover-link {
  color: var(--hs-texte);
  text-decoration: none;
}

.lobby-timeline__popover-link:hover,
.lobby-timeline__popover-link:focus-visible {
  color: var(--hs-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lobby-timeline__input {
  z-index: 4;
}

@media (max-width: 880px) {
  .lobby-timeline__popover {
    max-width: min(280px, calc(100vw - 38px));
  }
}
