/* GuessLab : se connecter (16 nov. 2026). Le bouton du haut (tête de chien + « se connecter ») et la fenêtre de hub/login.js :
   feuille qui monte du bas sur téléphone, fenêtre centrée sur ordinateur ; nuit, verre, néon rose et orange, la meute en gelée
   assise sur le bord. */

/* ---------- le bouton en haut à droite ---------- */
.nav__login{ display:inline-flex; align-items:center; gap:9px; height:40px; padding:0 15px 0 3px; border:0; border-radius:999px; cursor:pointer; flex:none;
  background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); color:#F5F2EC; font:inherit; font-size:15px; font-weight:600; letter-spacing:-.01em;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; -webkit-user-select:none; user-select:none;
  transition:transform .16s cubic-bezier(.23,1,.32,1), background-color .2s ease; }
.nav__login[hidden]{ display:none !important; }
.nav__login img{ width:34px; height:34px; border-radius:50%; flex:none; box-shadow:0 0 0 2px #08080D, 0 0 0 3.5px #FF2DAA, 0 4px 14px -4px rgba(255,45,170,.7); }
.nav__login span{ white-space:nowrap; }
.nav__login:active{ transform:scale(.96); }
.nav__login:focus-visible, .nav__me:focus-visible{ outline:2px solid #FF2DAA; outline-offset:3px; }
@media (hover:hover) and (pointer:fine){ .nav__login:hover{ background:rgba(255,255,255,.13); } }
@media (max-width:700px){ .nav__login{ height:44px; padding:0 15px 0 4px; font-size:14.5px; } .nav__login img{ width:36px; height:36px; } }

/* la puce du joueur, juste après le choix du chien : elle « atterrit » */
.nav__me.is-new{ animation:glx-land .6s cubic-bezier(.32,1.25,.5,1) both; }
.nav__me.is-new img{ animation:glx-hop .7s cubic-bezier(.3,.7,.4,1) .08s both; }
@keyframes glx-land{ from{ transform:scale(.86); opacity:.4; } }

/* ---------- la fenêtre ---------- */
html.glx-lock, html.glx-lock body{ overflow:hidden; }
.glx{ position:fixed; inset:0; z-index:120; display:grid; align-items:end; justify-items:center; overscroll-behavior:contain; }
.glx[hidden]{ display:none; }
.glx__scrim{ position:absolute; inset:0; background:rgba(4,4,8,.62); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); opacity:0; transition:opacity .3s ease; }
.glx.is-on .glx__scrim{ opacity:1; }
.glx.is-out .glx__scrim{ opacity:0; transition-duration:.22s; }

.glx__sheet{ position:relative; width:100%; max-width:520px; transform:translateY(105%); transition:transform .46s cubic-bezier(.32,.72,0,1); will-change:transform; }
.glx.is-on .glx__sheet{ transform:none; }
.glx.is-out .glx__sheet{ transform:translateY(105%); transition:transform .24s cubic-bezier(.4,0,1,1); }
.glx__sheet.is-drag{ transition:none !important; }

.glx__panel{ position:relative; z-index:1; max-height:calc(100dvh - 104px - env(safe-area-inset-top)); overflow-y:auto; overscroll-behavior:contain;
  padding:6px 22px calc(18px + env(safe-area-inset-bottom)); border-radius:30px 30px 0 0; color:#F5F2EC;
  background:radial-gradient(120% 60% at 50% 0%, rgba(123,44,255,.16), transparent 60%), linear-gradient(180deg, #17141F, #0E0D14 70%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.06), 0 -24px 70px -24px rgba(255,45,170,.45);
  scrollbar-width:none; }
.glx__panel::-webkit-scrollbar{ display:none; }
/* le liseré néon en haut de la fenêtre */
.glx__panel::before{ content:""; position:absolute; left:28px; right:28px; top:0; height:1px; border-radius:1px;
  background:linear-gradient(90deg, transparent, #7B2CFF 20%, #FF2DAA 50%, #FF9A3C 80%, transparent); opacity:.9; }

/* la meute assise sur le bord : seules les têtes dépassent */
.glx__art{ position:absolute; left:0; right:0; bottom:calc(100% - 46px); height:150px; pointer-events:none; }
.glx__dog{ position:absolute; bottom:0; left:50%; width:132px; height:auto; z-index:0; filter:drop-shadow(0 10px 18px rgba(0,0,0,.55));
  transform:translate(-50%, 70%); opacity:0; transition:transform .55s cubic-bezier(.32,1.25,.5,1), opacity .25s ease; }
.glx__dog--c{ width:150px; }
.glx.is-on .glx__dog--l{ transform:translate(calc(-50% - 78px), 6%) rotate(-8deg); opacity:1; transition-delay:.16s; }
.glx.is-on .glx__dog--c{ transform:translate(-50%, 0); opacity:1; transition-delay:.1s; }
.glx.is-on .glx__dog--r{ transform:translate(calc(-50% + 78px), 6%) rotate(8deg); opacity:1; transition-delay:.21s; }
.glx[data-v="dog"] .glx__dog{ transform:translate(-50%, 80%) !important; opacity:0 !important; transition-delay:0s !important; transition-duration:.25s; }
/* au choix du chien, l'avatar choisi prend leur place, en médaillon sur le bord */
.glx__me{ position:absolute; left:50%; bottom:-6px; z-index:2; width:96px; height:96px; border-radius:50%;
  box-shadow:0 0 0 5px #17141F, 0 0 0 7.5px #FF2DAA, 0 18px 40px -12px rgba(255,45,170,.7);
  transform:translate(-50%, 30%) scale(.6); opacity:0; transition:transform .45s cubic-bezier(.32,1.25,.5,1), opacity .2s ease; }
.glx[data-v="dog"] .glx__me{ transform:translate(-50%, 0); opacity:1; transition-delay:.08s; }
.glx__me.is-hop{ animation:glx-hop .7s cubic-bezier(.3,.7,.4,1) both; }
.glx[data-v="dog"] .glx__top{ height:52px; }

.glx__top{ position:relative; height:34px; transition:height .25s ease; }
.glx__grab{ position:absolute; left:50%; top:4px; width:40px; height:5px; margin-left:-20px; border-radius:3px; background:rgba(255,255,255,.22); }
.glx__ic{ position:absolute; top:6px; display:grid; place-items:center; width:40px; height:40px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.07); color:rgba(245,242,236,.75); -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  transition:transform .16s cubic-bezier(.23,1,.32,1), background-color .2s ease, color .2s ease; }
.glx__ic[hidden]{ display:none; }
.glx__ic svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.glx__x{ right:-8px; } .glx__back{ left:-8px; }
.glx__ic:active{ transform:scale(.92); }
@media (hover:hover) and (pointer:fine){ .glx__ic:hover{ background:rgba(255,255,255,.13); color:#F5F2EC; } }

.glx__v{ display:grid; padding-top:6px; }
.glx__v[hidden]{ display:none; }
.glx__v.is-in{ animation:glx-view .26s cubic-bezier(.23,1,.32,1) both; }
@keyframes glx-view{ from{ opacity:0; transform:translateY(8px); filter:blur(2px); } }
.glx__t{ margin:0 auto; max-width:16em; text-align:center; font:700 clamp(24px, 6.6vw, 28px)/1.12 'Plus Jakarta Sans', Geist, system-ui, sans-serif; letter-spacing:-.03em; text-wrap:balance; color:#FBF8F3; }
.glx__s{ margin:10px auto 0; max-width:30em; text-align:center; color:rgba(245,242,236,.66); font-size:15px; line-height:1.45; text-wrap:pretty; }

.glx__g{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:54px; margin-top:22px; border:0; border-radius:999px; cursor:pointer;
  background:#F5F2EC; color:#0A0A0A; font:inherit; font-size:16px; font-weight:650; letter-spacing:-.01em; box-shadow:0 12px 30px -14px rgba(255,255,255,.35);
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; transition:transform .16s cubic-bezier(.23,1,.32,1), filter .2s ease; }
.glx__g svg{ width:20px; height:20px; flex:none; }
.glx__g:active{ transform:scale(.97); }
@media (hover:hover) and (pointer:fine){ .glx__g:hover{ filter:brightness(1.05); } }

.glx__or{ display:flex; align-items:center; gap:12px; margin:20px 0 4px; color:rgba(245,242,236,.5); font-size:13px; }
.glx__or::before, .glx__or::after{ content:""; flex:1; height:1px; background:rgba(255,255,255,.1); }

.glx__f{ display:grid; gap:12px; margin-top:12px; }
.glx__l{ display:grid; gap:6px; }
.glx__lt{ color:rgba(245,242,236,.72); font-size:13px; font-weight:550; padding-left:4px; }
.glx__i{ width:100%; height:52px; padding:0 16px; border:0; border-radius:15px; background:rgba(255,255,255,.055); color:#F5F2EC; font:inherit; font-size:16px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); caret-color:#FF2DAA; transition:box-shadow .18s ease, background-color .18s ease; -webkit-appearance:none; appearance:none; }
.glx__i::placeholder{ color:rgba(245,242,236,.34); }
.glx__i:focus{ outline:none; background:rgba(255,255,255,.075); box-shadow:inset 0 0 0 2px #FF2DAA, 0 0 0 4px rgba(255,45,170,.16); }
.glx__i[aria-invalid="true"]{ box-shadow:inset 0 0 0 2px #FF6B8B; }
.glx__i:-webkit-autofill{ -webkit-text-fill-color:#F5F2EC; -webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,.1), inset 0 0 0 60px #1E1B27; }
.glx__pw{ position:relative; display:block; }
.glx__pw .glx__i{ padding-right:56px; }
.glx__eye{ position:absolute; right:4px; top:4px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:12px; background:none; cursor:pointer;
  color:rgba(245,242,236,.6); -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.glx__eye svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.glx__eye .glx__eye-off, .glx__eye[aria-pressed="true"] .glx__eye-on{ display:none; }
.glx__eye[aria-pressed="true"] .glx__eye-off{ display:block; }
.glx__eye:focus-visible{ outline:2px solid #FF2DAA; outline-offset:-2px; }
@media (hover:hover) and (pointer:fine){ .glx__eye:hover{ color:#F5F2EC; } }
.glx__hint{ margin:-4px 0 0; padding-left:4px; color:rgba(245,242,236,.5); font-size:13px; line-height:1.4; }
.glx__err{ margin:0; padding-left:4px; color:#FF7A93; font-size:14px; line-height:1.4; }
.glx__err:not(.is-on){ display:none; }
.glx__err.is-on{ animation:glx-err .3s cubic-bezier(.23,1,.32,1); }
@keyframes glx-err{ from{ opacity:0; transform:translateY(-4px); } }

.glx__go{ position:relative; display:flex; align-items:center; justify-content:center; height:54px; margin-top:4px; border:0; border-radius:999px; cursor:pointer;
  background:linear-gradient(90deg, #FF2DAA, #FF9A3C); color:#0A0A0A; font:inherit; font-size:17px; font-weight:700; letter-spacing:-.015em;
  box-shadow:0 16px 36px -16px rgba(255,45,170,.8), inset 0 1px 0 rgba(255,255,255,.35);
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; -webkit-user-select:none; user-select:none;
  transition:transform .16s cubic-bezier(.23,1,.32,1), filter .2s ease; }
.glx__go:active{ transform:scale(.97); }
.glx__go:focus-visible, .glx__g:focus-visible, .glx__alt:focus-visible, .glx__ic:focus-visible{ outline:2px solid #FF2DAA; outline-offset:3px; }
@media (hover:hover) and (pointer:fine){ .glx__go:hover{ filter:brightness(1.06); } }
.glx__go.is-busy span, .glx__g.is-busy span{ opacity:.25; }
.glx__go.is-busy::after, .glx__g.is-busy::after{ content:""; position:absolute; width:20px; height:20px; border-radius:50%; border:2.5px solid rgba(10,10,10,.25); border-top-color:#0A0A0A; animation:glx-spin .6s linear infinite; }
.glx__g{ position:relative; }
.glx__go:disabled, .glx__g:disabled{ cursor:default; }
@keyframes glx-spin{ to{ transform:rotate(360deg); } }

.glx__alt{ justify-self:center; min-height:44px; margin-top:10px; padding:0 12px; border:0; background:none; cursor:pointer; color:rgba(245,242,236,.62); font:inherit; font-size:14.5px;
  text-decoration:underline; text-decoration-color:rgba(245,242,236,.25); text-underline-offset:4px; -webkit-tap-highlight-color:transparent; }
@media (hover:hover) and (pointer:fine){ .glx__alt:hover{ color:#F5F2EC; text-decoration-color:#FF2DAA; } }

/* le choix du chien */
.glx__sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.glx__dogs{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin:6px 0 6px; padding:6px; border:0; min-width:0; }
.glx__d{ position:relative; display:block; aspect-ratio:1; border-radius:50%; cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  transition:transform .2s cubic-bezier(.23,1,.32,1), box-shadow .2s ease; }
.glx__d input{ position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.glx__d img{ display:block; width:100%; height:100%; border-radius:50%; pointer-events:none; filter:saturate(.85) brightness(.9); transition:filter .2s ease; }
.glx__d:has(input:checked){ transform:scale(1.06); box-shadow:0 0 0 3px #15131D, 0 0 0 6px #FF2DAA, 0 12px 26px -8px rgba(255,45,170,.75); }
.glx__d:has(input:checked) img{ filter:none; }
.glx__d:has(input:focus-visible){ outline:2px solid #F5F2EC; outline-offset:8px; }
.glx__d:active{ transform:scale(.94); }
.glx__d.is-hop img{ animation:glx-hop .7s cubic-bezier(.3,.7,.4,1) both; }
@media (hover:hover) and (pointer:fine){ .glx__d:hover img{ filter:none; } }
.glx__v.is-in .glx__d{ animation:glx-pop .42s cubic-bezier(.32,1.25,.5,1) both; animation-delay:calc(var(--i) * 35ms + 60ms); }
@keyframes glx-pop{ from{ opacity:0; transform:translateY(10px) scale(.9); } }
/* un petit saut en gelée : on s'écrase, on monte, on retombe */
@keyframes glx-hop{ 0%{ transform:none; } 18%{ transform:scale(1.1, .88); } 45%{ transform:translateY(-12px) scale(.94, 1.08); } 72%{ transform:translateY(0) scale(1.05, .95); } 100%{ transform:none; } }

/* ---------- ordinateur : fenêtre centrée ---------- */
@media (min-width:701px){
  .glx{ align-items:center; padding:24px; }
  .glx__sheet{ width:440px; max-width:100%; margin-top:96px; transform:translateY(14px) scale(.96); opacity:0;
    transition:transform .28s cubic-bezier(.23,1,.32,1), opacity .2s ease; }
  .glx.is-on .glx__sheet{ transform:none; opacity:1; }
  .glx.is-out .glx__sheet{ transform:scale(.97); opacity:0; transition:transform .16s ease-out, opacity .16s ease-out; }
  .glx__panel{ max-height:calc(100dvh - 150px); padding:8px 32px 30px; border-radius:30px; box-shadow:inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.07), 0 40px 90px -30px rgba(0,0,0,.95), 0 0 80px -30px rgba(255,45,170,.45); }
  .glx__grab{ display:none; }
  .glx__x{ right:-18px; top:2px; } .glx__back{ left:-18px; top:2px; }
}

@media (prefers-reduced-motion:reduce){
  .glx__sheet, .glx.is-on .glx__sheet, .glx.is-out .glx__sheet{ transform:none !important; transition:opacity .2s ease; }
  .glx__sheet{ opacity:0; } .glx.is-on .glx__sheet{ opacity:1; } .glx.is-out .glx__sheet{ opacity:0; }
  .glx__dog, .glx__me{ transition:opacity .2s ease !important; }
  .glx.is-on .glx__dog--l{ transform:translate(calc(-50% - 78px), 6%) rotate(-8deg); }
  .glx__v.is-in, .glx__v.is-in .glx__d, .glx__err.is-on, .nav__me.is-new, .nav__me.is-new img{ animation:none; }
}

/* l'onglet profil : la carte « se connecter » ouvre la même fenêtre pour l'e-mail */
.acct__mail{ display:flex; align-items:center; justify-content:center; width:100%; height:52px; margin-top:10px; border:0; border-radius:999px; cursor:pointer;
  background:rgba(255,255,255,.07); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); color:#F5F2EC; font:inherit; font-size:16px; font-weight:600;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; transition:transform .16s cubic-bezier(.23,1,.32,1); }
.acct__mail:active{ transform:scale(.98); }
@media (hover:hover) and (pointer:fine){ .acct__mail:hover{ background:rgba(255,255,255,.11); } }
@media (min-width:900px){ #vProfil .acct__mail{ max-width:440px; } }

/* téléphone étroit : « jouer » et « se connecter » côte à côte ; le mot guesslab laisse la place, le logo reste */
@media (max-width:440px){
  .nav__login{ gap:7px; padding:0 13px 0 4px; font-size:14px; }
  .nav:has(.nav__login:not([hidden])) .nav__word{ display:none; }
}

/* e-mails des nouveaux jeux (16 nov. 2026) : « tu as 15 ans ou plus ? » puis la case, jamais cochée d'avance */
.glx__mail{ display:grid; gap:12px; padding:14px; border-radius:18px; background:rgba(255,255,255,.035); box-shadow:inset 0 0 0 1px rgba(255,255,255,.07); }
.glx__mail[hidden], .glx__news[hidden]{ display:none; }
.glx__age{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0; padding:0; border:0; min-width:0; }
.glx__age legend{ float:left; padding:0; font-size:14.5px; color:#F5F2EC; }
.glx__seg{ display:inline-flex; flex:none; padding:3px; border-radius:999px; background:rgba(255,255,255,.07); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.glx__seg label{ position:relative; }
.glx__seg input{ position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.glx__seg span{ display:grid; place-items:center; min-width:58px; height:38px; padding:0 14px; border-radius:999px; font-size:14.5px; font-weight:600; color:rgba(245,242,236,.7); transition:background-color .18s ease, color .18s ease; }
.glx__seg input:checked + span{ background:#F5F2EC; color:#0A0A0A; }
.glx__seg input:focus-visible + span{ outline:2px solid #FF2DAA; outline-offset:2px; }
.glx__news{ display:flex; align-items:flex-start; gap:12px; cursor:pointer; font-size:14px; line-height:1.45; color:rgba(245,242,236,.78); }
.glx__news input{ flex:none; width:22px; height:22px; margin:1px 0 0; accent-color:#FF2DAA; cursor:pointer; }
.glx__news:has(input:not(:checked)) input{ opacity:.85; }

/* l'onglet profil : l'interrupteur « Nouveaux jeux par e-mail » */
.acct__news{ display:flex; align-items:center; gap:14px; margin-top:16px; padding:14px 0 0; box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.acct__news > span{ display:grid; gap:2px; flex:1; min-width:0; }
.acct__news b{ font-size:15.5px; font-weight:600; color:var(--ink, #F5F2EC); }
.acct__news small{ font-size:13px; color:var(--ink-2, rgba(245,242,236,.6)); line-height:1.4; }
.gl-sw{ position:relative; flex:none; width:52px; height:32px; padding:0; border:0; border-radius:999px; cursor:pointer; background:rgba(255,255,255,.14);
  transition:background-color .2s ease; -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.gl-sw::after{ content:""; position:absolute; left:3px; top:3px; width:26px; height:26px; border-radius:50%; background:#F5F2EC; box-shadow:0 2px 6px rgba(0,0,0,.4);
  transition:transform .22s cubic-bezier(.23,1,.32,1); }
.gl-sw[aria-checked="true"]{ background:linear-gradient(90deg, #FF2DAA, #FF9A3C); }
.gl-sw[aria-checked="true"]::after{ transform:translateX(20px); }
.gl-sw:focus-visible{ outline:2px solid #FF2DAA; outline-offset:3px; }
.gl-sw:disabled{ opacity:.5; }
.acct__q{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; font-size:14.5px; }
.acct__q div{ display:flex; gap:6px; }
.acct__q button{ height:38px; min-width:58px; padding:0 14px; border:0; border-radius:999px; background:rgba(255,255,255,.1); color:#F5F2EC; font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; }
.acct__q button:first-child{ background:#F5F2EC; color:#0A0A0A; }
.glx__priv{ margin:4px 0 0; text-align:center; color:rgba(245,242,236,.5); font-size:13px; }
.glx__priv a{ color:rgba(245,242,236,.75); text-underline-offset:3px; text-decoration-color:rgba(255,45,170,.6); }
