/* ETHNOS R651 — Jeux : accès salon fiable, scroll du volet droit et page centrale. */
.ethnosGamesPromoR649{
  margin:18px 14px 28px;
  padding-top:18px;
  border-top:3px solid rgba(8,38,62,.82);
  display:grid;
  gap:16px;
}
.ethnosGamesPromoR649 h3,
.ethnosGamesPromoR649 p{margin:0;text-align:center;color:#071d36}
.ethnosGamesPromoR649 h3{font-size:clamp(21px,1.7vw,29px);line-height:1.05;font-weight:900}
.ethnosGamesPromoR649 p{font-size:14px;line-height:1.35;font-weight:700}
.ethnosGamesPromoButtonR649,
.ethnosGamesSurpriseR649{
  width:100%;border:1px solid rgba(7,29,54,.28);border-radius:16px;overflow:hidden;background:#fff;
  box-shadow:0 10px 22px rgba(7,29,54,.10);padding:0;display:block;position:relative;
}
.ethnosGamesPromoButtonR649{cursor:pointer;min-height:150px;margin-bottom:18px}
.ethnosGamesPromoButtonR649 img,
.ethnosGamesSurpriseR649 img{width:100%;height:150px;display:block;object-fit:cover}
.ethnosGamesPromoButtonR649::after{
  content:'JOUER';position:absolute;right:10px;bottom:10px;background:#08263e;color:#fff;border-radius:999px;
  padding:7px 13px;font-size:12px;font-weight:900;letter-spacing:.08em;box-shadow:0 5px 15px rgba(0,0,0,.22)
}
.ethnosGamesPromoButtonR649:focus-visible{outline:3px solid #2fc9d8;outline-offset:3px}
.ethnosGamesSurpriseCopyR649{background:#fff;padding:14px 12px;font-size:14px;line-height:1.25;font-weight:800;text-align:center;color:#071d36}
.ethnosGamesSurpriseCopyR649 small{display:block;margin-top:5px;font-size:11px;font-weight:700;color:#6b7987}

.memberWorkspace.ethnosGamesWorkspaceOpenR649{position:relative;overflow:hidden!important}
.memberWorkspace.ethnosGamesWorkspaceOpenR649>[data-ethnos-games-hidden-r649="1"]{display:none!important}
.ethnosGamesR649{
  position:absolute;inset:0;z-index:180;overflow:auto;overscroll-behavior:contain;
  background:linear-gradient(155deg,#061d32 0%,#0a3555 49%,#0d4965 100%);color:#f8fbff;
  padding:clamp(18px,2.5vw,36px);font-family:inherit;
}
.ethnosGamesR649 *{box-sizing:border-box}
.ethnosGamesR649 button{font:inherit}
.ethnosGamesTopR649{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.ethnosGamesKickerR649{margin:0 0 5px;color:#5ee8e3;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.ethnosGamesTitleR649{margin:0;font-size:clamp(36px,5vw,72px);line-height:.95;letter-spacing:-.035em}
.ethnosGamesIntroR649{max-width:760px;margin:10px 0 0;color:#cce0ef;font-size:15px;line-height:1.45}
.ethnosGamesCloseR649{width:44px;height:44px;flex:0 0 auto;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.09);color:#fff;font-size:27px;font-weight:800;cursor:pointer}
.ethnosGamesCloseR649:hover{background:rgba(255,255,255,.16)}

.ethnosGamesHeroR649{display:grid;grid-template-columns:1.25fr .82fr .82fr;gap:12px;margin:20px 0 26px;min-height:200px}
.ethnosGamesHeroR649 figure{margin:0;min-height:190px;position:relative;overflow:hidden;border-radius:18px;background:#071a2a;box-shadow:0 12px 25px rgba(0,0,0,.23)}
.ethnosGamesHeroR649 img{width:100%;height:100%;min-height:190px;object-fit:cover;display:block}
.ethnosGamesHeroR649 figure:first-child{grid-row:span 2}
.ethnosGamesHeroR649 figure:first-child img{min-height:392px}
.ethnosGamesHeroR649 figcaption{position:absolute;left:10px;bottom:10px;background:rgba(4,21,35,.78);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800}

.ethnosGamesTabsR649{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.ethnosGamesTabsR649 button{border:1px solid rgba(255,255,255,.20);border-radius:999px;background:rgba(255,255,255,.07);color:#d8e9f4;padding:9px 14px;cursor:pointer;font-weight:800}
.ethnosGamesTabsR649 button.isActive{background:#f3f8fb;color:#07213a;border-color:#f3f8fb}
.ethnosGamesPanelR649[hidden]{display:none!important}
.ethnosGamesSectionTitleR649{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:0 0 12px}
.ethnosGamesSectionTitleR649 h2{margin:0;font-size:24px}
.ethnosGamesSectionTitleR649 p{margin:0;color:#b9d2e2;font-size:13px}
.ethnosGamesGridR649{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ethnosGameCardR649{border:1px solid rgba(255,255,255,.16);border-radius:18px;background:rgba(255,255,255,.08);padding:17px;min-height:180px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 24px rgba(0,0,0,.13)}
.ethnosGameCardR649.isPlayable{background:rgba(248,251,255,.96);color:#081f37}
.ethnosGameCardR649 h3{margin:0;font-size:24px}
.ethnosGameCardR649 p{margin:0;line-height:1.42;font-size:13px;color:inherit;opacity:.82}
.ethnosGameMetaR649{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.72}
.ethnosGameActionsR649{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}
.ethnosGameActionsR649 button,.ethnosGamesPrimaryR649,.ethnosGamesSecondaryR649{border:0;border-radius:10px;padding:9px 13px;font-weight:900;cursor:pointer}
.ethnosGameActionsR649 button[data-game-play]{background:#f08b36;color:#fff;box-shadow:0 5px 12px rgba(160,74,0,.24)}
.ethnosGameActionsR649 button[data-game-rules]{background:#0a3555;color:#fff}
.ethnosGameCardR649:not(.isPlayable) .ethnosGameActionsR649 button{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.16)}
.ethnosGamesStatusR649{margin:0 0 14px;padding:11px 13px;border-radius:11px;background:rgba(255,255,255,.08);color:#d4e6f2;font-size:13px}
.ethnosGamesStatusR649.isError{background:#6f2131;color:#fff}

.ethnosGamesInviteListR649,.ethnosGamesMatchListR649{display:grid;gap:10px}
.ethnosGamesInviteR649,.ethnosGamesMatchRowR649{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(255,255,255,.08);padding:12px 14px}
.ethnosGamesInviteR649 strong,.ethnosGamesMatchRowR649 strong{display:block}
.ethnosGamesInviteR649 small,.ethnosGamesMatchRowR649 small{color:#b7cede}
.ethnosGamesInviteActionsR649{display:flex;gap:7px;flex-wrap:wrap}
.ethnosGamesInviteActionsR649 button{border:0;border-radius:9px;padding:8px 10px;font-weight:900;cursor:pointer}
.ethnosGamesInviteActionsR649 .accept{background:#8dd29f;color:#092419}
.ethnosGamesInviteActionsR649 .refuse{background:#f5d7da;color:#531826}
.ethnosGamesInviteActionsR649 .open{background:#f08b36;color:#fff}

.ethnosGamesLeaderboardToolsR649{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ethnosGamesLeaderboardToolsR649 select,.ethnosGamesLeaderboardToolsR649 button{border:1px solid rgba(255,255,255,.2);border-radius:10px;background:#f8fbff;color:#07213a;padding:9px 11px;font-weight:800}
.ethnosGamesLeaderboardToolsR649 button{cursor:pointer}
.ethnosGamesLeaderboardR649{width:100%;border-collapse:collapse;background:rgba(255,255,255,.06);border-radius:14px;overflow:hidden}
.ethnosGamesLeaderboardR649 th,.ethnosGamesLeaderboardR649 td{padding:10px 11px;text-align:left;border-bottom:1px solid rgba(255,255,255,.10);font-size:13px}
.ethnosGamesLeaderboardR649 th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#97c7dc}
.ethnosGamesLeaderboardR649 tr:last-child td{border-bottom:0}

.ethnosGamesReadyR649{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.ethnosGamesReadyCardR649{text-align:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:16px}
.ethnosGamesReadyCardR649 img{width:92px;height:92px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.22))}
.ethnosGamesReadyCardR649 strong{display:block;margin-top:7px;font-size:15px}
.ethnosGamesReadyCardR649 small{color:#b8cedc}

.ethnosGamesDialogR649{position:fixed;inset:0;z-index:10020;background:rgba(1,13,24,.70);display:grid;place-items:center;padding:22px}
.ethnosGamesDialogR649[hidden]{display:none!important}
.ethnosGamesDialogCardR649{width:min(660px,96vw);max-height:min(760px,90vh);overflow:auto;background:#f7f4ec;color:#071d36;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.38);padding:22px;position:relative}
.ethnosGamesDialogCardR649 h2{margin:0 45px 8px 0;font-size:28px}
.ethnosGamesDialogCardR649 p{line-height:1.48}
.ethnosGamesDialogCloseR649{position:absolute;right:13px;top:13px;width:37px;height:37px;border:0;border-radius:9px;background:#08263e;color:#fff;font-size:22px;cursor:pointer}
.ethnosGamesChoiceR649{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.ethnosGamesChoiceR649 button{border:1px solid #bcc8d0;border-radius:12px;background:#fff;color:#08213a;padding:14px;text-align:left;cursor:pointer;font-weight:900}
.ethnosGamesChoiceR649 button:hover{border-color:#0b8090}

.ethnosGamesBoardShellR649{display:grid;grid-template-columns:minmax(260px,560px) minmax(210px,1fr);gap:20px;align-items:start}
.ethnosGamesBoardAreaR649{background:#f4f0e7;border-radius:18px;padding:16px;color:#071d36;box-shadow:0 14px 32px rgba(0,0,0,.22)}
.ethnosGamesBoardHeaderR649{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.ethnosGamesBoardHeaderR649 h2{margin:0;font-size:23px}
.ethnosGamesBoardHeaderR649 small{color:#536a7a}
.ethnosTttBoardR649{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;aspect-ratio:1;width:min(100%,500px);margin:auto}
.ethnosTttBoardR649 button{border:0;border-radius:12px;background:#dfe8ea;color:#08263e;font-size:clamp(40px,7vw,82px);font-weight:900;cursor:pointer}
.ethnosTttBoardR649 button[data-value="1"]{color:#0e6f78}.ethnosTttBoardR649 button[data-value="2"]{color:#db6e35}
.ethnosConnectBoardR649{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;background:#0b5c8a;border-radius:17px;padding:11px;aspect-ratio:7/6;width:100%}
.ethnosConnectBoardR649 button{border:0;border-radius:50%;background:#e8eef0;min-width:0;aspect-ratio:1;cursor:pointer;box-shadow:inset 0 3px 7px rgba(0,0,0,.16)}
.ethnosConnectBoardR649 button[data-value="1"]{background:#f0b943}.ethnosConnectBoardR649 button[data-value="2"]{background:#dc5f55}
.ethnosGamesMatchInfoR649{display:grid;gap:10px}
.ethnosGamesMatchInfoR649 .info{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);border-radius:13px;padding:13px}
.ethnosGamesMatchInfoR649 button{border:0;border-radius:10px;padding:10px 12px;font-weight:900;cursor:pointer}
.ethnosGamesMatchInfoR649 .resign{background:#f5d7da;color:#5b1c27}
.ethnosGamesMatchInfoR649 .back{background:#f7f8f9;color:#08213a}

.ethnosGamesProfileButtonR649{width:100%;margin-top:8px;border:0;border-radius:10px;background:#0b526d;color:#fff;padding:10px 12px;font-weight:900;cursor:pointer}

@media(max-width:900px){
  .ethnosGamesHeroR649{grid-template-columns:1fr 1fr}.ethnosGamesHeroR649 figure:first-child{grid-column:1/-1;grid-row:auto}.ethnosGamesHeroR649 figure:first-child img{min-height:240px}
  .ethnosGamesGridR649{grid-template-columns:1fr}.ethnosGamesBoardShellR649{grid-template-columns:1fr}.ethnosGamesReadyR649{grid-template-columns:1fr}
}
@media(max-width:620px){
  .ethnosGamesR649{padding:15px}.ethnosGamesHeroR649{grid-template-columns:1fr}.ethnosGamesHeroR649 figure:first-child{grid-column:auto}.ethnosGamesHeroR649 img,.ethnosGamesHeroR649 figure:first-child img{min-height:170px;height:170px}
  .ethnosGamesChoiceR649{grid-template-columns:1fr}.ethnosGamesInviteR649,.ethnosGamesMatchRowR649{align-items:flex-start;flex-direction:column}
}


/* R651 — le scroll appartient au volet droit complet : membres + Jeux + Tchat Surprise. */
body.ethnosSalonR573Active .memberRightRail > .ethnosSalonR573Online{
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scrollbar-width:thin !important;
}
body.ethnosSalonR573Active .memberRightRail > .ethnosSalonR573Online .ethnosSalonR573OnlineList{
  flex:0 0 auto !important;
  min-height:auto !important;
  overflow:visible !important;
}
body.ethnosSalonR573Active .ethnosGamesPromoR649{
  margin-top:30px;
  margin-bottom:54px;
  padding-top:28px;
}
body.ethnosSalonR573Active .ethnosGamesSurpriseR649{margin-top:10px}

/* R651 — le Hub Jeux remplace réellement le bloc central du Salon. */
body.ethnosGamesOpenR651 .memberWorkspace > .ethnosSalonR573Chat,
body.ethnosGamesOpenR651 .memberWorkspace > .salonDrawerStage,
body.ethnosGamesOpenR651 .memberWorkspace > .salonCentralResultsWindow{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
body.ethnosGamesOpenR651 .memberWorkspace.ethnosGamesWorkspaceOpenR649{
  overflow:hidden !important;
  pointer-events:auto !important;
}
body.ethnosGamesOpenR651 .memberWorkspace > .ethnosGamesR649{
  display:block !important;
  visibility:visible !important;
  pointer-events:auto !important;
  opacity:1 !important;
}
