/* ============================================================
   LUMOS — theme "Lumiere & Penombre"
   Palette limitee et coherente : encre profonde, bleu-ombre,
   ambre-lumiere, vert-objectif. Hierarchie par la lumiere.
   ============================================================ */
:root {
  --ink:        #04050b;   /* fond le plus profond */
  --ink-2:      #070a14;
  --panel:      rgba(12,16,28,.72);
  --panel-2:    rgba(255,255,255,.045);
  --line:       rgba(255,255,255,.10);
  --line-soft:  rgba(255,255,255,.07);

  --txt:        #d7def2;
  --txt-soft:   #8b93b8;
  --txt-faint:  #5a6488;

  --hider:      #8fa0ff;   /* ombres : bleu froid */
  --hider-deep: #4a6cff;
  --seeker:     #ffce5e;   /* chasseurs : ambre */
  --seeker-deep:#ffb443;
  --obj:        #7af2c8;   /* objectifs : vert-teal */
  --gold:       #ffd9a0;   /* xp / niveau */
  --danger:     #ff8a7a;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow: 0 30px 90px rgba(0,0,0,.6);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Segoe UI', system-ui, sans-serif;
  --violet: #6E56F7; --violet-2: #9b8cff; --rose: #F43F5E; --vio: #6E56F7; --vio-2: #9b8cff;
  --gold-l: #e8c878; --gold-d: #6f5723; --parch: #ece3cf; --wred: #9e2b22;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; user-select: text; }   /* la saisie reste selectionnable */
#acctCode { cursor: pointer; }                                       /* clic = afficher / masquer le code */
html, body { height: 100%; background: var(--ink); overflow: hidden; font-family: var(--font); color: var(--txt); }
#stage { height: 100%; width: 100%; }
canvas { background: #03040a; display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.hidden { display: none !important; }
/* splash de reconnexion : masque le menu et evite le flash du dashboard quand l'URL pointe un salon (#salon=) */
#bootSplash { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(1200px 720px at 50% -12%, #16203e 0%, var(--ink-2) 60%, var(--ink) 100%); }
html.boot-salon #bootSplash { display: flex; }
html.boot-salon #menu { display: none !important; }
#bootSplash .bsspin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--seeker); animation: bsspin .8s linear infinite; }
#bootSplash .bstxt { color: #8a8a92; letter-spacing: 1px; font-size: 14px; }
@keyframes bsspin { to { transform: rotate(360deg); } }
b { font-weight: 800; }

/* ===================== HUD ===================== */
.hud { position: fixed; top: 12px; left: 0; right: 0; display: flex; flex-direction: column;
  align-items: center; gap: 7px; pointer-events: none; z-index: 6; }
.hud .row { display: flex; align-items: center; gap: 12px; padding: 2px 8px; }   /* timer sans box : juste le texte (lisible grace au text-shadow) */
.role { font-weight: 800; font-size: 12px; letter-spacing: 1.6px; padding: 5px 13px; border-radius: 999px;
  background: rgba(255,255,255,.05); text-shadow: 0 2px 6px #000; }
.role.seeker { color: var(--seeker); box-shadow: inset 0 0 0 1px rgba(255,206,94,.5), 0 0 18px -6px var(--seeker); }
.role.hider  { color: var(--hider);  box-shadow: inset 0 0 0 1px rgba(143,160,255,.5), 0 0 18px -6px var(--hider); }
.timer { font-weight: 800; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .5px;
  color: #eef1fb; text-shadow: 0 2px 12px rgba(0,0,0,.7); padding-right: 4px; }
.timer.low { color: var(--danger); text-shadow: 0 0 18px rgba(255,138,122,.55); animation: dsPulse 1s ease infinite; }
.term { font-weight: 800; font-size: 14px; color: var(--obj); text-shadow: 0 2px 6px #000; }
.phase { font-size: 12.5px; color: var(--seeker-deep); text-shadow: 0 2px 6px #000; max-width: 32vw; }

.stam { display: none; }   /* remplacee par une jauge verticale dessinee a cote du joueur (render.js) */
#stamFill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--obj), #c8fff0); transition: width .12s; }
.powers { display: flex; gap: 8px; font-size: 12px; color: var(--txt-soft); }
.pw { background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); padding: 3px 10px; border-radius: 99px; }
.pw.rdy { color: var(--obj); box-shadow: inset 0 0 0 1px rgba(122,242,200,.45); }
.scores { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--txt-soft); max-width: 80vw; }
.scores .pl { background: rgba(255,255,255,.05); padding: 2px 9px; border-radius: 99px; }
.scores .pl.me { color: var(--hider); box-shadow: inset 0 0 0 1px rgba(143,160,255,.5); }

/* ===================== OVERLAYS ===================== */
.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; text-align: center; padding: 24px; z-index: 10; }
#menu { background: radial-gradient(1200px 720px at 50% -12%, #16203e 0%, var(--ink-2) 60%, var(--ink) 100%); overflow: hidden; }
#menu::before, #menu::after { content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  filter: blur(90px); opacity: .32; pointer-events: none; }
#menu::before { background: var(--hider-deep); left: -180px; top: -120px; animation: drift1 17s ease-in-out infinite alternate; }
#menu::after  { background: #b06a2e; right: -180px; bottom: -160px; animation: drift2 21s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-120px,-60px) scale(1.10); } }

.menupanel { position: relative; z-index: 1; width: min(880px, 94vw); max-height: 94vh; overflow: auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 28px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(9px); }
.brandrow { display: flex; align-items: center; gap: 12px; }
.brandrow .logo { font-size: 32px; filter: drop-shadow(0 0 14px rgba(255,210,120,.6)); }
.menupanel h1 { font-size: 54px; letter-spacing: 7px; margin: 0;
  background: linear-gradient(90deg, #cfe0ff, #fff 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 50px rgba(140,170,255,.32); }
.tag { color: var(--txt-soft); letter-spacing: 1px; margin-top: -6px; }
.sub { color: var(--txt-soft); max-width: 460px; line-height: 1.6; }

/* --- profil : niveau + xp + stats --- */
.profile { display: flex; align-items: center; gap: 16px; width: min(520px, 90vw);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 12px 16px; }
.lvlbadge { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
  background: radial-gradient(circle at 50% 35%, rgba(255,217,160,.25), rgba(255,217,160,.04));
  box-shadow: inset 0 0 0 2px rgba(255,217,160,.5), 0 0 22px -6px var(--gold); }
.lvlnum { font-size: 22px; font-weight: 800; color: var(--gold); }
.lvllab { font-size: 8.5px; letter-spacing: 1.5px; color: rgba(255,217,160,.7); margin-top: 1px; }
.pgcol { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.pgtop { display: flex; justify-content: space-between; font-size: 12px; }
.pgtop #lvlTxt { font-weight: 800; color: var(--gold); }
.xptxt { color: var(--txt-soft); }
.xpbar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-soft); }
#xpFill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--seeker-deep), var(--gold)); transition: width .4s ease; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--txt-soft); }

/* --- pseudo + mute --- */
.namerow { display: flex; align-items: center; gap: 8px; }
input#nameIn { font: inherit; font-size: 16px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: #eef1fb; text-align: center; width: 240px; }
input#nameIn:focus { outline: none; border-color: var(--hider-deep); box-shadow: 0 0 0 3px rgba(74,108,255,.18); }
.mute { font-size: 18px; width: 46px; height: 46px; flex: 0 0 auto; padding: 0; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--txt); box-shadow: none; }
.mute:hover { background: rgba(255,255,255,.12); transform: none; }

/* --- selection de classes --- */
.pickwrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.pickcol { display: flex; flex-direction: column; gap: 10px; }
.pickttl { font-size: 13px; font-weight: 800; letter-spacing: 2px; padding-bottom: 6px;
  border-bottom: 2px solid currentColor; width: fit-content; }
.hd-h { color: var(--hider); } .hd-s { color: var(--seeker); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cls { position: relative; display: flex; align-items: center; gap: 10px; width: 215px; padding: 9px 10px; border-radius: var(--r-md);
  background: var(--panel-2); border: 1px solid var(--line); cursor: pointer;
  transition: transform .12s, background .12s, box-shadow .12s; }
.cls:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); }
.cls.sel { border-color: var(--cc); background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 1.5px var(--cc), 0 8px 24px -8px var(--cc); transform: translateY(-2px); }
.cls .ci { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cls .cinfo { flex: 1; min-width: 0; text-align: left; }
.cls .cn { font-weight: 800; font-size: 13.5px; }
.cls .cd { font-size: 10.5px; color: var(--txt-soft); line-height: 1.25; }
.cls .ck, .cls .lk { position: absolute; top: 6px; right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  padding: 2px 6px; border-radius: 99px; }
.cls .ck { color: var(--txt-soft); background: rgba(255,255,255,.07); }
.cls .lk { color: var(--gold); background: rgba(255,217,160,.12); }
.cls .pr { position: absolute; top: 6px; right: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  padding: 2px 6px; border-radius: 99px; color: var(--txt); background: rgba(255,255,255,.08); }
.cls.locked { cursor: not-allowed; opacity: .5; filter: grayscale(.5); }
.cls.locked:hover { transform: none; background: var(--panel-2); }
.cls.buyable { cursor: pointer; opacity: .8; }
.cls.buyable:hover { opacity: 1; border-color: var(--line); box-shadow: 0 0 0 1px rgba(255,255,255,.18); }

/* --- bouton principal --- */
button { font: inherit; font-weight: 800; font-size: 18px; padding: 14px 32px; border: none; border-radius: var(--r-md);
  cursor: pointer; color: #eef1fb; transition: transform .1s, box-shadow .1s; }
button:hover { transform: translateY(-2px); }
#joinBtn { margin-top: 6px; font-size: 19px; letter-spacing: .5px; padding: 14px 38px;
  background: linear-gradient(90deg, var(--hider-deep), #7a93ff); box-shadow: 0 10px 30px rgba(80,110,255,.45); }
#joinBtn:hover { box-shadow: 0 14px 38px rgba(80,110,255,.6); }
.keys { font-size: 13px; color: var(--txt-faint); }
.conn { font-size: 13px; color: var(--txt-soft); min-height: 18px; }
.conn.err { color: var(--danger); }

/* ===================== ecran de fin ===================== */
#roundEnd { gap: 16px; background: rgba(4,5,11,.9); backdrop-filter: blur(8px); padding: 24px; }
#roundEnd h2 { font-size: 30px; color: var(--seeker); text-shadow: 0 0 22px rgba(255,200,120,.4); margin: 0; }
/* preference de role (menu / lobby / Echap) : label + 3 pilules */
.rolerow { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.rolelab { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--txt-faint); }
.rolepick { display: flex; gap: 7px; }
.rolepick button, #lobbyScreen .rolepick button { height: auto; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--txt-soft); font-size: 12.5px; font-weight: 700; padding: 8px 13px; border-radius: 99px; transition: background .15s, color .15s, box-shadow .15s; }
.rolepick button:hover { background: rgba(255,255,255,.1); color: var(--txt); transform: none; }
.rolepick button.on, #lobbyScreen .rolepick button.on { background: var(--seeker); color: #0a0c16; box-shadow: 0 0 16px -3px var(--seeker); }
/* ecran "Choisis ton role" (draft entre les manches) : cartes + ronds joueurs qui glissent sous la carte choisie */
#pickScreen { gap: 20px; background: rgba(4,5,11,.92); backdrop-filter: blur(8px); padding: 24px; }
#pickScreen h2 { font-size: 25px; letter-spacing: 2px; color: var(--seeker); text-shadow: 0 0 20px rgba(255,200,120,.35); margin: 0; }
.pick-cards { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.pcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 132px; height: 150px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-soft); border-radius: 16px; color: var(--txt-soft);
  transition: transform .15s ease, box-shadow .2s, background .2s, color .2s; }
.pcard:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); color: var(--txt); }
.pcard .pcic { font-size: 42px; line-height: 1; }
.pcard b { font-size: 16px; letter-spacing: 1px; }
.pcard .pcsub { font-size: 11px; color: var(--txt-faint); }
.pcard.on { background: rgba(255,206,94,.12); box-shadow: inset 0 0 0 2px var(--seeker), 0 0 28px -6px var(--seeker); color: #fff; transform: translateY(-4px); }
.pick-avatars { position: relative; width: 100%; max-width: 480px; height: 54px; }
.pchip { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 32px; pointer-events: none;
  transition: transform .45s cubic-bezier(.34,1.25,.5,1); animation: pchFade .3s ease; }
.pchav { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #5a6bd8, #3a4a86); box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 0 0 2px rgba(255,255,255,.15); }
.pchip.me .pchav { background: linear-gradient(135deg, var(--seeker), var(--seeker-deep)); box-shadow: 0 0 14px -2px var(--seeker), inset 0 0 0 2px rgba(255,255,255,.35); }
.pchn { font-size: 9.5px; font-weight: 600; color: var(--txt-soft); max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip.me .pchn { color: #fff; }
.pick-count { font-size: 14px; font-weight: 700; color: var(--txt-faint); letter-spacing: 1px; }
@keyframes pchFade { from { opacity: 0; } }
/* scores : leaderboard epure, sans box par ligne */
#reScores { display: flex; flex-direction: column; width: min(340px, 88vw); }
.rerow { display: flex; justify-content: space-between; align-items: center; padding: 7px 6px; font-size: 15px;
  color: var(--txt-soft); border-bottom: 1px solid rgba(255,255,255,.06); }
.rerow:last-child { border-bottom: none; }
.rerow .rrk { display: inline-block; min-width: 16px; margin-right: 7px; color: var(--txt-faint); font-variant-numeric: tabular-nums; }
.rerow b { color: var(--obj); font-variant-numeric: tabular-nums; }
.rerow.me { color: #fff; } .rerow.me .rrk { color: var(--seeker); }
.rerow.win .rrk { color: var(--gold); }

/* ===================== toast ===================== */
.toast { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 200;   /* au-dessus des overlays (lobby/menu z-index 10), sinon le toast est cache */
  background: rgba(14,18,32,.92); border: 1px solid rgba(122,242,200,.5); color: #d8fff0;
  padding: 9px 18px; border-radius: 99px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  pointer-events: none; transition: opacity .3s, transform .3s; }
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(-8px); }
/* bandeau central temporaire (ouverture des sorties) : apparait au tremblement, disparait apres ~5s */
.exitbanner { position: fixed; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; pointer-events: none;
  opacity: 0; transition: opacity .4s ease; }
.exitbanner.show { opacity: 1; }
.exitbanner .ebtxt { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 5vw, 50px); line-height: 1.1; letter-spacing: 3px; text-align: center;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.85), 0 0 42px rgba(255,80,80,.4);
  transform: translateY(10px) scale(.96); transition: transform .45s cubic-bezier(.2,.9,.25,1.2); }
.exitbanner.show .ebtxt { transform: none; }

/* ===================== barre spectateur ===================== */
.specbar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 8;
  display: flex; align-items: center; gap: 10px; justify-content: center;
  background: rgba(10,13,24,.86); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.specbar .sname { font-size: 16px; font-weight: 800; min-width: 160px; text-align: center; letter-spacing: .3px; text-shadow: 0 2px 6px #000; }
.sarr { font: inherit; font-size: 22px; font-weight: 900; line-height: 1; color: var(--txt); cursor: pointer; padding: 0;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: var(--r-md);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: .12s; }
.sarr:hover { background: rgba(255,255,255,.18); transform: scale(1.08); }

/* ===================== responsive ===================== */
@media (max-width: 560px) {
  .menupanel h1 { font-size: 42px; letter-spacing: 4px; }
  .picks { grid-template-columns: 1fr; }
  .cls { width: 240px; }
  .profile { flex-direction: row; }
}

/* ===================== ecran "a terre" ===================== */
.downscreen { position: fixed; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center;
  pointer-events: none; text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(150,10,10,.22) 0%, rgba(90,0,0,.5) 60%, rgba(40,0,0,.8) 100%);
  box-shadow: inset 0 0 200px 40px rgba(160,0,0,.55);
  animation: dsPulse 1.7s ease-in-out infinite; }
@keyframes dsPulse { 0%,100% { opacity: .9; } 50% { opacity: 1; } }
.dsinner { animation: dsRise .25s ease-out; }
@keyframes dsRise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.dsicon { font-size: 66px; filter: drop-shadow(0 0 22px rgba(255,80,80,.6)); animation: dsBeat 1.7s ease-in-out infinite; }
@keyframes dsBeat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.downscreen h2 { font-size: 40px; letter-spacing: 5px; color: #ffe0e0; margin-top: 6px;
  text-shadow: 0 0 30px rgba(255,60,60,.75), 0 2px 8px #000; }
.dssub { color: #ffb6b6; font-size: 16px; margin-top: 10px; letter-spacing: 1px; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px #000; }

/* ===================== curseur de volume ===================== */
.soundrow { display: flex; align-items: center; gap: 10px; width: min(300px, 80vw); }
.soundrow .srlab { font-size: 14px; opacity: .8; }
#volSlider { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.12); outline: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-soft); }
#volSlider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--seeker); box-shadow: 0 0 10px -1px var(--seeker), 0 2px 6px rgba(0,0,0,.5); cursor: pointer; }
#volSlider::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%;
  background: var(--seeker); box-shadow: 0 0 10px -1px var(--seeker); cursor: pointer; }

/* ===================== menu Options (Echap, en jeu) ===================== */
#pauseMenu { background: rgba(4,5,11,.7); backdrop-filter: blur(6px); }
.pausepanel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 26px 30px; min-width: 320px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06); }
.pausepanel h2 { font-size: 24px; letter-spacing: 2px; color: var(--seeker); text-shadow: 0 0 18px rgba(255,200,120,.35); }
.pausepanel .soundrow { width: 280px; }
#resumeBtn { background: linear-gradient(90deg, var(--hider-deep), #7a93ff); box-shadow: 0 10px 30px rgba(80,110,255,.4); }
#quitBtn { color: #e89090; box-shadow: inset 0 0 0 1px rgba(255,90,90,.4); }
#quitBtn:hover { background: rgba(255,90,90,.14); color: #ff9a9a; }

/* ===================== recap XP (fin de manche) ===================== */
#reXp { display: flex; flex-direction: column; gap: 8px; width: min(360px, 88vw); margin-top: 4px; }
.xprecap { display: flex; flex-direction: column; gap: 5px; }
.xprow { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--txt-soft);
  padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.05);
  opacity: 0; transform: translateY(6px); animation: xpRowIn .35s ease forwards; }
.xprow:last-child { border-bottom: none; }
.xprow b { color: var(--gold); font-variant-numeric: tabular-nums; }
@keyframes xpRowIn { to { opacity: 1; transform: none; } }
.xptotal { text-align: center; font-size: 18px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(255,210,120,.4); }
.xpbar.big { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-soft); }
#reXpFill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--seeker-deep), var(--gold)); box-shadow: 0 0 14px -2px var(--gold); transition: width .08s linear; }
.xplvl { text-align: center; font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: .5px; }
.lvchip { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; font-size: 11px; font-weight: 800; color: #0a0c16; background: linear-gradient(135deg, var(--gold), var(--seeker-deep)); }

/* recap : detail par action + level up */
.xpct { font-style: normal; font-size: 11px; color: var(--txt-faint); margin-left: 4px; }
.xplvl.up { color: var(--obj); text-shadow: 0 0 18px rgba(122,242,200,.6); animation: dsBeat .5s ease 2; }

/* gain d'or (recap fin de manche) — texte epure, monochrome (l'emoji 🪙 apporte la couleur) */
.goldgain { text-align: center; font-size: 14px; font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.goldgain .gc { font-size: 15px; }
.goldgain .gtot { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--txt-faint); margin-top: 1px; letter-spacing: 0; }
.goldgain.pop { animation: goldPop .45s ease; }
@keyframes goldPop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }

