/* GeoChallenge Desktop D05: Party, Duel, Lobby. Existing controls and map stay in place. */
.gc-d05-rail,.gc-d05-maplabel{display:none}
@media (min-width:1080px) and (hover:hover) and (pointer:fine) {
 body.gc-d01-active.gc-d05-game,body.gc-d01-active.gc-d05-lobby{
  --gc-d05-pad:clamp(16px,2.1vw,34px);--gc-d05-gap:clamp(16px,1.45vw,25px);
  --gc-d05-rail:clamp(335px,29vw,445px);
  --gc-d05-side:calc(var(--gc-d05-pad) + var(--gc-d05-rail) + var(--gc-d05-gap));
 }
 body.gc-d01-active.gc-d05-game .app{max-width:none!important;background:#061725}
 body.gc-d01-active.gc-d05-game main.map-area{inset:0!important;overflow:visible!important;background:radial-gradient(ellipse at 30% 25%,#15475a,#092539 60%,#061521)}
 body.gc-d01-active.gc-d05-game #map{
  position:absolute!important;left:var(--gc-d05-pad)!important;right:var(--gc-d05-side)!important;
  top:var(--gc-d05-pad)!important;bottom:var(--gc-d05-pad)!important;
  width:calc(100% - var(--gc-d05-pad) - var(--gc-d05-side))!important;
  height:calc(100% - 2 * var(--gc-d05-pad))!important;
  border:1px solid #477f88;border-radius:23px;background:#0c273c;
  box-shadow:0 22px 52px #0007;
 }
 body.gc-d01-active.gc-d05-game #zooms{
  left:auto!important;right:calc(var(--gc-d05-side) + 18px)!important;
  bottom:calc(var(--gc-d05-pad) + 17px)!important;z-index:14;
 }
 body.gc-d01-active.gc-d05-game main.map-area>.gc-d05-maplabel{
  display:flex;position:absolute;top:calc(var(--gc-d05-pad) + 15px);left:calc(var(--gc-d05-pad) + 17px);
  z-index:5;border:1px solid #4c8c91;border-radius:999px;padding:8px 12px;
  font-size:11px;font-weight:850;color:#d6f9e9;background:#0b293de8;pointer-events:none;
 }
 body.gc-d01-active.gc-d05-game #geoPartyShell{pointer-events:none;inset:0}
 body.gc-d01-active.gc-d05-game #geoPartyGame{position:absolute;inset:0;pointer-events:none}
 body.gc-d01-active.gc-d05-game #gcDesktopMultiplayerRailD05{
  display:flex;position:absolute;flex-direction:column;pointer-events:none;
  top:var(--gc-d05-pad);right:var(--gc-d05-pad);bottom:var(--gc-d05-pad);width:var(--gc-d05-rail);
  padding:21px 20px 18px;z-index:1;
  border:1px solid #3e7c86;border-radius:24px;
  background:radial-gradient(ellipse at 120% -20%,#1b6c7480,transparent 65%),linear-gradient(155deg,#11364b,#091e31);
  color:#e9f8f8;box-shadow:0 18px 40px #0008;
 }
 body.gc-d01-active.gc-d05-duel #gcDesktopMultiplayerRailD05{background:radial-gradient(ellipse at 120% -20%,#795b9a6b,transparent 65%),linear-gradient(155deg,#20324f,#111e35);border-color:#746999}
 body.gc-d01-active.gc-d05-game .gc-d05-header{display:flex;gap:9px;align-items:center;min-height:24px}
 body.gc-d01-active.gc-d05-game .gc-d05-header strong{font-size:12px;color:#74ead3;letter-spacing:.095em}
 body.gc-d01-active.gc-d05-game .gc-d05-dot{height:9px;width:9px;flex:none;border-radius:50%;background:#4ce5c3;box-shadow:0 0 0 4px #4ce5c328}
 body.gc-d01-active.gc-d05-game .gc-d05-badge{border:1px solid #e6bf7570;background:#e5b55e12;color:#f2d38e;font-size:9px;font-weight:850;border-radius:99px;padding:4px 8px;margin-left:auto;white-space:nowrap}
 body.gc-d01-active.gc-d05-game .gc-d05-guide{font-size:12px;line-height:1.5;color:#b1ccd6;margin:12px 0 0}
 body.gc-d01-active.gc-d05-game .gc-d05-help{font-size:11px;color:#99bdc9;margin-top:auto;margin-bottom:0}
 /* The HUD, scoreboard and clocks are the game's real DOM, not decorative copies. */
 body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-hud{
  position:absolute!important;left:auto!important;right:calc(var(--gc-d05-pad) + 16px)!important;
  top:calc(var(--gc-d05-pad) + 103px)!important;bottom:auto!important;
  transform:none!important;margin:0!important;
  width:calc(var(--gc-d05-rail) - 32px)!important;max-width:none!important;
  border:1px solid #477c89;border-radius:16px;padding:14px 15px!important;
  background:linear-gradient(145deg,#17475b,#0b2b41);box-shadow:none;z-index:4;pointer-events:auto;
 }
 body.gc-d01-active.gc-d05-game #geoPartyCity{font-size:clamp(24px,2.15vw,35px);margin:11px 0 9px;line-height:1.1}
 body.gc-d01-active.gc-d05-game #geoPartyClock{font-size:22px}
 body.gc-d01-active.gc-d05-game #geoPartyScore{margin-top:8px}
 body.gc-d01-active.gc-d05-game #geoPartyScore .gc82-scoreboard{margin:7px 0 0;gap:7px}
 body.gc-d01-active.gc-d05-game #geoPartyScore .gc82-health-values strong{font-size:clamp(20px,2vw,29px)}
 body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-foot{
  position:absolute!important;left:auto!important;right:calc(var(--gc-d05-pad) + 16px)!important;
  top:auto!important;bottom:calc(var(--gc-d05-pad) + 17px)!important;
  width:calc(var(--gc-d05-rail) - 32px)!important;max-width:none!important;
  margin:0!important;transform:none!important;min-height:0;
  border:1px solid #447b87;border-radius:16px;padding:10px 12px!important;
  background:linear-gradient(155deg,#14394b,#09273b);box-shadow:none;z-index:5;
  display:flex;flex-direction:column;gap:8px;pointer-events:auto;
 }
 body.gc-d01-active.gc-d05-game .gc-party-scroll{min-height:0;max-height:min(39dvh,340px);overflow-y:auto;overscroll-behavior:contain}
 body.gc-d01-active.gc-d05-game .gc-party-fixed-actions{flex:0 0 auto;position:static!important;display:grid;gap:7px;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important}
 body.gc-d01-active.gc-d05-game .gc-party-fixed-actions button{width:100%;min-height:47px;border-radius:13px}
 body.gc-d01-active.gc-d05-game #geoLeaveGame{min-height:37px;font-size:12px}
 body.gc-d01-active.gc-d05-game #geoPartyResults{max-height:min(31dvh,260px);overflow-y:auto;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px}
 body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-foot.geo-is-finished{
  top:clamp(218px,27vh,260px)!important;bottom:calc(var(--gc-d05-pad) + 17px)!important;
  max-height:none!important;overflow:hidden!important;
 }
 body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-foot.geo-is-finished>.gc-party-scroll{
  flex:1 1 auto;max-height:none;min-height:0;overflow-y:auto!important;padding:0 2px!important;
 }
 body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-foot.geo-is-finished .gc88-online-final{margin:0 0 10px}
 body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-foot.geo-is-finished #geoPartyHistoryPanel{max-height:none}
 body.gc-d01-active.gc-d05-game #geoPartyGame .gc88-result-hero{min-height:95px}
 body.gc-d01-active.gc-d05-game #geoPartyGame .gc88-online-final .gc88-result-score{padding:10px;margin:7px 0}
 /* Lobby: the existing room code, roster, settings and vote action are unchanged. */
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby{inset:0;display:grid;place-items:center;padding:clamp(20px,3vh,34px);background:radial-gradient(ellipse at 15% 0%,#164f5c77,transparent 55%),#051524ed}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-arena-lobby{
  display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);
  grid-auto-rows:min-content;column-gap:clamp(22px,3vw,42px);row-gap:9px;
  width:min(1150px,100%)!important;max-width:1150px!important;max-height:calc(100dvh - 62px)!important;
  border:1px solid #4e8f99!important;border-radius:25px!important;padding:20px 27px 22px!important;
  background:radial-gradient(ellipse at 95% 5%,#1d6d7070,transparent 45%),linear-gradient(145deg,#102f4b,#0a1f36)!important;
  overflow-x:hidden;overflow-y:auto;
 }
 body.gc-d01-active.gc-d05-duel.gc-d05-lobby #geoPartyLobby .gc88-arena-lobby{border-color:#9b8cc1!important}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-brand,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-lobby-hero,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoLobbyInfo{grid-column:1/-1}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-brand{margin-bottom:0}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-lobby-hero{min-height:135px;margin:0 0 2px}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoLobbyInfo{margin:0 0 8px!important}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .geo-room-panel{grid-column:1;grid-row:4 / span 8;min-width:0;align-self:start}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .geo-roomcode{font-size:33px!important}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-roster .geo-member{min-height:110px}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-room-config,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #gc36HostSettings,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoReadyBtn,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoStartParty,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoLeaveLobby,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoLobbyStatus,
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #gc90VoteDock{grid-column:2;min-width:0;margin:0!important;align-self:start}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #gc90VoteDock{position:relative;bottom:auto;z-index:1;padding:12px!important;border:1px solid #4d8a8e;border-radius:14px;box-shadow:none;background:#143d4c}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #geoLeaveLobby{min-height:40px!important}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc36-host-settings{max-height:26dvh;overflow:auto}
 body.gc-d01-active.gc-d05-lobby #geoPartyLobby #gc90VoteDock #gc36StartVote{min-height:49px}
 @media(max-height:740px){
  body.gc-d01-active.gc-d05-game #gcDesktopMultiplayerRailD05{padding:13px 15px}
  body.gc-d01-active.gc-d05-game .gc-d05-guide{margin-top:6px;font-size:11px}
  body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-hud{top:calc(var(--gc-d05-pad) + 79px)!important;padding:9px 12px!important}
  body.gc-d01-active.gc-d05-game #geoPartyCity{font-size:24px;margin:6px 0}
  body.gc-d01-active.gc-d05-game #geoPartyGame>.geo-party-foot.geo-is-finished{top:clamp(190px,28vh,235px)!important}
  body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-arena-lobby{padding:12px 17px!important;max-height:calc(100dvh - 28px)!important}
  body.gc-d01-active.gc-d05-lobby #geoPartyLobby .gc88-lobby-hero{min-height:100px}
 }
}
@media(prefers-reduced-motion:reduce){body.gc-d05-game *,body.gc-d05-lobby *{scroll-behavior:auto!important;animation:none!important}}
