
#hub.garage { --g-cyan: #73edff; --g-muted: #8da6b6; --g-line: #96ddeb30; display: block; padding: 0; overflow: hidden; isolation: isolate; background: #050b12; color: #eaf6fb; font-family: Nunito, system-ui, sans-serif; }
#hub.garage[hidden] { display: none; }
#hub.garage button { font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--g-line); background: #0b1925c9; transition: background .2s, border-color .2s; }
#hub.garage button:hover { border-color: var(--g-cyan); background: #183342; }
#hub.garage button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#hub.garage .scenery, #hub.garage .vignette { position: absolute; inset: 0; z-index: -2; }
#hub.garage .scenery { background: #0a1b2b url('garage/laboratoire.webp') center 52% / cover no-repeat; }
#hub.garage.usine-decor .scenery { background-image: url('garage/usine.webp'); }
#hub.garage.violet-decor .scenery { background-image: url('garage/violet.webp'); }
#hub.garage.hangar-decor .scenery { background-image: url('garage/hangar.webp'); }

#hub.garage.cyberpunk-decor .scenery { background-image: url('garage/cyberpunk.webp'); }
#hub.garage.faille-decor .scenery { background-image: url('garage/faille.webp'); }
#hub.garage.frigo-decor .scenery { background-image: url('garage/frigo.webp'); }
#hub.garage.quai-decor .scenery { background-image: url('garage/quai.webp'); }
#hub.garage .scenery .decor-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; pointer-events: none; }
#hub.garage .scenery canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#hub.garage .vignette { z-index: -1; background: linear-gradient(180deg, #020910a6, transparent 28%, transparent 45%, #02081055 74%, #020810e8), linear-gradient(90deg, #02081044, transparent 28%, transparent 80%, #02081022); }


#hub .g-head { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 96px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px;
  padding: max(18px, env(safe-area-inset-top)) max(26px, env(safe-area-inset-right)) 0 max(26px, env(safe-area-inset-left)); }
#hub .g-profil { position: relative; display: flex; align-items: center; gap: 11px; border: 0 !important; background: none !important; text-align: left; padding: 0; flex-shrink: 0; }
#hub .g-profil canvas { width: 48px; height: 48px; border-radius: 50%; }
#hub .g-profil-txt strong { display: block; font-size: 18px; letter-spacing: 1px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .g-profil-txt small { display: block; font-size: 10px; letter-spacing: 1.5px; color: #c4d2dc; }
#hub .g-profil-txt small b { color: var(--g-cyan); }
#hub .g-xp { display: block; margin-top: 6px; height: 3px; width: 170px; background: #ffffff21; }
#hub .g-xp em { display: block; width: 0; height: 100%; background: var(--g-cyan); box-shadow: 0 0 9px #73edff80; }
#hub .g-pastille { position: absolute; left: 34px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ffb84d; color: #1b1205; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
#hub .g-pastille[hidden] { display: none; }
#hub .g-launch { position: absolute; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); width: 300px; display: flex; gap: 6px; filter: drop-shadow(0 7px 16px #0008); }
#hub .g-jouer { width: 100%; height: 52px; background: linear-gradient(120deg, #b4f7ff, #59d9f4 55%, #2fa0c6) !important; border: 1px solid #d2ffff !important; box-shadow: inset 0 2px 0 #fff8, inset 0 -4px 0 #14536b70;
  color: #062434 !important; font-size: 23px; font-weight: 1000; letter-spacing: 3px; clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
#hub .g-jouer { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1; }
#hub .g-jouer small { font-size: 9px; letter-spacing: 2px; font-weight: 900; opacity: .75; }