/* monnaies (panneau compte) — inline, sans boite, comme la ligne de stats */
.currrow { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--txt-soft); }
.cur { display: inline-flex; align-items: baseline; gap: 6px; }
.cur b { font-size: 15px; font-weight: 800; color: var(--txt); font-variant-numeric: tabular-nums; }
.cur .curlbl { font-size: 11px; letter-spacing: .5px; color: var(--txt-faint); text-transform: uppercase; }

/* lignes d'options (menu Echap) */
.optline { display: flex; align-items: center; gap: 12px; width: 320px; }
.optline .optlab { flex: 0 0 122px; text-align: left; font-size: 13px; color: var(--txt-soft); }
.optline input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.12); outline: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-soft); }
.optline input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--seeker); box-shadow: 0 0 10px -1px var(--seeker); cursor: pointer; }
.optline input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--seeker); cursor: pointer; }

/* menu Echap : panneau defilable + pickers de classe in-game */
.pausepanel { max-height: 92vh; overflow: auto; }
.optpick { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.optpick .picks { display: flex; flex-direction: column; gap: 7px; }
.optpick .cls { width: 210px; }
.optnote { font-size: 12px; color: var(--seeker); opacity: .9; }

/* ===================== menu : boutons salons ===================== */
.menubtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
button.alt { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px var(--line); color: var(--txt); font-size: 16px; padding: 12px 20px; }
button.alt:hover { background: rgba(255,255,255,.15); }
button.ghost { background: none; box-shadow: none; color: var(--txt-soft); font-size: 14px; padding: 6px 14px; }
button.ghost:hover { color: var(--txt); transform: none; }
.joinrow { display: flex; gap: 8px; align-items: center; }
#codeIn { font: inherit; font-size: 15px; padding: 11px 14px; width: 150px; text-align: center; letter-spacing: 2px; text-transform: uppercase;
  border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #eef1fb; }
#codeIn:focus { outline: none; border-color: var(--hider-deep); }

/* ===================== salon d'attente ===================== */
.lobbypanel { gap: 12px; }
#lobbyCode { font-size: 15px; color: var(--txt); } #lobbyCode b { color: var(--seeker); letter-spacing: 3px; font-size: 20px; }
.lobbylist { display: flex; flex-direction: column; gap: 6px; width: min(420px, 88vw); }
.lbrow { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 8px 14px; font-size: 14px; }
.rdyon { color: var(--obj); font-weight: 800; } .rdyoff { color: var(--txt-faint); }
.lobbychat { width: min(420px, 88vw); display: flex; flex-direction: column; gap: 6px; }
.chatlog { height: 120px; overflow-y: auto; background: rgba(0,0,0,.28); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 13px; text-align: left; line-height: 1.5; color: var(--txt-soft); }
.chatlog b { color: var(--hider); }
.chatrow { display: flex; gap: 6px; }
.chatrow input { flex: 1; font: inherit; font-size: 14px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #eef1fb; }
.chatrow input:focus { outline: none; border-color: var(--hider-deep); }
.chatrow button { font-size: 14px; padding: 9px 16px; }

/* ===== salon d'attente : 2 colonnes, PLAT (separateurs, pas de cadres), fond identique au menu (#0a0a0c) ===== */
#lobbyScreen { background: #0a0a0c; }
#lobbyScreen .menupanel { background: none; border: none; box-shadow: none; backdrop-filter: none; padding: 28px 18px; gap: 18px; width: min(780px, 94vw); }
#lobbyScreen .menupanel::before { display: none !important; }
#lobbyScreen .lobbyhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
#lobbyScreen .lobbyhead .logo { color: #fff; filter: none; text-shadow: none; font-size: 24px; }
#lobbyScreen h1 { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 300; letter-spacing: 10px; font-size: 30px;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; -webkit-text-fill-color: #fff; text-shadow: none; }
#lobbyScreen #lobbyCode { color: #8a8a92; font-size: 13px; margin: 0; } #lobbyScreen #lobbyCode b { color: #fff; letter-spacing: 2px; font-size: 15px; }
#lobbyScreen .lobbycols { display: flex; gap: 26px; width: 100%; align-items: stretch; height: 300px; }   /* hauteur fixe : les listes scrollent au lieu de tout agrandir */
#lobbyScreen .lobbycol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#lobbyScreen #lobbyCode { display: inline-flex; align-items: center; gap: 6px; }
#lobbyScreen #lobbyCode b { color: #fff; letter-spacing: 2px; cursor: pointer; }
#lobbyScreen .rcbtn { height: 22px; min-width: 22px; padding: 0 5px; font-size: 12px; background: rgba(255,255,255,.06); border: none; border-radius: 6px; color: #cfcfd4; cursor: pointer; }
#lobbyScreen .rcbtn:hover { background: rgba(255,255,255,.14); transform: none; }
#lobbyScreen .lobbychat { position: relative; }
#lobbyScreen .emojitoggle { width: 40px; min-width: 40px; height: 40px; padding: 0; font-size: 18px; background: rgba(255,255,255,.06); border: none; border-radius: 8px; cursor: pointer; }
#lobbyScreen .emojitoggle:hover { background: rgba(255,255,255,.12); transform: none; }
#lobbyScreen .emojipop { position: absolute; bottom: 52px; left: 0; right: 0; z-index: 6; background: #14141a; border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.55); }
#lobbyScreen .emojitabs { display: flex; gap: 2px; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 4px; }
#lobbyScreen .emojitab { flex: 1; height: 30px; padding: 0; font-size: 16px; background: none; border: none; border-radius: 6px; cursor: pointer; opacity: .55; }
#lobbyScreen .emojitab:hover { background: rgba(255,255,255,.08); opacity: 1; transform: none; }
#lobbyScreen .emojitab.on { background: rgba(255,255,255,.12); opacity: 1; }
#lobbyScreen .emojigrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 168px; overflow-y: auto; }
#lobbyScreen .emojibtn { height: 30px; padding: 0; font-size: 17px; line-height: 1; background: none; border: none; border-radius: 6px; cursor: pointer; }
#lobbyScreen .emojibtn:hover { background: rgba(255,255,255,.12); transform: none; }
#lobbyScreen .colttl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8a8a92; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
#lobbyScreen .lobbylist { width: auto; flex: 1; gap: 0; overflow-y: auto; }
#lobbyScreen .lobbychat { width: auto; flex: 1; gap: 8px; min-height: 0; }
#lobbyScreen .lbrow { background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; padding: 10px 4px; }
#lobbyScreen .lvchip { background: rgba(255,255,255,.12); color: #fff; }
#lobbyScreen .rdyon { color: #fff; } #lobbyScreen .rdyoff { color: #6a6a72; }
#lobbyScreen .chatlog { flex: 1; height: auto; min-height: 0; overflow-y: auto; background: rgba(255,255,255,.02); border: none; border-radius: 8px; }
#lobbyScreen .chatlog b { color: #cfd6ff; }
#lobbyScreen .chatrow input { background: rgba(255,255,255,.05); border: none; border-radius: 8px; }
#lobbyScreen .chatrow input:focus { outline: none; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
#lobbyScreen .keys { color: #6a6a72; }
#lobbyScreen button { background: rgba(255,255,255,.06); border: none; color: #ececef; font-weight: 500; font-size: 14px; height: 44px; padding: 0 18px; border-radius: 10px; box-shadow: none; }
#lobbyScreen button:hover { background: rgba(255,255,255,.12); transform: none; }
#lobbyScreen #readyBtn { background: #fff; color: #0a0a0c; font-weight: 700; }
#lobbyScreen #readyBtn:hover { background: #e6e6e8; }
#lobbyScreen #leaveBtn { background: none; color: #8a8a92; }
#lobbyScreen #leaveBtn:hover { color: #fff; background: none; }
#lobbyScreen #lobbyChatSend { height: 40px; font-size: 13px; }
@media (max-width: 560px) { #lobbyScreen .lobbycols { flex-direction: column; height: auto; } #lobbyScreen .lobbylist { max-height: 150px; } #lobbyScreen .chatlog { height: 150px; } }

/* ===================== classement ===================== */
.lbtable { display: flex; flex-direction: column; gap: 3px; width: min(440px, 90vw); }
.lbhead, .lbrow2 { display: grid; grid-template-columns: 32px 1fr 64px 56px 56px; gap: 6px; align-items: center; padding: 7px 12px; font-size: 13px; }
.lbhead { color: var(--txt-faint); font-weight: 800; letter-spacing: .5px; border-bottom: 1px solid var(--line-soft); }
.lbrow2 { background: rgba(255,255,255,.04); border-radius: var(--r-sm); }
.lbrow2 span:first-child { color: var(--seeker); font-weight: 800; }
.lbrow2 span:nth-child(3) { color: var(--gold); font-weight: 800; }
.lbempty { color: var(--txt-faint); padding: 20px; font-size: 14px; }

/* ===================== chat en jeu ===================== */
.chatbox { position: fixed; left: 14px; bottom: 14px; z-index: 7; width: min(340px, 60vw); pointer-events: none; }
.chatbox .chatlog { height: auto; max-height: 120px; background: rgba(6,8,14,.5); pointer-events: none; }
#gameChatIn { pointer-events: auto; width: 100%; margin-top: 6px; font: inherit; font-size: 14px; padding: 8px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--hider-deep); background: rgba(8,11,20,.92); color: #eef1fb; }
#gameChatIn:focus { outline: none; }
.chathint { font-size: 10.5px; color: var(--txt-faint); margin-top: 4px; opacity: .7; }

/* ===================== HUD v2 ===================== */
/* suivi d'objectif (pastilles) */
.objtrack { display: flex; align-items: center; gap: 9px; font-size: 13px;
  background: rgba(8,11,20,.5); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 14px; backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(0,0,0,.4); }
.objtrack:empty { display: none; }
.objexit { color: var(--obj); font-weight: 800; letter-spacing: .5px; }

/* badge de pouvoir + anneau de recharge */
.powerline { display: flex; align-items: center; gap: 10px; }
/* le badge E (touche pouvoir) est ancre en bas-centre de l'ecran = bouton d'action principal.
   Masque quand vide (a terre / spectateur) -> pas de conflit avec la specbar (bottom:16) ni le down-screen. */
.powerbadge { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 6; pointer-events: none; }
.powerbadge:empty { display: none; }
.pbring { width: 54px; height: 54px; border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--cc) var(--deg), rgba(255,255,255,.09) 0); }
.pbring::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #0b0e18; }
.pbring.rdy { box-shadow: 0 0 14px -2px var(--cc); }
.pbic { position: relative; z-index: 1; font-size: 22px; }
.pbkey { position: absolute; bottom: -4px; right: -4px; z-index: 2; font-size: 10px; font-weight: 800; color: #0a0c16; background: var(--cc); border-radius: 5px; padding: 0 5px; }
.pbcd { position: absolute; z-index: 2; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; }

/* feed d'evenements (haut-gauche) */
.feed { position: fixed; top: 14px; left: 14px; z-index: 7; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; pointer-events: none; max-width: 42vw; }
.feedline { background: rgba(8,11,20,.72); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700;
  color: var(--txt); box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: opacity .5s, transform .5s; }
.feedline.out { opacity: 0; transform: translateX(-10px); }

/* scoreboard (maintien Tab) */
.scoreboard { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(4,5,11,.55); backdrop-filter: blur(3px); pointer-events: none; }
.sbinner { width: min(560px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow); }
.sbhead, .sbrow { display: grid; grid-template-columns: 46px 1fr 48px 92px 56px; gap: 8px; align-items: center; padding: 6px 10px; font-size: 13.5px; }
.sbhead { color: var(--txt-faint); font-weight: 800; letter-spacing: .5px; border-bottom: 1px solid var(--line-soft); }
.sbrow { border-radius: var(--r-sm); }
.sbrow.me { background: rgba(143,160,255,.12); box-shadow: inset 0 0 0 1px rgba(143,160,255,.4); }
.sbrow span:last-child { color: var(--gold); font-weight: 800; }
.sbrow .st { font-style: normal; font-size: 11.5px; font-weight: 700; }
.st.alive { color: #7af2c8; } .st.dwn { color: #ffb45a; } .st.cau { color: #ff8a7a; } .st.esc { color: #6cff9b; }
.sbhint { font-size: 11px; color: var(--txt-faint); }

/* ===================== reveal du chasseur (debut de manche) ===================== */
.reveal { position: fixed; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center;
  pointer-events: none; background: radial-gradient(900px 600px at 50% 50%, #15103a 0%, #06040e 70%, #04030a 100%); }
.revealbox { text-align: center; }
.reveallbl { font-family: var(--mono); font-size: 13px; letter-spacing: 5px; color: var(--violet-2); margin-bottom: 10px; }
.reveallname { font-family: var(--display); font-weight: 900; font-size: 46px; letter-spacing: 4px; color: #fff; min-height: 56px; }
.reveallname.rolling { color: var(--violet-2); opacity: .85; }
.reveallname.locked { color: var(--seeker); text-shadow: 0 0 36px rgba(255,206,94,.6); animation: revealPop .35s ease; }
@keyframes revealPop { 0% { transform: scale(.8); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* ============================================================
   ACCUEIL v5 — cartes de classe compactes + detail separe
   ============================================================ */
.loadout .picks, .optpick .picks { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 8px; }
.cls { display: flex; align-items: center; gap: 8px; width: auto; padding: 8px 10px; border-radius: 10px; position: relative;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.cls .ci { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cls .cn { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls:hover { background: rgba(255,255,255,.09); }
.cls.sel { border-color: var(--cc); background: rgba(255,255,255,.10); box-shadow: 0 0 0 1.5px var(--cc), 0 0 18px -8px var(--cc); }
.cls.locked { opacity: .5; filter: grayscale(.5); cursor: not-allowed; }
.cls.locked:hover { background: rgba(255,255,255,.04); }
.cls .lk { position: absolute; top: 3px; right: 6px; font-size: 9px; color: var(--gold); }
.clsdetail { min-height: 30px; margin-top: 7px; font-size: 12px; color: var(--txt-soft); line-height: 1.4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.clsdetail .cdesc { flex: 1; min-width: 120px; }
.clsdetail .cdcd { font-family: var(--mono); font-size: 10.5px; color: var(--vio-2); background: rgba(110,86,247,.14); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

/* ============================================================
   ACCUEIL — REFONTE PROPRE (scopé #menu, prioritaire sur tout)
   N&B cohérent · pas de panneau (plein écran) · dashboard + sous-panneaux
   ============================================================ */
#menu { background: #0a0a0c; }
#menu::before, #menu::after { display: none !important; }
#menu .menupanel { width: min(900px, 92vw); max-height: 96vh; overflow: auto; background: none; border: none; box-shadow: none;
  backdrop-filter: none; padding: 30px 18px; gap: 18px; display: flex; flex-direction: column; align-items: center; }
#menu .menupanel::before { display: none !important; }

#menu .menuhead { display: flex; align-items: center; gap: 12px; }
#menu .menuhead .logo { color: #fff; filter: none; } #menu .menuhead .logo svg { width: 24px; height: 24px; }
#menu h1 { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 300; letter-spacing: 14px; font-size: 46px; margin: 0;
  color: #fff; background: none; -webkit-background-clip: border-box; -webkit-text-fill-color: #fff; text-shadow: none; }
#menu .tag { color: #8a8a92; letter-spacing: 4px; font-size: 12px; font-weight: 400; font-family: 'Segoe UI', system-ui, sans-serif; margin: 0; }

/* dashboard (tuiles, sans fond de panneau) */
#menu .dash { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 14px; width: 100%; }
#menu .tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 5px; min-height: 128px;
  padding: 18px; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); color: #ececef;
  cursor: pointer; text-align: left; transition: background .12s, border-color .12s, transform .12s; font-family: inherit; }
#menu .tile:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
#menu .tile .tic { color: #dcdce2; display: flex; } #menu .tile .tic svg { width: 26px; height: 26px; }
#menu .tile b { font-size: 16px; font-weight: 600; }
#menu .tile .tmuted { font-size: 12px; color: #8a8a92; }
#menu .tile.big { grid-column: span 2; background: #fff; color: #0a0a0c; border: none; justify-content: center; }
#menu .tile.big .tic { color: #0a0a0c; } #menu .tile.big .tic svg { width: 32px; height: 32px; }
#menu .tile.big b { font-size: 22px; } #menu .tile.big .tmuted { color: #4a4a4a; }

/* sous-panneaux : même langage visuel */
#menu .subpanel { width: 100%; display: flex; flex-direction: column; gap: 16px; }
#menu .back { align-self: flex-start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: #cfcfd4;
  font-size: 13px; cursor: pointer; padding: 8px 14px; border-radius: 9px; }
#menu .back:hover { background: rgba(255,255,255,.1); color: #fff; transform: none; }

/* Mes classes : groupes en grille + grand panneau de lore en dessous */
#menu .csbody { display: flex; flex-direction: column; gap: 14px; width: 100%; }
#menu .cslist { width: 100%; display: flex; flex-direction: column; gap: 6px; max-height: none; }
#menu .grpttl { font-size: 11px; letter-spacing: 2px; color: #8a8a92; margin: 6px 0 2px; }
#menu .cslist .picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
#menu .cls { display: flex; align-items: center; gap: 9px; width: auto; padding: 10px 12px; border-radius: 10px; position: relative;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); cursor: pointer; transition: .12s; }
#menu .cls .ci { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 auto; }
#menu .cls .cn { font-size: 13.5px; font-weight: 500; color: #e7e7ea; }
#menu .cls:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.26); }
#menu .cls.sel { border-color: #fff; box-shadow: 0 0 0 1px #fff; background: rgba(255,255,255,.12); }
#menu .cls.locked { opacity: .45; filter: grayscale(1); cursor: not-allowed; }
#menu .cls .lk { position: absolute; top: 3px; right: 7px; font-size: 9px; color: #b8b8be; }
#menu .classlore { width: 100%; min-height: 120px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
#menu .lorehead { display: flex; align-items: center; gap: 14px; }
#menu .loreic { font-size: 40px; line-height: 1; } #menu .lorename { font-size: 22px; font-weight: 700; }
#menu .loremeta { font-size: 12px; color: #8a8a92; letter-spacing: 1px; margin-top: 2px; }
#menu .loredesc { font-size: 14px; line-height: 1.6; color: #c4c4ca; }
#menu .lorestory { font-size: 13px; line-height: 1.6; color: #9a9aa4; font-style: italic; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
#menu .loreadv, #menu .loredis { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.5; margin-top: 9px; align-items: flex-start; }
#menu .loreadv b, #menu .loredis b { flex: none; width: 18px; height: 18px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
#menu .loreadv b { background: rgba(95,227,160,.16); color: #5fe3a0; }
#menu .loredis b { background: rgba(255,120,110,.16); color: #ff8a7a; }
#menu .loreadv span, #menu .loredis span { color: #c4c4ca; }

/* Salon */
#menu .roomcol { width: min(420px, 90vw); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
#menu .roomcol .ordiv { display: flex; align-items: center; gap: 12px; color: #82828a; font-size: 11px; letter-spacing: 2px; }
#menu .roomcol .ordiv::before, #menu .roomcol .ordiv::after { content: ''; height: 1px; flex: 1; background: rgba(255,255,255,.14); }
#menu .joinrow { display: flex; gap: 8px; } #menu .joinrow #codeIn { flex: 1; }

/* Mon compte */
#menu #panelAccount { align-items: center; }
#menu #panelAccount .field { width: min(360px, 90vw); }
#menu .accrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
#menu .accrow .muted { color: #8a8a92; font-size: 13px; }

/* profil (cohérent N&B) */
#menu .profile { width: min(440px, 92vw); display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 16px; }
#menu .lvlbadge { width: 54px; height: 54px; border-radius: 50%; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
#menu .lvlnum { font-size: 22px; font-weight: 800; color: #fff; } #menu .lvllab { font-size: 8.5px; letter-spacing: 1.5px; color: #aaa; }
#menu .pgcol { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; }
#menu .pgtop { display: flex; justify-content: space-between; font-size: 12px; } #menu .pgtop #lvlTxt { font-weight: 700; color: #fff; } #menu .xptxt { color: #8a8a92; }
#menu .xpbar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; } #menu #xpFill { height: 100%; background: linear-gradient(90deg, #8a8a90, #fff); }
#menu .stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: #8a8a92; }

/* champs */
#menu .field { position: relative; display: block; }
#menu .field .fieldic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #777; display: flex; } #menu .field .fieldic svg { width: 18px; height: 18px; }
#menu .field #nameIn { width: 100%; height: 48px; padding: 0 14px 0 40px; border-radius: 10px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); color: #fff; text-align: left; box-shadow: none; font: inherit; font-size: 15px; }
#menu .field #nameIn:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
#menu #codeIn { height: 48px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-family: var(--mono, monospace); letter-spacing: 4px; text-transform: uppercase; text-align: center; box-shadow: none; font-size: 15px; }
#menu #codeIn:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }

/* boutons */
#menu .gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: #ececef; cursor: pointer; background: transparent; border: 1px solid rgba(255,255,255,.18); box-shadow: none; transition: .12s; font-family: inherit; }
#menu .gbtn .gic { display: flex; color: #cfcfd4; } #menu .gbtn .gic svg { width: 19px; height: 19px; }
#menu .gbtn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); transform: none; }
#menu .gbtn.primary { background: #fff; color: #0a0a0c; border: none; height: 52px; font-weight: 700; }
#menu .gbtn.primary .gic { color: #0a0a0c; } #menu .gbtn.primary:hover { background: #e6e6e8; }
#menu .mute { width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 18px; cursor: pointer; }
#menu .conn { color: #8a8a92; font-size: 13px; min-height: 18px; } #menu .conn.err { color: #ff6b6b; }
#menu button:focus-visible, #menu input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===== Classement : aligné sur le style N&B ===== */
#leaderboard { background: rgba(8,8,10,.93); }
#leaderboard .menupanel { background: rgba(16,16,18,.97); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 90px rgba(0,0,0,.7); backdrop-filter: none; }
#leaderboard .menupanel::before { display: none !important; }
#leaderboard .logo { color: #fff; filter: none; }
#leaderboard h1 { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 300; letter-spacing: 8px; font-size: 32px;
  color: #fff; background: none; -webkit-text-fill-color: #fff; text-shadow: none; }
#leaderboard .lbhead { color: #8a8a92; }
#leaderboard .lbrow2 { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
#leaderboard .lbrow2 span:first-child { color: #cfcfd4; }
#leaderboard .lbrow2 span:nth-child(3) { color: #fff; }
#leaderboard .lbempty { color: #8a8a92; }
#leaderboard #lbClose { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; box-shadow: none; }
#leaderboard #lbClose:hover { background: rgba(255,255,255,.15); }

/* ===== Mes classes : 2 colonnes (liste | grand lore) ===== */
#menu .csbody { display: grid; grid-template-columns: minmax(230px, 290px) 1fr; gap: 16px; align-items: stretch; }
#menu .cslist { width: auto; }
#menu .cslist .picks { grid-template-columns: 1fr; }
#menu .classlore { height: 100%; min-height: 240px; }
@media (max-width: 760px) { #menu .csbody { grid-template-columns: 1fr; } #menu .classlore { min-height: 140px; } }

/* ===== Mes classes — version épurée (peu de bordures, mieux structurée) ===== */
#menu .csbody { display: grid; grid-template-columns: minmax(210px, 268px) 1fr; gap: 0; align-items: stretch; }
#menu .cslist { border-right: 1px solid rgba(255,255,255,.08); padding: 0 16px 0 0; gap: 2px; }
#menu .cslist .picks { grid-template-columns: 1fr; gap: 2px; }
#menu .grpttl { font-size: 10.5px; letter-spacing: 2px; color: #777; margin: 12px 0 4px; }
#menu .grpttl:first-child { margin-top: 0; }
#menu .cls { background: none; border: none; border-radius: 8px; padding: 9px 10px; gap: 10px; }
#menu .cls:hover { background: rgba(255,255,255,.06); border: none; }
#menu .cls.sel { background: rgba(255,255,255,.13); border: none; box-shadow: none; }
#menu .cls .ci { background: transparent !important; box-shadow: none; width: 22px; height: 22px; font-size: 16px; border-radius: 0; }
#menu .cls .cn { color: #d6d6dc; }
#menu .cls.sel .cn { color: #fff; }
#menu .cls .lk { color: #9a9aa0; }
#menu .classlore { border: none; background: none; border-radius: 0; padding: 2px 0 2px 24px; min-height: auto; justify-content: flex-start; gap: 16px; }
#menu .lorehead { gap: 16px; align-items: center; }
#menu .loreic { font-size: 50px; }
#menu .lorename { font-size: 25px; }
#menu .loremeta { color: #8a8a92; }
#menu .loredesc { font-size: 15px; line-height: 1.65; color: #c8c8ce; max-width: 44ch; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { #menu .csbody { grid-template-columns: 1fr; } #menu .cslist { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 0 12px; } #menu .classlore { padding: 14px 0 0; } }

/* ===== Mon compte — sans cadre ===== */
#menu #panelAccount .profile { background: none; border: none; padding: 0; gap: 16px; }
#menu #panelAccount { gap: 20px; }

/* ===== Classement — sans boîte, tableau épuré ===== */
#leaderboard .menupanel { background: none; border: none; box-shadow: none; backdrop-filter: none; }
#leaderboard .menupanel::before { display: none !important; }
#leaderboard .lbtable { width: min(460px, 92vw); }
#leaderboard .lbhead { color: #777; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 10px; }
#leaderboard .lbrow2 { background: none; border: none; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; padding: 9px 12px; }
#leaderboard .lbrow2:hover { background: rgba(255,255,255,.04); }

/* ===== Mon compte : code de récupération ===== */
#menu .acctcode { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: #8a8a92; }
#menu .acctcode b { font-family: var(--mono, monospace); letter-spacing: 3px; font-size: 18px; color: #fff; }
#menu .acctcode .gbtn, #menu .recoverrow .gbtn { height: 40px; padding: 0 14px; font-size: 13px; }
#menu .recoverrow { display: flex; gap: 8px; align-items: center; justify-content: center; width: min(360px, 90vw); }
#menu .recoverrow #recoverIn { flex: 1; height: 40px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-family: var(--mono, monospace); letter-spacing: 4px; text-transform: uppercase; text-align: center; }
#menu .recoverrow #recoverIn:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
#menu .accnote { font-size: 11.5px; color: #6a6a72; max-width: 360px; text-align: center; }

/* Mon compte : pseudo en lecture seule */
#menu .acctline { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(360px,90vw);
  padding: 12px 16px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
#menu .acctline .acctlbl { font-size: 12px; letter-spacing: 1px; color: #8a8a92; }
#menu .acctline b { font-size: 16px; color: #fff; }