#hub .g-mode { flex: none; width: 60px; height: 52px; padding: 0; display: flex; align-items: center; justify-content: center; color: #062434 !important;
  background: linear-gradient(120deg, #b4f7ff, #59d9f4 55%, #2fa0c6) !important; border: 1px solid #d2ffff !important; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
#hub .g-mode svg { width: 30px; height: 30px; }
#hub .g-wallet { display: flex; align-items: center; gap: 14px; }
#hub .g-solde { display: flex; align-items: center; gap: 4px; color: #fff; font-size: 17px; white-space: nowrap; }
#hub .g-solde small { font-size: 8px; letter-spacing: 1.5px; color: var(--g-muted); margin-left: 3px; }
#hub .g-solde .diamond, #hub .g-solde .cle-ico { margin-right: 4px; width: 20px; height: 20px; }
#hub .g-solde .bal-plus { width: 24px; height: 24px; margin-left: 6px; font-size: 17px; border: 0; background: var(--g-cyan); color: #04223a; }
#hub .g-boutique { padding: 12px 18px; background: linear-gradient(120deg, #24424dce, #0c1d28de) !important; font-size: 11px; font-weight: 900; letter-spacing: 1.3px; border-top: 2px solid #8ce8f2 !important; }
#hub .g-boutique span { margin-left: 12px; color: var(--g-cyan); }


#hub .g-nav { position: absolute; z-index: 4; left: 0; top: 103px; bottom: 176px; width: calc(96px + env(safe-area-inset-left)); padding-left: env(safe-area-inset-left); display: flex; align-items: center; flex-direction: column;
  border-right: 1px solid #c1ebff16; background: linear-gradient(90deg, #06101dc9, transparent); }
#hub .g-nav button { position: relative; width: 84px; min-height: 30px; flex: 1; max-height: 64px; border: 0; background: none; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; color: #9fb4c4; }
#hub .g-nav button.active { color: var(--g-cyan); background: linear-gradient(90deg, #5fd9ee25, transparent); }
#hub .g-nav button.active::before { content: ''; position: absolute; left: 0; height: 65%; width: 2px; background: var(--g-cyan); box-shadow: 0 0 12px var(--g-cyan); }
#hub .g-nav small { font-size: 10px; white-space: nowrap; }
#hub .g-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#hub .g-reglages { margin-top: auto; }
#hub #g-logout { color: #e2a99a; flex: none; height: 42px; border-top: 1px solid #b4d9e21c; }
#hub .g-badge { position: absolute; top: 4px; right: 8px; font-size: 9px; padding: 1px 5px; border-radius: 8px; background: #ffb84d; color: #1b1205; }
#hub .g-badge.all-done { background: #3ad38a; }
#hub .g-badge[hidden], #hub .g-dot[hidden] { display: none; }
#hub .g-dot { position: absolute; width: 7px; height: 7px; background: #ffab57; border-radius: 50%; top: 7px; right: 22px; box-shadow: 0 0 6px #ffab57; }


#hub .showcase { position: absolute; inset: 100px 250px 238px 120px; }
#hub .location { position: absolute; left: 18px; top: 12px; font-size: 9px; letter-spacing: 2px; color: #bbd4dc; }
#hub .location > span:last-child { opacity: .4; margin-left: 12px; }
#hub .status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #88ffb8; margin-right: 7px; box-shadow: 0 0 8px #88ffb8; }
#hub .specimen { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(26vh, 225px); aspect-ratio: 1; }
#hub .specimen canvas { position: relative; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 17px 18px #000a); animation: g-flotte 6s ease-in-out infinite; z-index: 2; }
#hub .halo { position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(circle, #50deed30, transparent 65%); opacity: .65; }
#hub .platform { position: absolute; left: -26%; right: -26%; bottom: -20%; height: 29%; border: 1px solid #a0efff35; border-radius: 50%; box-shadow: 0 0 20px #78deef15, inset 0 0 20px #78deef15;
  background: radial-gradient(ellipse, #67e6ff28, transparent 70%); transform: perspective(400px) rotateX(25deg); }
#hub .platform::after { content: ''; position: absolute; inset: 15%; border: 1px dashed #96f2ff55; border-radius: 50%; }
#hub .skin-info { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; text-shadow: 0 3px 15px #000; }
#hub .skin-info p { font-size: 8px; letter-spacing: 3px; color: var(--g-cyan); margin: 0; }
#hub .skin-info h1 { margin: 3px 0 6px; font-size: 26px; letter-spacing: 2px; }
#hub .equipped { font-size: 8px; letter-spacing: 1.7px; color: #b9e0dd; background: #05151bad; border: 1px solid #90ddd431; padding: 4px 12px; }
#hub .coordinates { position: absolute; right: 0; bottom: 5px; font-size: 8px; letter-spacing: 2px; color: #a5c4d0; line-height: 1.9; }
#hub .coordinates span { opacity: .5; }
#hub.violet-decor .halo, #hub.violet-decor .platform { display: none; }
#hub.in-party .specimen, #hub.in-party .skin-info, #hub.in-party .coordinates { display: none; }
#hub #party-stage { position: absolute; inset: 24px 0 18px; display: flex; justify-content: safe center; align-items: center; gap: clamp(14px, 3vw, 40px); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; touch-action: pan-x; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #73edff60 transparent; padding: 8px 12px; }
#hub #party-stage[hidden], #hub #party-banner[hidden] { display: none; }
#hub .party-player { position: relative; flex: 0 0 clamp(100px, 14vw, 160px); text-align: center; border: 1px solid transparent !important; background: transparent !important; padding: 5px; scroll-snap-align: center; }
#hub .party-player::before { content: ''; position: absolute; left: -6%; right: -6%; top: 58%; height: 22%; border: 1px solid #83edff70; border-radius: 50%; background: #60dfff16; box-shadow: 0 0 20px #44dcff20; }
#hub .party-player:hover { border-color: #73edff50 !important; }
#hub .party-player canvas { position: relative; width: min(100%, 21vh); aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 8px 15px #0009); animation: g-flotte 6s ease-in-out infinite; animation-delay: var(--retard, 0s); }
#hub .party-player strong { position: relative; display: block; margin-top: 10px; font-size: clamp(12px, 1.4vw, 17px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 8px #000; }
#hub .party-player small { position: relative; display: block; font-size: 8px; letter-spacing: 1.5px; color: #a3b6c4; margin-top: 3px; }
#hub .party-player.is-you small { color: var(--g-cyan); }
#hub .party-empty { flex: 0 0 120px; height: 100px; border: 1px dashed #7addf35c !important; background: #122a3455 !important; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
#hub .party-empty b { font-size: 28px; color: var(--g-cyan); }
#hub .party-empty span { font-size: 10px; }
#hub #party-banner { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; padding: 5px 14px; font-size: 9px; letter-spacing: 1.5px; background: #06141bc9; border: 1px solid #8be5f33b; color: var(--g-cyan); }


#hub .g-aside { position: absolute; z-index: 3; right: max(26px, env(safe-area-inset-right)); top: 118px; width: 200px; display: flex; flex-direction: column; gap: 10px; }
#hub .g-cadeau { position: relative; display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; column-gap: 8px; text-align: left; padding: 10px 12px; border: 0 !important; border-top: 1px solid #e8ba6c70 !important;
  background: linear-gradient(120deg, #152633ce, #0a162077) !important; box-shadow: 0 12px 35px #0002; }
#hub .g-cadeau-titre { grid-column: 1 / 3; font-size: 8px; letter-spacing: 1.5px; color: #e6bc83; }
#hub .g-cadeau img { grid-row: 2 / 4; width: 54px; height: 54px; object-fit: contain; margin-top: 6px; }
#hub .g-cadeau strong { font-size: 11px; margin-top: 12px; }
#hub .g-cadeau-lien { font-size: 9px; letter-spacing: 1px; color: #ffc284; margin-top: 6px; }
#hub .g-cadeau .g-dot { top: 8px; right: 8px; }
#hub .g-liens { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#hub .g-liens .hub-lien { min-height: 0; padding: 5px; }
#hub .g-liens .hub-lien svg { width: 24px; height: 24px; }
#hub .hub-lang { position: static; margin-left: auto; padding: 2px; }
#hub .hub-lang button { min-width: 36px; min-height: 28px; font-size: 12px; border: 0; }


#hub .g-bas { position: absolute; bottom: 0; left: calc(112px + env(safe-area-inset-left)); right: max(28px, env(safe-area-inset-right)); height: calc(165px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, transparent, #040c16ee); }
#hub .equipment { position: absolute; bottom: 100%; left: 0; right: 0; height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 6px; border-bottom: 1px solid #99dbea25;
  background: linear-gradient(90deg, #06131de6, #132a35ad, #06131d55); }
#hub .g-boosts { display: flex; gap: 5px; }
#hub .boost-slot { height: 43px; min-width: 66px; display: flex; align-items: center; gap: 5px; padding: 4px 8px; position: relative; }
#hub .boost-slot img { width: 25px; height: 30px; object-fit: contain; }
#hub .boost-slot strong { font-size: 13px; display: block; line-height: 1; }
#hub .boost-slot small { font-size: 7px; color: #9db5c4; display: block; margin-top: 4px; }
#hub .boost-slot i { position: absolute; right: 4px; top: 2px; font-size: 9px; font-style: normal; color: #d6e8ef; }
#hub .boost-slot[aria-pressed="true"] { border-color: var(--g-cyan); background: #30617780; box-shadow: inset 0 0 12px #65dbff1c; }
#hub .boost-slot:disabled { opacity: .35; cursor: default; }
#hub .no-boost { font-size: 18px; color: var(--g-muted); }
#hub .g-emotes { height: 43px; display: flex; align-items: center; gap: 7px; padding: 4px 10px; font-size: 9px; letter-spacing: 1px; text-align: left; }
#hub .g-emotes img { width: 30px; height: 30px; object-fit: contain; }
#hub .g-emotes small { display: block; font-size: 7px; letter-spacing: .5px; margin-top: 3px; color: var(--g-muted); }
#hub .g-emotes b { color: var(--g-cyan); font-size: 18px; }
#hub .g-boost-etat { font-size: 9px; letter-spacing: .6px; color: var(--g-cyan); max-width: 220px; margin-left: auto; text-align: right; }
#hub .collection-head { height: 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ceeaff20; margin-bottom: 8px; }
#hub .collection-head strong { font-size: 10px; letter-spacing: 2px; }
#hub .collection-head span { font-size: 8px; color: var(--g-muted); letter-spacing: 1.4px; margin-left: 13px; }
#hub .collection-head button { width: 32px; height: 25px; margin-left: 5px; background: #0b1822; }
#hub .collection { display: flex; gap: 9px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #64cde54d transparent; padding: 2px 2px 9px;
  scroll-snap-type: x proximity; touch-action: pan-x; overscroll-behavior-x: contain; }
#hub .skin-card { flex: 0 0 116px; height: 91px; position: relative; text-align: center; padding: 5px 6px; background: linear-gradient(140deg, #283b4be0, #0b1724ee) !important; border: 1px solid #adc3d32e !important;
  border-top: 2px solid #7e9dac75 !important; scroll-snap-align: start; overflow: hidden; touch-action: pan-x; }
#hub .skin-card canvas { display: block; width: 58px; height: 58px; border-radius: 50%; margin: -1px auto 2px; }
#hub .skin-card strong { display: block; font-size: 9px; letter-spacing: .4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .skin-card.selected { border: 1px solid #a5f4ff !important; border-top: 2px solid #b0f6ff !important; background: linear-gradient(140deg, #286077cf, #0f2738) !important; box-shadow: inset 0 0 20px #5fe1ff15, 0 0 12px #5fe1ff13; }
#hub .skin-card.selected::after { content: '✓'; position: absolute; right: 6px; top: 2px; color: var(--g-cyan); font-size: 11px; }
@keyframes g-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }


@media (max-height: 500px) {
  #hub .g-head { height: 74px; padding-top: max(10px, env(safe-area-inset-top)); }
  #hub .g-profil canvas { width: 34px; height: 34px; }
  #hub .g-profil-txt strong { font-size: 14px; max-width: 130px; }
  #hub .g-profil-txt small { font-size: 8px; }
  #hub .g-xp { width: 120px; }
  #hub .g-pastille { left: 22px; }
  #hub .g-launch { top: max(8px, env(safe-area-inset-top)); width: 200px; }
  #hub .g-jouer { height: 42px; font-size: 19px; }
  #hub .g-mode { width: 50px; height: 42px; }
  #hub .g-mode svg { width: 24px; height: 24px; }
  #hub .g-wallet { gap: 8px; }
  #hub .g-solde { font-size: 13px; }
  #hub .g-solde small { display: none; }
  #hub .g-solde .bal-plus { width: 20px; height: 20px; font-size: 14px; margin-left: 3px; }
  #hub .g-boutique { padding: 9px 10px; font-size: 9px; }
  #hub .g-nav { top: 76px; bottom: max(4px, env(safe-area-inset-bottom)); width: calc(84px + env(safe-area-inset-left)); justify-content: space-between; }
  #hub .g-nav button { width: 76px; min-height: 0; max-height: 40px; gap: 2px; }
  #hub .g-reglages { margin-top: 0; }
  #hub .g-nav svg { width: 15px; height: 15px; }
  #hub .g-nav small { font-size: 7.5px; }
  #hub #g-logout { height: 28px; }
  #hub .showcase { inset: 76px 190px 188px 92px; }
  #hub .location { font-size: 7px; top: 2px; left: 0; }
  #hub .specimen { width: 21vh; top: 34%; }
  #hub .skin-info h1 { font-size: 17px; margin: 1px 0 3px; }
  #hub .skin-info p, #hub .equipped { font-size: 7px; }
  #hub .equipped { padding: 2px 9px; }
  #hub .coordinates { font-size: 6px; }
  #hub .g-aside { top: 84px; width: 160px; gap: 6px; }
  #hub .g-cadeau { grid-template-columns: 42px 1fr; padding: 7px 9px; }
  #hub .g-cadeau img { width: 40px; height: 40px; }
  #hub .g-cadeau strong { font-size: 9px; margin-top: 8px; }
  #hub .g-cadeau-titre { font-size: 7px; }
  #hub .g-cadeau-lien { font-size: 8px; }
  #hub .g-liens .hub-lien svg { width: 20px; height: 20px; }
  #hub .hub-lang button { min-width: 30px; min-height: 24px; font-size: 10px; }
  #hub .g-bas { left: calc(92px + env(safe-area-inset-left)); right: max(20px, env(safe-area-inset-right)); height: calc(128px + env(safe-area-inset-bottom)); }
  #hub .equipment { height: 48px; gap: 6px; }
  #hub .boost-slot { height: 38px; min-width: 52px; padding: 3px 6px; }
  #hub .boost-slot img { width: 20px; height: 24px; }
  #hub .g-emotes { height: 38px; padding: 3px 7px; font-size: 8px; }
  #hub .g-emotes img { width: 24px; height: 24px; }
  #hub .g-boost-etat { font-size: 7px; max-width: 150px; }
  #hub .collection-head { height: 26px; margin-bottom: 6px; }
  #hub .collection-head strong { font-size: 8px; }
  #hub .hint { display: none; }
  #hub .skin-card { height: 73px; flex-basis: 96px; }
  #hub .skin-card canvas { width: 44px; height: 44px; }
  #hub .skin-card strong { font-size: 8px; }
  #hub #party-stage { inset: 18px 0 14px; }
  #hub .party-player canvas { width: 19vh; }
}
@media (prefers-reduced-motion: reduce) { #hub .specimen canvas, #hub .party-player canvas { animation: none; } #hub .collection { scroll-behavior: auto; } }


.g-ecran { --g-cyan: #73edff; --g-muted: #8da6b6; --g-line: #96ddeb30; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; z-index: 30;
  padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: linear-gradient(115deg, #07151af5, #122a36f2), url('garage/laboratoire.webp') center / cover; color: #eaf6fb; font-family: Nunito, system-ui, sans-serif; overflow-y: auto; }
.g-ecran[hidden] { display: none; }
.g-ecran button { font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--g-line); background: #0b1925c9; padding: 9px 14px; }
.g-ecran button:hover { border-color: var(--g-cyan); }
.g-ecran button:disabled { opacity: .45; cursor: default; }
.g-ecran input { background: #07131e; border: 1px solid #8acfe35c; color: #fff; padding: 10px; font: inherit; font-size: 16px; border-radius: 3px; min-width: 0; }
.g-ecran-tete { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding-bottom: 6px; border-bottom: 1px solid #81d8e52e; background: #0b1c27f5;
  color: var(--g-muted); font-size: 9px; letter-spacing: 2px; }
.g-ecran-tete b { color: var(--g-cyan); font-weight: 900; }
.g-ecran-tete button { width: 44px; height: 36px; padding: 0; font-size: 16px; }
.g-ecran h2 { font-size: clamp(20px, 3vw, 30px); margin: 10px 0 8px; }
.g-ecran-contenu { width: 100%; max-width: 1200px; margin-inline: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.g-ecran p { font-size: 13px; line-height: 1.5; color: #b1c4d0; margin: 6px 0; }
.g-ecran .g-note { font-size: 11px; color: var(--g-muted); }
.g-ecran .g-erreur { color: #ffb095; font-size: 12px; min-height: 16px; }
.g-ecran .g-ok { color: var(--g-cyan); font-size: 12px; min-height: 16px; }
.g-ecran .g-primaire { background: var(--g-cyan); color: #082331; font-weight: 900; border-color: var(--g-cyan); }
.g-ecran .g-danger { color: #ffb095; }
.g-ecran .g-ligne { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.g-ecran .g-rangee { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 8px 3px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #73edff70 #081722;
  touch-action: pan-x; overscroll-behavior-x: contain; }
.g-ecran .g-rangee > * { scroll-snap-align: start; flex: none; }
.g-ecran .g-code { width: 150px; font: 900 22px Nunito, sans-serif; letter-spacing: 4px; color: var(--g-cyan); text-align: center; }
.g-ecran .g-carte { border: 1px solid #73edff40; background: #62d9ef0c; padding: 12px; }

.g-ecran .g-niveau { width: 112px; padding: 8px 6px; text-align: center; background: linear-gradient(140deg, #213c4a, #0a1520); }
.g-ecran .g-niveau canvas { display: block; width: 76px; height: 76px; border-radius: 50%; margin: 6px auto; }
.g-ecran .g-niveau .g-niv { font-size: 10px; letter-spacing: 1px; color: #bddce7; }
.g-ecran .g-niveau strong { display: block; font-size: 9px; color: var(--g-cyan); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-ecran .g-niveau.verrou canvas { filter: grayscale(1) brightness(.5); }
.g-ecran .g-niveau.verrou strong { color: #8b9eab; }
.g-ecran .g-niveau.equipe { border-color: var(--g-cyan); box-shadow: inset 0 0 14px #65dbff22; }

.g-ecran .g-emote { width: 104px; padding: 8px; }
.g-ecran .g-emote img { width: 64px; height: 64px; object-fit: contain; display: block; margin: auto; }
.g-ecran .g-emote span { display: block; font-size: 9px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-ecran .g-emote[aria-pressed="true"] { border-color: var(--g-cyan); background: #30617780; }

.g-ecran .g-decor { width: 190px; padding: 5px; text-align: left; }
.g-ecran .g-decor span { display: block; height: 96px; background: center / cover no-repeat; }
.g-ecran .g-decor strong { display: block; font-size: 11px; margin: 6px 2px 0; }
.g-ecran .g-decor small { display: block; font-size: 9px; color: var(--g-muted); margin: 2px; }
.g-ecran .g-decor[aria-pressed="true"] { border-color: var(--g-cyan); background: #235062; }
.g-ecran .g-decor.verrou span { filter: grayscale(.55) brightness(.6); }   

.g-amis { display: grid; grid-template-columns: minmax(260px, 36%) minmax(0, 1fr); gap: 18px; flex: 1; min-height: 230px; }
.g-amis-liste { overflow-y: auto; padding-right: 10px; border-right: 1px solid #9ad7e42b; scrollbar-width: thin; }
.g-amis h3 { font-size: 9px; letter-spacing: 2px; color: var(--g-cyan); margin: 12px 0 4px; }
.g-ami { display: flex; align-items: center; gap: 10px; border-top: 1px solid #b5d5e220; padding: 7px 2px; cursor: pointer; }
.g-ami.choisi { background: #6de4f41a; box-shadow: inset 2px 0 var(--g-cyan); }
.g-ami canvas { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.g-ami-info { flex: 1; min-width: 0; }
.g-ami-info strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-ami-info small { display: block; font-size: 10px; color: var(--g-muted); margin-top: 2px; }
.g-ami.ligne small { color: #83edb2; }
.g-ami.partie small { color: #ffc780; }
.g-ami.hors canvas { filter: grayscale(1); opacity: .55; }
.g-ami button { padding: 6px 9px; font-size: 10px; }
.g-nonlus { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ffab57; color: #1b1205; font-size: 10px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.g-chat { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid #8edbe336; background: #06131ca3; }
.g-chat-vide { margin: auto; text-align: center; padding: 20px; color: var(--g-muted); }
.g-chat-tete { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid #8edbe32b; background: #102937a6; }
.g-chat-tete canvas { width: 34px; height: 34px; border-radius: 50%; }
.g-chat-tete strong { font-size: 15px; }
.g-chat-tete small { display: block; font-size: 10px; color: var(--g-muted); margin-top: 2px; }
.g-chat-tete .g-chat-actions { margin-left: auto; display: flex; gap: 6px; }
.g-chat-tete .g-chat-actions button { padding: 6px 9px; font-size: 10px; }
.g-chat-messages { flex: 1; min-height: 60px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.g-bulle { align-self: flex-start; max-width: 85%; background: #1b3542; border: 1px solid #70d9ed33; border-radius: 10px 10px 10px 2px; padding: 7px 11px; overflow-wrap: anywhere; }
.g-bulle.moi { align-self: flex-end; background: #24586a; border-radius: 10px 10px 2px 10px; }
.g-bulle p { margin: 0 !important; font-size: 13px !important; color: #eaf6fb !important; white-space: pre-wrap; }
.g-bulle small { display: block; font-size: 8px; color: #aed1df; margin-top: 4px; text-align: right; }
.g-chat-ecrire { display: flex; gap: 8px; padding: 9px; border-top: 1px solid #8edbe32b; }
.g-chat-ecrire input { flex: 1; font-size: 14px; }

.g-fiche { display: flex; align-items: center; gap: 20px; padding: 14px; background: #73edff0b; border: 1px solid #73edff30; }
.g-fiche canvas { width: 100px; height: 100px; border-radius: 50%; }
.g-fiche h3 { font-size: 22px; margin: 0 0 4px; }
.g-fiche strong { display: block; color: var(--g-cyan); font-size: 15px; }
.g-fiche small { display: block; font-size: 11px; color: var(--g-muted); margin-top: 6px; }
@media (max-height: 500px) {
  .g-ecran h2 { font-size: 19px; margin: 4px 0 4px; }
  .g-ecran-tete { min-height: 28px; }
  .g-ecran-tete button { height: 28px; width: 34px; }
  .g-ecran p { font-size: 11px; margin: 3px 0; }
  .g-ecran button { padding: 6px 10px; }
  .g-ecran .g-niveau canvas { width: 56px; height: 56px; }
  .g-ecran .g-niveau { width: 92px; }
  .g-ecran .g-emote img { width: 48px; height: 48px; }
  .g-ecran .g-emote { width: 84px; }
  .g-ecran .g-decor span { height: 64px; }
  .g-ecran .g-decor { width: 150px; }
  .g-fiche canvas { width: 70px; height: 70px; }
  .g-fiche h3 { font-size: 18px; }
  .g-amis { gap: 12px; }
}

.g-invite { position: fixed; z-index: 60; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #0b1d28f2; border: 1px solid #73edff80; color: #eaf6fb; font: 13px Nunito, system-ui, sans-serif; box-shadow: 0 10px 40px #000a; max-width: 92vw; }
.g-invite[hidden], .g-toast[hidden] { display: none; }
.g-invite button { font: inherit; padding: 7px 12px; border: 1px solid #73edff60; background: #0b1925; color: #eaf6fb; cursor: pointer; }
.g-invite #g-invite-oui { background: #73edff; color: #082331; font-weight: 900; }
.g-toast { position: fixed; z-index: 61; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 9px 16px; background: #0b1d28f2; border: 1px solid #73edff60;
  color: #eaf6fb; font: 13px Nunito, system-ui, sans-serif; max-width: 90vw; }




@media (max-height: 500px) {
  
  #hub #party-stage { inset: 8px 0 18px; align-items: flex-start; padding-top: 2px; padding-bottom: 0; }
  #hub .party-player { padding: 2px; }
  #hub .party-player canvas { width: min(100%, 12vh); }
  #hub .party-player strong { margin-top: 4px; font-size: 12px; }
  #hub .party-player small { font-size: 7px; margin-top: 1px; }
  #hub .party-player::before { top: 44%; }
  #hub #party-banner { bottom: -2px; font-size: 7px; padding: 3px 10px; }
}

@media (max-height: 360px) { #hub .hub-lang { display: none; } #hub .g-aside { top: 78px; } }

@media (max-width: 720px) { #hub .g-cles { display: none; } #hub .g-launch { width: 180px; } #hub .g-jouer { font-size: 17px; letter-spacing: 2px; } }
@media (max-height: 360px) { .g-ecran .g-decor span { height: 48px; } .g-ecran .g-decor small { font-size: 8px; } .g-ecran .g-decor strong { font-size: 10px; margin-top: 3px; } }

@media (max-height: 380px) {
  #hub #party-stage { align-items: center; padding: 0 8px; }
  #hub .party-player { display: grid; grid-template-columns: 46px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; flex: 0 0 auto; max-width: 190px; }
  #hub .party-player::before { display: none; }
  #hub .party-player canvas { grid-row: 1 / 3; width: 46px; }
  #hub .party-player strong { margin: 0; align-self: end; max-width: 130px; }
  #hub .party-player small { align-self: start; }
  #hub .party-empty { flex-basis: 96px; height: 54px; }
}

@media (max-height: 500px) { #hub .skin-card { height: 76px; padding-top: 4px; } #hub .skin-card canvas { width: 40px; height: 40px; margin-bottom: 3px; } #hub .skin-card strong { line-height: 1.25; } }

@media (max-height: 360px) {
  #hub .g-cadeau { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; padding: 5px 8px; }
  #hub .g-cadeau img { grid-row: 1 / 3; width: 30px; height: 30px; margin-top: 0; }
  #hub .g-cadeau strong { display: none; }
  #hub .g-cadeau-titre { grid-column: 2; }
  #hub .g-cadeau-lien { margin-top: 2px; }
}

.g-ecran-contenu > * { flex-shrink: 0; }
.g-ecran-contenu > .g-amis { flex-shrink: 1; }
.g-ecran .g-ligne input { max-width: 340px; }


#hub .showcase { inset: 100px 250px 238px 250px; }
#hub .specimen { top: calc(50% - 22px); }
#hub .location { left: -120px; }
#hub .coordinates { right: -120px; }
@media (max-height: 500px) {
  #hub .showcase { inset: 76px 190px 188px 190px; }
  #hub .specimen { top: calc(50% - 16px); }
  #hub .location { left: -96px; }
  #hub .coordinates { right: -96px; }
}

#hub .showcase { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
#hub .specimen { position: relative; left: auto; top: auto; transform: none; width: min(30vh, 230px); flex: none; }
#hub .skin-info { position: relative; left: auto; bottom: auto; transform: none; margin-top: 14px; }
#hub.in-party .showcase { display: block; }
@media (max-height: 500px) {
  #hub .showcase { gap: 2px; }
  #hub .specimen { width: 17vh; top: auto; }
  #hub .skin-info { margin-top: 8px; }
  #hub .skin-info h1 { margin: 0; }
  #hub .equipped { display: none; }
}
@media (max-height: 360px) { #hub .specimen { width: 13vh; } #hub .skin-info p { display: none; } #hub .skin-info { margin-top: 4px; } #hub .skin-info h1 { font-size: 15px; } }


#hub .hub-lang { display: none; }


.g-ecran.g-avec-rayons { padding-left: calc(104px + env(safe-area-inset-left)); }
.g-ecran .g-rayons { position: absolute; z-index: 4; left: 0; top: 0; bottom: 0; width: calc(92px + env(safe-area-inset-left)); padding-left: env(safe-area-inset-left);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid #c1ebff16; background: linear-gradient(90deg, #06101de6, #06101d66); }
.g-ecran .g-rayons button { position: relative; width: 84px; min-height: 52px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px; color: #9fb4c4; font: 10px Nunito, system-ui, sans-serif; }
.g-ecran .g-rayons button:hover { color: #eaf6fb; }
.g-ecran .g-rayons button.active { color: var(--g-cyan); background: linear-gradient(90deg, #5fd9ee25, transparent); }
.g-ecran .g-rayons button.active::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 2px; background: var(--g-cyan); box-shadow: 0 0 12px var(--g-cyan); }
.g-ecran .g-rayons svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.g-ecran .g-rayons small { font-size: 10px; text-align: center; line-height: 1.15; }
.g-ecran-contenu.g-skins-rayon { max-width: none; justify-content: center; }
.g-skins-rayon .g-skins-tete { display: flex; align-items: baseline; gap: 12px; }
.g-skins-rayon .g-skins-tete h3 { margin: 0; font-size: 18px; letter-spacing: 1px; color: #eaf6fb; }
.g-skins-rayon .g-skins-tete .g-note { color: var(--g-cyan); font-weight: 900; }
.g-skins-rayon .g-skins-ligne { flex: 0 1 auto; min-height: 0; display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; overflow-y: hidden; align-items: stretch;
  padding: 4px 2px 10px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #73edff70 #081722; }
.g-skins-rayon .g-skins-ligne .g-niveau { flex: 0 0 auto; width: clamp(140px, 20vw, 250px); scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: clamp(12px, 4vh, 36px) 8px; }
.g-skins-rayon .g-skins-ligne .g-niveau canvas { width: clamp(80px, 30vh, 210px); height: clamp(80px, 30vh, 210px); margin: 0; }
.g-skins-rayon .g-skins-ligne .g-niveau .g-niv { font-size: 12px; }
.g-skins-rayon .g-skins-ligne .g-niveau strong { font-size: 13px; max-width: 100%; }
.g-ecran-contenu.g-skins-rayon > .g-skins-ligne { flex-shrink: 1; }
@media (max-height: 500px) {
  .g-ecran.g-avec-rayons { padding-left: calc(84px + env(safe-area-inset-left)); }
  .g-ecran .g-rayons { width: calc(76px + env(safe-area-inset-left)); gap: 2px; }
  .g-ecran .g-rayons button { width: 70px; min-height: 44px; }
  .g-ecran .g-rayons svg { width: 20px; height: 20px; }
  .g-ecran .g-rayons small { font-size: 9px; }
  .g-ecran.g-avec-rayons h2 { margin: 4px 0 2px; font-size: 18px; }
  .g-skins-rayon .g-skins-tete h3 { font-size: 15px; }
  .g-skins-rayon > p { font-size: 11px; margin: 2px 0 4px; line-height: 1.35; }
  .g-skins-rayon .g-skins-ligne .g-niveau { width: clamp(110px, 18vw, 150px); padding: 8px 6px; gap: 4px; }
  .g-skins-rayon .g-skins-ligne .g-niveau canvas { width: clamp(64px, 26vh, 110px); height: clamp(64px, 26vh, 110px); }
}


.g-ecran .g-ecran-tete { justify-content: flex-start; gap: 14px; }
.g-ecran .g-ecran-tete .sq-btn { flex: none; font-size: 24px; line-height: 1; }


.g-ecran-contenu.g-modes-page { justify-content: center; }
.g-modes-cartes { display: flex; gap: 14px; justify-content: safe center; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 10px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.g-ecran .g-mode-carte { flex: 0 0 auto; width: clamp(150px, calc((100vw - 170px) / 4), 300px);  min-height: clamp(190px, 52vh, 380px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 18px 14px; text-align: center; background: linear-gradient(140deg, #213c4a, #0a1520); }
.g-ecran .g-mode-carte svg { width: clamp(56px, 16vh, 110px); height: clamp(56px, 16vh, 110px); color: var(--g-cyan); }
.g-ecran .g-mode-carte strong { font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 1px; }
.g-ecran .g-mode-carte span { font-size: 12px; color: #b1c4d0; line-height: 1.4; }
.g-ecran .g-mode-carte small { font-size: 11px; letter-spacing: 2px; font-weight: 900; color: var(--g-muted); }
.g-ecran .g-mode-carte.choisi { border-color: var(--g-cyan); box-shadow: inset 0 0 22px #65dbff2e; }
.g-ecran .g-mode-carte.choisi small { color: var(--g-cyan); }
.g-ecran .g-mode-carte.ferme { opacity: .5; cursor: default; }
.g-ecran .g-mode-carte.ferme svg { color: #8b9eab; }
@media (max-height: 500px) {
  .g-ecran .g-mode-carte { min-height: 0; padding: 12px 10px; gap: 6px; }
  .g-ecran .g-mode-carte span { font-size: 11px; }
}


.g-ecran .g-rangee.g-decors { scroll-snap-type: none; }
.g-ecran .g-rangee.g-decors > .g-decor { flex: 0 1 190px; min-width: 128px; }
@media (max-height: 500px) { .g-ecran .g-rangee.g-decors > .g-decor { flex-basis: 150px; } }


#hub .g-pseudo { width: min(260px, 60vw); height: 40px; padding: 0 14px; text-align: center; font: 900 17px Nunito, system-ui, sans-serif; letter-spacing: 1px; color: #eaf6fb;
  background: #07131ecc; border: 1px solid #8acfe35c; border-radius: 2px; outline: none; box-shadow: 0 8px 24px #0007; }
#hub .g-pseudo::placeholder { color: #8da6b6; font-weight: 700; }
#hub .g-pseudo:focus { border-color: var(--g-cyan); box-shadow: 0 0 0 1px var(--g-cyan), 0 8px 24px #0007; }

#hub .g-masse { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 220px; height: 43px; padding: 4px 12px; background: #0b1925c9; border: 1px solid #96ddeb4d; }
#hub .g-masse[hidden] { display: none; }
#hub .g-masse span { font-size: 9px; letter-spacing: 1px; color: var(--g-muted); white-space: nowrap; }
#hub .g-masse b { color: var(--g-cyan); font-size: 12px; margin-left: 4px; }
#hub .g-masse input { width: 100%; margin: 0; accent-color: #73edff; }
@media (max-height: 500px) {
  #hub .g-pseudo { height: 32px; font-size: 14px; width: min(220px, 50vw); }
  #hub .g-masse { height: 38px; width: 180px; padding: 3px 8px; gap: 2px; }
  #hub .g-masse span { font-size: 8px; }
}


.g-ecran .g-fond { width: 128px; padding: 5px; text-align: left; flex: none; }
.g-ecran .g-fond span { display: block; height: 64px; border: 1px solid #ffffff1a; }
.g-ecran .g-fond strong { display: block; font-size: 11px; margin: 6px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ecran .g-fond[aria-pressed="true"] { border-color: var(--g-cyan); background: #235062; }
@media (max-height: 500px) { .g-ecran .g-fond { width: 104px; } .g-ecran .g-fond span { height: 44px; } .g-ecran .g-fond strong { font-size: 10px; margin-top: 4px; } }


#hub .g-boosts[hidden] { display: none; }
#hub .g-party { display: flex; height: 43px; }
#hub .g-party-creer { height: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 12px; text-align: left; font-size: 9px; letter-spacing: 1px; }
#hub .g-party-creer svg { width: 26px; height: 26px; fill: none; stroke: var(--g-cyan); stroke-width: 1.6; stroke-linecap: round; flex: none; }
#hub .g-party-creer strong { display: block; font-size: 15px; letter-spacing: 2px; }
#hub .g-party-creer small { display: block; font-size: 7px; letter-spacing: .5px; margin-top: 3px; color: var(--g-muted); white-space: nowrap; }
#hub .g-party-creer.en-party { border-color: var(--g-cyan) !important; }
#hub .g-party-creer.en-party small { margin: 0 0 2px; color: var(--g-cyan); }
#hub .g-party-creer .g-party-num { letter-spacing: 4px; }
@media (max-height: 500px) {
  #hub .g-party { height: 38px; }
  #hub .g-party-creer { padding: 3px 8px; gap: 6px; }
  #hub .g-party-creer svg { width: 20px; height: 20px; }
  #hub .g-party-creer strong { font-size: 13px; }
}

.g-ecran.g-pop { position: fixed; inset: 0; z-index: 55; align-items: center; justify-content: center; padding: 16px; background: #020a12b8; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; }
.g-pop-carte { width: min(460px, 100%); max-height: 100%; overflow-y: auto; padding: 14px 18px 18px; background: linear-gradient(145deg, #183342f2, #07131cf7); border: 1px solid #83e4f34a; box-shadow: 0 24px 60px #000a; }
.g-pop-tete { display: flex; align-items: center; justify-content: space-between; }
.g-pop-tete h2 { margin: 0; }
.g-pop .g-pop-creer { width: 100%; padding: 12px; }
.g-pop .g-ligne input { flex: 1; }
.g-pop .g-pop-quitter { width: 100%; margin-top: 10px; }
@media (max-height: 500px) { .g-pop-carte { padding: 10px 14px 12px; } .g-pop p { margin: 3px 0; font-size: 12px; } .g-pop .g-pop-creer { padding: 9px; } }


#hub .collection, #hub #party-stage, .g-ecran .g-rangee, .g-skins-rayon .g-skins-ligne, .g-modes-cartes { scroll-snap-type: none; }

.g-skins-rayon .g-skins-ligne { flex: 1 1 auto; align-items: stretch; }
.g-skins-rayon .g-skins-ligne .g-niveau { width: clamp(140px, 22vw, 190px); padding: 12px 8px; gap: 8px; }
.g-skins-rayon .g-skins-ligne .g-niveau canvas { width: clamp(96px, 34vh, 150px); height: clamp(96px, 34vh, 150px); }
@media (max-height: 500px) {
  .g-skins-rayon .g-skins-ligne .g-niveau { width: clamp(112px, calc(100vh - 205px), 175px); padding: 8px 6px; gap: 4px; }
  .g-skins-rayon .g-skins-ligne .g-niveau canvas { width: clamp(56px, calc(100vh - 240px), 150px); height: clamp(56px, calc(100vh - 240px), 150px); }
}
@media (min-height: 600px) {
  .g-skins-rayon .g-skins-ligne { flex: 0 1 auto; align-items: center; }
  .g-skins-rayon .g-skins-ligne .g-niveau { width: clamp(150px, 24vh, 250px); }
  .g-skins-rayon .g-skins-ligne .g-niveau canvas { width: clamp(96px, 19vh, 200px); height: clamp(96px, 19vh, 200px); }
}


#hub .g-fonds-case i { display: block; width: 30px; height: 30px; flex: none; border: 1px solid #ffffff2e; }
@media (max-height: 500px) { #hub .g-fonds-case i { width: 24px; height: 24px; } }

@media (max-width: 760px) {
  #hub .boost-slot small, #hub .g-emotes > b, #hub .g-emotes small { display: none; }
  #hub .boost-slot { min-width: 0; }
  #hub .g-emotes { gap: 5px; padding: 3px 7px; }
  #hub .g-party-creer small { display: none; }
}


#hub { --lancer: 300px; }
#hub .collection-head { display: none; }
#hub .g-bas { height: calc(112px + env(safe-area-inset-bottom)); background: none; }
#hub .equipment { background: none; border-bottom: 0; }
#hub .g-nav { top: max(10px, env(safe-area-inset-top)); bottom: 132px; background: none; border-right: 0; }
#hub .showcase { bottom: 184px; }
#hub .g-launch { width: var(--lancer); }
#hub .g-profil { position: absolute; top: max(18px, env(safe-area-inset-top)); right: calc(50% + var(--lancer) / 2 + 14px); }
#hub .g-profil-txt strong { max-width: 150px; }
@media (max-height: 500px) {
  #hub { --lancer: 200px; }
  #hub .g-bas { height: calc(96px + env(safe-area-inset-bottom)); }
  #hub .g-nav { top: max(6px, env(safe-area-inset-top)); bottom: max(4px, env(safe-area-inset-bottom)); }
  #hub .showcase { bottom: 150px; }
  #hub .g-profil { top: max(10px, env(safe-area-inset-top)); right: calc(50% + var(--lancer) / 2 + 10px); }
  #hub .g-profil-txt strong { max-width: 110px; }
}
@media (max-width: 720px) {
  #hub { --lancer: 180px; }
  #hub .g-profil { gap: 7px; }
  #hub .g-profil-txt strong { max-width: 80px; }
}

#hub .g-wallet { margin-left: auto; }


#hub { --nav: 120px; }
#hub .g-nav { top: 0; bottom: 0; width: calc(var(--nav) + env(safe-area-inset-left)); justify-content: flex-start; gap: 2px;
  padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(90deg, #050d18f5, #0a1825ee); border-right: 1px solid #73edff45; box-shadow: 6px 0 22px #0007;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; }
#hub .g-nav::-webkit-scrollbar { display: none; }
#hub .g-nav button { width: calc(var(--nav) - 12px); flex: 0 0 auto; min-height: 62px; max-height: none; }
#hub .g-nav small { font-size: 11px; }
#hub .g-bas { left: calc(var(--nav) + 14px + env(safe-area-inset-left)); }
@media (max-height: 500px) {
  #hub { --nav: 100px; }
  #hub .g-nav { gap: 0; }
  #hub .g-nav button { min-height: 46px; gap: 3px; }
  #hub .g-nav svg { width: 18px; height: 18px; }
  #hub .g-nav small { font-size: 9px; }
  #hub #g-logout { height: 46px; }
  #hub .g-bas { left: calc(var(--nav) + 8px + env(safe-area-inset-left)); }
}

#hub .g-reglages { margin-top: 0; }

#hub .collection { background: #050d18d9; border: 1px solid #73edff45; box-shadow: 0 6px 22px #0007; padding: 6px; }

@media (max-width: 720px) { #hub .g-profil-txt strong { display: none; } }

#hub .g-nav { background: linear-gradient(90deg, #050d18c4, #0a1825b3); }
#hub .g-bas { left: calc(var(--nav) + env(safe-area-inset-left)); right: 0; }
#hub .collection { background: #050d18a6; border: 0; border-top: 1px solid #73edff45; box-shadow: none;
  padding: 6px max(12px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) 12px; }
#hub .equipment { padding: 0 max(12px, env(safe-area-inset-right)) 0 12px; }
@media (max-height: 500px) { #hub .g-bas { left: calc(var(--nav) + env(safe-area-inset-left)); } }
@media (max-width: 720px) { #hub .g-profil .g-xp { display: none; } }

#hub .g-nav { background: none; box-shadow: none; }
#hub .collection { background: none; }

#hub .g-nav button { color: #e6f3f9; text-shadow: 0 1px 2px #000, 0 0 8px #000c; }
#hub .g-nav small { font-weight: 900; font-size: 12px; letter-spacing: .3px; }
#hub .g-nav svg { width: 24px; height: 24px; stroke-width: 2; filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 6px #000b); }
#hub .g-nav button.active { color: var(--g-cyan); }
#hub #g-logout { color: #ffb8a6; }
@media (max-height: 500px) {
  #hub .g-nav small { font-size: 10px; }
  #hub .g-nav svg { width: 20px; height: 20px; }
}


#hub { --cg: env(safe-area-inset-left); --cd: env(safe-area-inset-right); }
#hub.camera-gauche { --cd: min(18px, env(safe-area-inset-right)); }
#hub.camera-droite { --cg: min(18px, env(safe-area-inset-left)); }
#hub .g-head { padding-left: max(26px, var(--cg)); padding-right: max(18px, var(--cd)); }
#hub .g-nav { width: calc(var(--nav) + var(--cg)); padding-left: var(--cg); border-radius: 0 16px 16px 0; }
#hub .g-bas, #hub .g-bas { left: calc(var(--nav) + var(--cg)); }
#hub .collection { padding-right: max(12px, var(--cd)); border-top-left-radius: 16px; border-left: 1px solid #73edff45; }
#hub .equipment { padding-right: max(12px, var(--cd)); }
#hub .g-aside { right: max(18px, var(--cd)); }

#hub .g-wallet { position: absolute; top: max(18px, env(safe-area-inset-top)); left: calc(50% + var(--lancer) / 2 + 12px); right: max(18px, var(--cd));
  margin: 0; justify-content: flex-end; min-width: 0; }
#hub .g-boutique { flex-shrink: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-height: 500px) {
  #hub .g-wallet { top: max(10px, env(safe-area-inset-top)); left: calc(50% + var(--lancer) / 2 + 8px); gap: 6px; }
  #hub .g-boutique { padding: 9px 8px; letter-spacing: .6px; }
  #hub .g-boutique span { margin-left: 6px; }
}
@media (max-height: 500px) { #hub .g-boutique span { display: none; } }

#hub .g-emotes { font-size: 12px !important; letter-spacing: 1px; }
#hub .g-party-creer strong { font-size: 12px; letter-spacing: 1.5px; }
@media (max-height: 500px) {
  #hub .g-emotes { font-size: 11px !important; }
  #hub .g-party-creer strong { font-size: 11px; }
  #hub .g-emotes b { font-size: 15px; }
}


#hub { --mode: 66px; }
#hub .g-launch { transform: translateX(calc(-50% + var(--mode) / 2)); }
#hub .g-profil { right: calc(50% + (var(--lancer) - var(--mode)) / 2 + 14px); }
#hub .g-wallet { left: calc(50% + var(--lancer) / 2 + var(--mode) / 2 + 10px); }
@media (max-height: 500px) {
  #hub { --mode: 56px; }
  #hub .g-profil { right: calc(50% + (var(--lancer) - var(--mode)) / 2 + 10px); }
  #hub .g-wallet { left: calc(50% + var(--lancer) / 2 + var(--mode) / 2 + 8px); }
}

@media (min-height: 501px) and (max-width: 1400px) {
  #hub .g-wallet { gap: 8px; }
  #hub .g-solde small, #hub .g-boutique span { display: none; }
  #hub .g-boutique { padding: 12px 14px; }
}


.g-salons { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 4px 2px 12px; }
.g-ecran .g-salon { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; text-align: left; background: linear-gradient(140deg, #213c4a, #0a1520); }
.g-ecran .g-salon svg { width: 26px; height: 26px; fill: none; stroke: var(--g-cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-ecran .g-salon strong { font-size: 17px; letter-spacing: .5px; }
.g-ecran .g-salon .g-salon-nb { font-size: 13px; color: #b1c4d0; }
.g-ecran .g-salon small { font-size: 10px; letter-spacing: 2px; font-weight: 900; color: var(--g-cyan); }
.g-ecran .g-salon.prive { border-style: dashed; }
@media (max-height: 500px) { .g-salons { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .g-ecran .g-salon { padding: 10px; gap: 3px; } .g-ecran .g-salon strong { font-size: 14px; } }


#hub.in-party .skin-info { display: block; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; }
#hub.in-party #party-stage { bottom: 66px; }
#hub.in-party #party-banner { bottom: 46px; }
@media (max-height: 500px) {
  #hub.in-party #party-stage { bottom: 52px; }
  #hub.in-party #party-banner { bottom: 36px; }
}


#hub .g-liens { flex-direction: column; align-items: stretch; gap: 8px; }
#hub .g-liens .g-lien-carte { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 10px; padding: 9px 12px; text-align: left; text-decoration: none;
  color: #eaf6fb; border-radius: 0; background: linear-gradient(120deg, #152633ce, #0a162077); border-top: 1px solid #73edff55; box-shadow: 0 12px 35px #0002; }
#hub .g-liens .g-lien-carte[data-lien="discord"] { border-top-color: #8b95ffaa; }
#hub .g-liens .g-lien-carte[data-lien="youtube"] { border-top-color: #ff6b7aaa; }
#hub .g-liens .g-lien-carte svg { width: 40px; height: 40px; }
#hub .g-lien-txt small { display: block; font-size: 8px; letter-spacing: 1.5px; color: var(--g-muted); }
#hub .g-lien-txt strong { display: block; font-size: 14px; margin-top: 2px; }
#hub .g-lien-txt em { display: block; font-style: normal; font-size: 9px; color: #b1c4d0; margin-top: 2px; }
#hub .g-liens .g-lien-carte .hub-lien-gain { top: -8px; right: -6px; }
@media (max-height: 500px) {
  #hub .g-liens { gap: 5px; }
  #hub .g-liens .g-lien-carte { grid-template-columns: 30px 1fr; column-gap: 7px; padding: 5px 8px; }
  #hub .g-liens .g-lien-carte svg { width: 28px; height: 28px; }
  #hub .g-lien-txt small { font-size: 7px; }
  #hub .g-lien-txt strong { font-size: 11px; margin-top: 0; }
  #hub .g-lien-txt em { display: none; }
}
@media (max-height: 360px) {
  
  #hub .g-liens { flex-direction: row; }
  #hub .g-liens .g-lien-carte { flex: 1; grid-template-columns: 22px 1fr; column-gap: 5px; padding: 4px 6px; }
  #hub .g-liens .g-lien-carte svg { width: 22px; height: 22px; }
  #hub .g-lien-txt small { display: none; }
  #hub .g-lien-txt strong { font-size: 10px; }
}
@media (max-width: 720px) {
  
  #hub .g-liens { flex-direction: row; }
  #hub .g-liens .g-lien-carte { flex: 1; grid-template-columns: 22px 1fr; column-gap: 5px; padding: 4px 6px; }
  #hub .g-liens .g-lien-carte svg { width: 22px; height: 22px; }
  #hub .g-lien-txt { display: block !important; }
  #hub .g-lien-txt small, #hub .g-lien-txt em { display: none; }
  #hub .g-lien-txt strong { font-size: 10px; }
}

@media (max-height: 500px) {
  #hub .g-nav button, #hub #g-logout { flex: 0 1 46px; min-height: 30px; height: auto; }
}
@media (max-height: 380px) {
  #hub .g-nav button { gap: 1px; }
  #hub .g-nav svg { width: 17px; height: 17px; }
  #hub .g-nav small { font-size: 9px; }
}


@media (max-height: 500px) {
  #hub .g-bas { height: 85px; padding-bottom: 0; }
  #hub .collection { padding-bottom: 2px; }
  #hub .showcase { bottom: 136px; }
  #hub .g-aside { top: 60px; }
  #hub .g-cadeau { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; padding: 5px 8px; }
  #hub .g-cadeau img { grid-row: 1 / 3; width: 30px; height: 30px; margin-top: 0; }
  #hub .g-cadeau strong { display: none; }
  #hub .g-cadeau-titre { grid-column: 2; }
  #hub .g-cadeau-lien { margin-top: 2px; }
}
@media (max-height: 360px) { #hub .g-aside { top: 56px; } }


#hub .g-argent img { width: 22px; height: 22px; margin-right: 4px; filter: drop-shadow(0 1px 2px #000a); }
@media (max-height: 500px) {
  #hub .g-argent img { width: 20px; height: 20px; margin-right: 2px; }
  #hub .g-launch { flex-direction: row-reverse; transform: translateX(calc(-50% - var(--mode) / 2)); }
  #hub .g-profil { right: calc(50% + (var(--lancer) + var(--mode)) / 2 + 10px); }
  #hub .g-wallet { left: calc(50% + (var(--lancer) - var(--mode)) / 2 + 8px); }
  #hub .g-xp { width: 64px; }
}

@media (max-width: 760px) { #hub .boost-slot { min-width: 44px; padding: 3px 5px; gap: 3px; } #hub .boost-slot small, #hub .boost-slot img { display: none; } #hub .g-boost-etat { display: none; } }


#hub .g-offre { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 10px; width: 100%; padding: 9px 12px; text-align: left; cursor: pointer; color: #fff4e0; border: 0; border-top: 2px solid #ffb02e; border-radius: 0; background: linear-gradient(120deg, #c2350fee, #4a0f06ee) !important; box-shadow: 0 0 22px #ff5a0055; }
#hub .g-offre[hidden] { display: none; }
@media (max-height: 340px) { #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-carte .g-lien-txt { display: none !important; } #hub .g-offre:not([hidden]) ~ .g-liens { flex-direction: row !important; } #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-carte { grid-template-columns: 1fr; justify-items: center; flex: 1; } }
#hub .g-offre img { width: 42px; height: 42px; }
#hub .g-offre small { color: #ffd25e; } #hub .g-offre em { color: #ffd9b0; }
@media (max-height: 500px) { #hub .g-offre { grid-template-columns: 30px 1fr; column-gap: 7px; padding: 4px 8px; } #hub .g-offre img { width: 28px; height: 28px; } }
@media (max-height: 360px), (max-width: 720px) { #hub .g-offre { grid-template-columns: 22px 1fr; column-gap: 5px; padding: 4px 6px; } #hub .g-offre img { width: 22px; height: 22px; } #hub .g-offre .g-lien-txt small, #hub .g-offre .g-lien-txt em { display: none; } }


#hub .g-boost-case { position: relative; }
#hub .g-boost-case img.eteint { opacity: .45; filter: grayscale(1); }
#hub .g-boost-case.actif { border-color: var(--g-cyan); background: #30617780; box-shadow: inset 0 0 12px #65dbff1c; }
#hub .g-boost-case:disabled { opacity: .35; cursor: default; }
#hub .g-boost-case .g-boost-stock { position: absolute; right: 4px; top: 2px; font-size: 9px; font-style: normal; color: #d6e8ef; }
.g-ecran .g-boost-titre { margin: 4px 0 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--g-cyan, #73edff); }
.g-ecran .g-boost-rangee { padding-bottom: 6px; }
.g-ecran .g-boost-carte { position: relative; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px 8px; }
.g-ecran .g-boost-carte img { width: 56px; height: 56px; object-fit: contain; }
.g-ecran .g-boost-carte .no-boost { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #9db5c4; }
.g-ecran .g-boost-carte strong { font-size: 14px; }
.g-ecran .g-boost-carte small { font-size: 10px; color: #9db5c4; text-align: center; }
.g-ecran .g-boost-carte i { font-size: 10px; font-style: normal; color: #d6e8ef; }
.g-ecran .g-boost-carte[aria-pressed="true"] { border-color: var(--g-cyan, #73edff); background: #30617780; box-shadow: inset 0 0 14px #65dbff33, 0 0 12px #65dbff33; }
.g-ecran .g-boost-carte:disabled { opacity: .4; cursor: default; }
.g-ecran .g-boost-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (max-height: 500px) { .g-ecran .g-boost-carte { width: 112px; padding: 6px; } .g-ecran .g-boost-carte img, .g-ecran .g-boost-carte .no-boost { width: 40px; height: 40px; } }


@media (max-height: 500px) {
  #hub .g-nav button, #hub #g-logout { flex: 0 0 44px !important; min-height: 44px !important; height: 44px !important; }
  #hub .g-nav { justify-content: flex-start !important; }
  #hub .g-boutique { flex: none !important; padding: 9px 8px !important; }
  #hub .g-wallet { gap: 5px !important; }
  #hub .g-solde { gap: 3px; font-size: 13px; }
  #hub .g-solde img, #hub .g-solde .diamond { flex: none; }
  #hub .g-solde .bal-plus { width: 20px !important; height: 20px !important; font-size: 14px !important; margin-left: 2px !important; }
}
@media (max-height: 500px) and (max-width: 820px) {
  #hub .g-solde { font-size: 12px; }
  #hub .g-solde img, #hub .g-solde .cle-ico { width: 16px !important; height: 16px !important; }
  #hub .g-wallet { gap: 4px !important; }
}
@media (max-height: 360px), (max-width: 720px) {
  #hub .g-liens, #hub .g-offre:not([hidden]) ~ .g-liens { flex-direction: column !important; align-items: stretch; gap: 4px; }
  #hub .g-liens .g-lien-carte, #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-carte { flex: none !important; grid-template-columns: 20px 1fr !important; justify-items: start !important; column-gap: 6px; padding: 3px 8px !important; min-height: 26px; }
  #hub .g-liens .g-lien-carte svg { width: 20px !important; height: 20px !important; }
  #hub .g-liens .g-lien-carte .g-lien-txt, #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-carte .g-lien-txt { display: block !important; }
  #hub .g-lien-txt small, #hub .g-lien-txt em { display: none !important; }
  #hub .g-lien-txt strong { font-size: 10px; }
  #hub .g-liens .g-lien-carte .hub-lien-gain { top: 50% !important; right: 4px !important; transform: translateY(-50%); }
}
@media (max-height: 500px) and (max-width: 960px) {
  #hub .g-boutique { padding: 8px 7px !important; font-size: 9px !important; letter-spacing: .2px !important; }
  #hub .g-solde .bal-plus { width: 18px !important; height: 18px !important; font-size: 13px !important; margin-left: 1px !important; }
  #hub .g-solde img, #hub .g-solde .cle-ico { width: 15px !important; height: 15px !important; }
  #hub .g-solde .diamond { transform: scale(.8); margin: 0 -2px; }
  #hub .g-solde { gap: 2px !important; font-size: 12px !important; }
  #hub .g-wallet { gap: 3px !important; }
}


@media (max-height: 500px) {
  .ol-banniere { font-size: 10.5px !important; padding: 3px 10px !important; gap: 4px !important; }
  #hub .g-aside { width: 136px !important; }
  #hub .showcase { bottom: 134px !important; justify-content: space-between !important; padding-top: 6px; }
  #hub .specimen { width: min(27vh, 150px) !important; margin: auto 0; }
  #hub .skin-info { margin-top: 0 !important; }
  #hub .g-pseudo { height: 28px !important; font-size: 12px !important; width: min(170px, 36vw) !important; padding: 0 10px !important; }
}
@media (max-height: 360px) {
  #hub .specimen { width: min(25vh, 130px) !important; }
}
@media (max-height: 500px) {
  #hub .g-cadeau-titre { white-space: nowrap; letter-spacing: .5px !important; font-size: 8px !important; }
  #hub .g-cadeau-lien { white-space: nowrap; letter-spacing: .5px !important; }
}

@media (max-height: 500px) {
  #hub .specimen { width: min(27vh, 150px) !important; width: min(25dvh, 150px) !important; }
  #hub .showcase { bottom: 140px !important; }
}
@media (max-height: 360px) {
  #hub .specimen { width: min(25vh, 130px) !important; width: min(23dvh, 120px) !important; }
}

@media (min-height: 501px) and (max-width: 1680px) and (orientation: landscape) {
  #hub .g-launch { flex-direction: row-reverse; transform: translateX(calc(-50% - var(--mode) / 2)); }
  #hub .g-profil { right: calc(50% + (var(--lancer) + var(--mode)) / 2 + 14px); }
  #hub .g-wallet { left: calc(50% + (var(--lancer) - var(--mode)) / 2 + 10px); }
  #hub .g-boutique { flex: none !important; }
}

.g-skinperso { position: fixed; inset: 0; z-index: 200; background: #000b; display: flex; align-items: center; justify-content: center; padding: 16px; }
.g-skinperso-carte { background: #0c1a26; border: 1px solid #73edff45; border-radius: 14px; padding: 16px; width: min(420px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.g-skinperso-carte h3 { margin: 0; font-size: 18px; }
.g-skinperso-cv { width: min(300px, 70vw, 50vh); height: auto; aspect-ratio: 1; align-self: center; border-radius: 50%; touch-action: none; cursor: grab; box-shadow: 0 0 0 2px #73edff55; }
.g-skinperso-carte input[type=range] { width: 100%; }
.g-skinperso-carte { overflow-x: hidden; font: inherit; color: #e8f1ff; }
.g-skinperso-carte button { font: inherit; font-weight: 800; border-radius: 10px; padding: 12px 14px; cursor: pointer; border: 1px solid #73edff45; background: #12283a; color: #e8f1ff; }
.g-skinperso-carte button.g-primaire { background: linear-gradient(120deg, #7ff0ff, #2bb7d9); color: #062434; border: 0; }
.g-skinperso-carte button:disabled { opacity: .5; cursor: default; }
.g-skinperso-carte input[type=file] { color: #9fb3c8; max-width: 100%; }


#hub .mini-chat { position: absolute; z-index: 3; left: calc(var(--nav, 120px) + var(--cg, 0px) + 18px); top: 150px; bottom: 250px;
  width: min(300px, calc(50vw - var(--nav, 120px) - 160px)); display: flex; flex-direction: column; overflow: hidden;
  background: transparent; border: 1px solid #73edff59; border-radius: 14px; 
  color: #e8f1ff; font-size: 12px; line-height: 1.35; text-shadow: 0 1px 2px #000, 0 0 6px #000c; }
#hub .mini-chat[hidden] { display: none; }
#hub .mc-tete { display: flex; gap: 4px; padding: 6px 6px 4px; border-bottom: 1px solid #73edff1f; flex: none; }
#hub .mc-tete button { flex: 1 1 0; min-width: 0; font: inherit; font-weight: 800; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #9fb3c8;
  background: #0d1f2e; border: 1px solid #73edff26; border-radius: 8px; padding: 5px 4px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hub .mc-tete button.selected { color: #062434; background: linear-gradient(120deg, #7ff0ff, #2bb7d9); border-color: transparent; }
#hub .mc-tete .mc-ouvrir { flex: 0 0 30px; font-size: 14px; padding: 2px 0; text-transform: none; }
#hub .mc-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 9px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; overscroll-behavior: contain; }
#hub .mc-ligne { word-break: break-word; }
#hub .mc-ligne .chat-tag { font-size: 11px; }
#hub .mc-nom { color: #7ff0ff; cursor: pointer; }
#hub .mc-ligne.moi .mc-nom { color: #ffd34d; }
#hub .mc-ligne.modo .mc-nom { color: #ff9b6b; }
#hub .mc-texte { color: #dce8f5; }
#hub .mc-vide { margin: auto 0; text-align: center; color: #9fb3c8; font-size: 11px; }
#hub .mc-form { display: flex; gap: 4px; padding: 5px 6px 6px; border-top: 1px solid #73edff1f; flex: none; }
#hub .mc-form input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 12px; color: #e8f1ff; background: #0b1a27; border: 1px solid #73edff2e; border-radius: 8px; padding: 6px 8px; }
#hub .mc-form input:disabled { opacity: .6; }
#hub .mc-form button { flex: none; width: 32px; font: inherit; font-size: 13px; color: #062434; background: linear-gradient(120deg, #7ff0ff, #2bb7d9); border: 0; border-radius: 8px; cursor: pointer; }
#hub .mc-form button:disabled { opacity: .5; cursor: default; }
@media (max-height: 500px) {
  #hub .mini-chat { left: calc(var(--nav, 100px) + var(--cg, 0px) + 12px); top: 92px; bottom: 136px; width: min(240px, calc(50vw - var(--nav, 100px) - 120px)); font-size: 11px; border-radius: 12px; }
  #hub .mc-tete { padding: 4px 4px 3px; } #hub .mc-tete button { font-size: 10px; padding: 3px 2px; }
  #hub .mc-liste { padding: 4px 7px; } #hub .mc-form { padding: 3px 4px 4px; } #hub .mc-form input { padding: 4px 6px; font-size: 11px; }
}
@media (max-width: 560px), (max-height: 250px) { #hub .mini-chat { display: none !important; } }

@media (max-height: 380px) {
  #hub .mini-chat { top: 84px; bottom: 128px; width: min(240px, calc(50vw - var(--nav, 100px) - 96px)); }
  #hub .mc-tete button { font-size: 9px; letter-spacing: 0; }
  #hub .mc-tete .mc-ouvrir { flex-basis: 24px; }
  #hub .mc-liste { gap: 1px; line-height: 1.25; }
}

@media (max-height: 500px) {
  #hub .mini-chat { top: 56px; }
  #hub:has(.mini-chat:not([hidden])) .location { display: none; }
}

@media (max-height: 360px) and (min-height: 300px) and (min-width: 721px) {
  #hub .g-offre[hidden] ~ .g-liens .g-lien-carte { grid-template-columns: 28px 1fr !important; column-gap: 8px; padding: 5px 9px !important; min-height: 38px; }
  #hub .g-offre[hidden] ~ .g-liens .g-lien-carte svg { width: 26px !important; height: 26px !important; }
  #hub .g-offre[hidden] ~ .g-liens .g-lien-txt small { display: block !important; font-size: 7px; letter-spacing: .8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
  #hub .g-offre[hidden] ~ .g-liens .g-lien-txt { min-width: 0; }
  #hub .g-offre[hidden] ~ .g-liens .g-lien-txt strong { font-size: 12px; }
  #hub .g-offre[hidden] ~ .g-liens .g-lien-carte .hub-lien-gain { top: -7px !important; right: -5px !important; transform: none; }
  #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-carte { min-height: 32px; }
  #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-carte svg { width: 22px !important; height: 22px !important; }
  #hub .g-offre:not([hidden]) ~ .g-liens .g-lien-txt strong { font-size: 11px; }
}

#hub .g-aside > .g-liens { width: 100%; align-self: stretch; box-sizing: border-box; }
#hub .g-aside > .g-liens > .g-lien-carte { box-sizing: border-box; min-width: 0; }
@media (max-height: 500px) { #hub .g-aside > .g-liens { flex-direction: column !important; align-items: stretch !important; } #hub .g-aside > .g-liens > .g-lien-carte { width: 100%; flex: none !important; } }

@media (max-height: 500px) {
  #hub .collection { padding-top: 2px; }
  #hub .g-bas { height: 81px; }
  #hub .showcase { bottom: 132px; }
  #hub .mini-chat { bottom: 132px; }
}
@media (max-height: 380px) { #hub .mini-chat { bottom: 124px; } }

@media (max-height: 600px) {
  .g-skinperso { padding: 8px; }
  .g-skinperso-carte { width: min(760px, 100%); display: grid; grid-template-columns: auto 1fr; grid-auto-rows: min-content; column-gap: 16px; row-gap: 8px; padding: 12px 14px; align-items: start; }
  .g-skinperso-carte h3 { grid-column: 1 / -1; font-size: 16px; }
  .g-skinperso-carte .g-skinperso-cv { grid-column: 1; grid-row: 2 / span 6; width: min(62vh, 240px); }
  .g-skinperso-carte input[type=range] { grid-column: 1; grid-row: 8; }
  .g-skinperso-carte > :not(h3):not(.g-skinperso-cv):not(input[type=range]) { grid-column: 2; }
  .g-skinperso-carte button { padding: 9px 12px; }
}
@media (max-height: 380px) {
  .g-skinperso-carte { row-gap: 5px; padding: 8px 12px; }
  .g-skinperso-carte h3 { font-size: 14px; }
  .g-skinperso-carte .g-note { font-size: 12px; margin: 0; line-height: 1.3; }
  .g-skinperso-carte .c-field { padding-top: 6px; padding-bottom: 6px; min-height: 0; }
  .g-skinperso-carte .g-skinperso-cv { width: min(56vh, 200px); }
  .g-skinperso-carte button { padding: 7px 12px; }
}

.g-skinperso-carte input.c-field { font-size: 16px !important; }

@media (min-height: 700px) {
  #hub .g-nav button { min-height: clamp(62px, 8.4vh, 96px); }
  #hub #g-logout { margin-top: auto; }
}


#hub { --profil-h: 104px; }
#hub .g-profil { position: absolute; left: var(--cg); right: auto !important; top: max(10px, env(safe-area-inset-top)); width: var(--nav);
  flex-direction: column; align-items: center; gap: 4px; text-align: center; z-index: 6; }
#hub .g-profil-txt { display: flex; flex-direction: column; align-items: center; max-width: calc(var(--nav) - 10px); }
#hub .g-profil-txt strong { display: block !important; font-size: 13px; max-width: calc(var(--nav) - 10px); }
#hub .g-profil-txt small { font-size: 9px; letter-spacing: 1px; }
#hub .g-profil .g-xp { display: block !important; width: calc(var(--nav) - 34px); margin-top: 4px; }
#hub .g-pastille { left: calc(50% + 10px); }
#hub .g-nav { top: calc(max(10px, env(safe-area-inset-top)) + var(--profil-h)) !important; }
@media (max-height: 500px) {
  #hub { --profil-h: 58px; }
  #hub .g-profil-txt strong { display: none !important; }
  #hub .g-profil .g-xp { width: calc(var(--nav) - 40px); margin-top: 2px; }
}

#hub .g-prem { position: absolute; z-index: 5; top: max(18px, env(safe-area-inset-top)); right: calc(50% + (var(--lancer) - var(--mode)) / 2 + 14px);
  display: flex; align-items: center; gap: 4px; }
#hub .g-prem-btn { display: flex; align-items: center; gap: 8px; padding: 0; border: 0 !important; background: none !important; color: #fff; text-align: left; }
#hub .g-prem-btn img { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 2px 6px #000a); }
#hub .g-prem-txt small { display: block; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; color: #ffd166; }
#hub .g-prem-txt b { display: block; font-size: 17px; font-weight: 900; color: #c4d2dc; white-space: nowrap; }
#hub .g-prem.actif .g-prem-txt b { color: #fff; text-shadow: 0 0 10px #ffd16688; }
#hub .g-prem .bal-plus { width: 24px; height: 24px; margin-left: 4px; font-size: 17px; border: 0; background: #ffd166; color: #2b1600; }
@media (max-height: 500px) {
  #hub .g-prem { top: max(10px, env(safe-area-inset-top)); right: calc(50% + (var(--lancer) + var(--mode)) / 2 + 10px); }
  #hub .g-prem-btn { gap: 5px; }
  #hub .g-prem-btn img { width: 32px; height: 32px; }
  #hub .g-prem-txt small { font-size: 8px; letter-spacing: 1px; }
  #hub .g-prem-txt b { font-size: 13px; }
  #hub .g-prem .bal-plus { width: 20px; height: 20px; font-size: 14px; }
}
@media (min-height: 501px) and (max-width: 1680px) and (orientation: landscape) {
  #hub .g-prem { right: calc(50% + (var(--lancer) + var(--mode)) / 2 + 14px); }
}
@media (max-width: 720px) { #hub .g-prem-txt small { display: none; } }
@media (max-height: 500px) {
  
  #hub .g-nav button, #hub #g-logout { flex: 0 0 auto !important; min-height: 0 !important; height: clamp(28px, calc((100vh - var(--profil-h) - 26px) / 9), 44px) !important; height: clamp(28px, calc((100dvh - var(--profil-h) - 26px) / 9), 44px) !important; }
}
