/* ============================================================
   Thème commun « Item Shop » — chargé par TOUTES les pages
   (boutique, calendrier de l'Avent, panel d'administration).
   Une seule source pour les couleurs, les polices, les boutons
   et les boîtes de dialogue : les modules se ressemblent.
   ============================================================ */
:root{
  /* ciel bleu nuit (fond des pages joueurs) */
  --k-sky1:#1d4fd6;--k-sky2:#0f2a86;--k-sky3:#0a1650;--k-sky4:#060b2b;
  /* surfaces sombres teintées de bleu (panel, fenêtres) */
  --k-bg:#07091a;--k-side:#0a0d22;--k-surf:#0f1329;--k-surf2:#151a35;
  --k-line:#1c2242;--k-line2:#2a3258;
  --k-tx:#eef0fa;--k-mut:#9aa1c4;--k-dim:#5e6690;
  /* jaune « Item Shop » : une seule teinte partout */
  --k-acc:#ffd84a;--k-acc2:#e9b93a;--k-acc-sh:#c7961c;--k-acc-tx:#0b0f2b;
  --k-red:#ff3d5a;--k-green:#3ddc97;--k-discord:#5865f2;
  --k-title:'Barlow Condensed','Archivo Black',Impact,sans-serif;
  --k-text:Barlow,Inter,Nunito,system-ui,sans-serif;
  --k-ui:Inter,Barlow,system-ui,sans-serif;
  --k-r:10px;
}

/* Fond « ciel » partagé par la boutique et le calendrier */
.k-sky,body.k-sky{
  background:
    radial-gradient(1100px 520px at 50% -180px,#4f8cff66,transparent 70%),
    radial-gradient(900px 700px at 100% 40%,#7a3cff22,transparent 70%),
    repeating-linear-gradient(115deg,#ffffff07 0 2px,transparent 2px 26px),
    linear-gradient(180deg,var(--k-sky1) 0%,var(--k-sky2) 26%,var(--k-sky3) 62%,var(--k-sky4) 100%);
  background-attachment:fixed;
}

::selection{background:#ffd84a66;color:#fff}

/* ---------- boîtes de dialogue (js/ui.js) ---------- */
.uib{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:#03061acc;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .16s ease}
.uib.in{opacity:1}.uib.out{opacity:0}
.uib-pop{width:min(440px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:28px 26px 22px;border-radius:16px;text-align:center;
  background:linear-gradient(180deg,#141b3e,#0b1030);border:1px solid #ffffff1f;box-shadow:inset 0 1px 0 #ffffff14,0 30px 80px -10px #000c;
  color:var(--k-tx);font:600 15px/1.5 var(--k-text);transform:translateY(10px) scale(.98);transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.uib.in .uib-pop{transform:none}
.uib-pop h2{margin:0 0 8px;font:900 italic 30px/1 var(--k-title);text-transform:uppercase;letter-spacing:.3px;text-shadow:0 2px 0 #0006}
.uib-txt{margin:0 0 4px;color:#c9d0f0;font-weight:600}
.uib-ico{display:inline-grid;place-items:center;width:52px;height:52px;margin-bottom:12px;border-radius:12px;transform:skewX(-8deg);
  font:900 italic 30px/1 var(--k-title);background:#ffffff12;box-shadow:inset 0 0 0 2px #ffffff26}
.uib-warning{background:#ff3d5a26;color:#ff8a9c;box-shadow:inset 0 0 0 2px #ff3d5a88}
.uib-question,.uib-info{background:#ffd84a1f;color:var(--k-acc);box-shadow:inset 0 0 0 2px #ffd84a88}
.uib-success{background:#3ddc9726;color:var(--k-green);box-shadow:inset 0 0 0 2px #3ddc9788}
.uib-pop .sw-lbl{display:block;text-align:left;margin:14px 0 0;font:800 12px var(--k-ui);letter-spacing:.06em;text-transform:uppercase;color:var(--k-mut)}
.uib-in{display:block;width:100%;box-sizing:border-box;margin:14px 0 0;padding:12px 14px;border-radius:10px;border:1px solid #ffffff2e;background:#060a22;color:#fff;font:700 15px var(--k-text);outline:0}
.sw-lbl .uib-in{margin-top:6px}
textarea.uib-in{min-height:140px;resize:vertical;font:600 12px ui-monospace,monospace}
.uib-in:focus{border-color:var(--k-acc);box-shadow:0 0 0 3px #ffd84a33}
.uib-err{margin:10px 0 0;padding:8px 12px;border-radius:8px;background:#ff3d5a22;color:#ffb3c0;font-weight:800;font-size:13px}
.uib-act{display:flex;gap:10px;justify-content:center;margin-top:20px;flex-wrap:wrap}
.uib-act .sw-btn{min-width:120px}
.sw-btn{border:0;border-radius:8px;padding:12px 22px;font:900 italic 18px/1 var(--k-title);text-transform:uppercase;letter-spacing:.5px;cursor:pointer;
  transition:transform .15s,box-shadow .15s,filter .15s}
.sw-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.sw-ok{background:var(--k-acc);color:var(--k-acc-tx);box-shadow:0 4px 0 var(--k-acc-sh),0 10px 24px -8px #000a}
.sw-ok:hover{transform:translateY(-2px);box-shadow:0 6px 0 var(--k-acc-sh),0 14px 28px -8px #000c}
.sw-ok:active{transform:translateY(2px);box-shadow:0 2px 0 var(--k-acc-sh)}
.sw-danger{background:var(--k-red);color:#fff;box-shadow:0 4px 0 #a3162b,0 10px 24px -8px #000a}
.sw-danger:hover{transform:translateY(-2px)}
.sw-no{background:#ffffff10;color:#e6eaff;box-shadow:inset 0 0 0 1px #ffffff33}
.sw-no:hover{background:#ffffff1c}
@media (prefers-reduced-motion:reduce){.uib,.uib-pop,.sw-btn{transition:none}}

/* ---------- barre unique (modules + actions de la page), construite par js/nav.js ---------- */
.kbar{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:50%;z-index:30;display:flex;align-items:center;gap:6px;
  width:max-content;max-width:calc(100vw - 16px);padding:6px;border-radius:999px;transform:translateX(-50%);
  background:#0b0f2bd9;border:1px solid #ffffff24;box-shadow:inset 0 1px 0 #ffffff17,0 12px 40px -6px #000a;
  backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
  overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.kbar::-webkit-scrollbar{display:none}
/* la barre de la page devient une simple rangée dans la pilule */
.kbar>.tbar,.kbar>.bar{position:static!important;transform:none!important;left:auto!important;top:auto!important;width:auto!important;max-width:none!important;
  margin:0!important;padding:0!important;min-height:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important;overflow:visible!important;flex:none}
.kbar>.tbar::before,.kbar>.tbar::after{display:none!important}
.kbar>.tbar .tbi{overflow:visible!important;padding:0!important}
/* les modules : petites bulles rondes, séparées des actions par un filet */
.kbar>.gnav{position:static!important;transform:none!important;flex-direction:row!important;max-height:none!important;max-width:none!important;
  padding:0 8px 0 0!important;margin:0!important;border:0!important;border-right:1px solid #ffffff24!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;gap:4px!important;flex:none;overflow:visible!important}
.kbar>.gnav a{width:38px!important;height:38px!important;flex:none}
.kbar>.gnav .dc{display:none!important}
.kbar>.gnav .sep{display:none!important}
html.has-kbar body{padding-bottom:0!important}
/* boutique : bouton Catégories + Filtrer dans la barre, catégories en menu déroulant */
.kbar .kcat,.kbar .fb{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;flex:none;
  background:#ffffff12;border:1px solid #ffffff1f;color:#fff;font:800 15px var(--k-title);letter-spacing:.3px;text-transform:uppercase;cursor:pointer;box-shadow:none;transition:background .15s,transform .15s}
.kbar .fb{width:38px;padding:0}
.kbar .fb svg{fill:#fff}
.kbar .kcat:hover,.kbar .fb:hover{background:#ffffff22;transform:translateY(-1px)}
.kbar .kcat[aria-expanded=true]{background:var(--k-acc);color:var(--k-acc-tx);border-color:transparent}
.kbar .kcat[hidden]{display:none}
.kbar .fb.act::after{top:4px;right:4px;width:9px;height:9px}
.rail.kmenu{position:fixed!important;display:block!important;left:clamp(8px,var(--kx,8px),calc(100vw - 290px))!important;right:auto!important;
  top:calc(68px + env(safe-area-inset-top,0px))!important;z-index:29!important;opacity:0;pointer-events:none;transform:translateY(-8px) scale(.98);transform-origin:top left;
  transition:opacity .18s ease,transform .22s cubic-bezier(.2,.9,.25,1.1)}
.rail.kmenu.open{opacity:1;pointer-events:auto;transform:none}
.rail.kmenu .dots{width:270px!important;max-height:min(60vh,520px);overflow:auto;padding:8px!important;gap:2px!important;border-radius:14px!important;
  background:#0b0f2bf2!important;border:1px solid #ffffff24!important;box-shadow:0 18px 50px -8px #000c!important}
.rail.kmenu .dots::before{display:none!important}
.rail.kmenu .dots a{height:40px!important;padding:0 12px!important;border-radius:9px;gap:12px!important;color:#dfe4ff;font:800 17px var(--k-title)!important;text-transform:uppercase}
.rail.kmenu .dots a:hover{background:#ffffff14}
.rail.kmenu .dots a.on{background:#ffd84a1f;color:var(--k-acc)}
.rail.kmenu .dots span{opacity:1!important;padding-right:0!important}
@media (prefers-reduced-motion:reduce){.rail.kmenu{transition:none}}

/* ---------- icônes au trait (remplacent les émojis de la barre) ---------- */
:root{
  --ki-shop:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  --ki-avent:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5C10 3 12 8 12 8s2-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E");
  --ki-admin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --ki-code:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M13 5v2'/%3E%3Cpath d='M13 17v2'/%3E%3Cpath d='M13 11v2'/%3E%3C/svg%3E");
  --ki-slot:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='12' height='12' x='2' y='10' rx='2'/%3E%3Cpath d='m17.9 14 3.5-3.5a2.2 2.2 0 0 0 0-3l-5-4.9a2.2 2.2 0 0 0-3 0L10 6'/%3E%3Cpath d='M6 18h.01'/%3E%3Cpath d='M10 14h.01'/%3E%3Cpath d='M15 6h.01'/%3E%3Cpath d='M18 9h.01'/%3E%3C/svg%3E");
  --ki-hist:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E");
  --ki-son:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4.7a.7.7 0 0 0-1.2-.5L6.4 7.6A1.4 1.4 0 0 1 5.4 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.4a1.4 1.4 0 0 1 1 .4l3.4 3.4a.7.7 0 0 0 1.2-.5z'/%3E%3Cpath d='M16 9a5 5 0 0 1 0 6'/%3E%3Cpath d='M19.4 18.4a9 9 0 0 0 0-12.7'/%3E%3C/svg%3E");
  --ki-muet:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4.7a.7.7 0 0 0-1.2-.5L6.4 7.6A1.4 1.4 0 0 1 5.4 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.4a1.4 1.4 0 0 1 1 .4l3.4 3.4a.7.7 0 0 0 1.2-.5z'/%3E%3Cpath d='m22 9-6 6'/%3E%3Cpath d='m16 9 6 6'/%3E%3C/svg%3E");
  --ki-recu:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M8 8h8'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M8 16h5'/%3E%3C/svg%3E");
  --ki-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --ki-discord:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath fill='black' stroke='none' d='M20.32 4.37a19.8 19.8 0 0 0-4.89-1.52.07.07 0 0 0-.08.04c-.21.38-.44.87-.61 1.25a18.27 18.27 0 0 0-5.49 0 12.64 12.64 0 0 0-.62-1.25.08.08 0 0 0-.08-.04 19.74 19.74 0 0 0-4.88 1.52.07.07 0 0 0-.03.03C.53 9.05-.32 13.58.1 18.06a.08.08 0 0 0 .03.06 19.9 19.9 0 0 0 5.99 3.03.08.08 0 0 0 .08-.03c.46-.63.87-1.3 1.23-1.99a.08.08 0 0 0-.04-.11 13.1 13.1 0 0 1-1.87-.89.08.08 0 0 1-.01-.13l.37-.29a.07.07 0 0 1 .08-.01c3.93 1.79 8.18 1.79 12.06 0a.07.07 0 0 1 .08.01l.37.29a.08.08 0 0 1-.01.13c-.6.35-1.22.65-1.87.89a.08.08 0 0 0-.04.11c.36.7.78 1.36 1.23 1.99a.08.08 0 0 0 .08.03 19.84 19.84 0 0 0 6-3.03.08.08 0 0 0 .03-.06c.5-5.18-.84-9.67-3.55-13.66a.06.06 0 0 0-.03-.03ZM8.02 15.33c-1.18 0-2.16-1.09-2.16-2.42s.96-2.42 2.16-2.42c1.21 0 2.18 1.1 2.16 2.42 0 1.33-.96 2.42-2.16 2.42Zm7.97 0c-1.18 0-2.15-1.09-2.15-2.42s.95-2.42 2.15-2.42c1.21 0 2.18 1.1 2.16 2.42 0 1.33-.95 2.42-2.16 2.42Z'/%3E%3C/svg%3E");
}
i.ki,.ki-av::before{display:inline-block;flex:none;width:18px;height:18px;background:currentColor;
  -webkit-mask:var(--ki) center/contain no-repeat;mask:var(--ki) center/contain no-repeat}
.ki-shop{--ki:var(--ki-shop)}.ki-avent{--ki:var(--ki-avent)}.ki-admin{--ki:var(--ki-admin)}.ki-code{--ki:var(--ki-code)}.ki-slot{--ki:var(--ki-slot)}.ki-hist{--ki:var(--ki-hist)}.ki-son{--ki:var(--ki-son)}.ki-muet{--ki:var(--ki-muet)}.ki-recu{--ki:var(--ki-recu)}.ki-plus{--ki:var(--ki-plus)}.ki-discord{--ki:var(--ki-discord)}

/* ---------- barre : style commun à toutes les pages ---------- */
.kbar{gap:4px;padding:5px;background:linear-gradient(180deg,#121a45e6,#0a0f2ce6);border-color:#ffffff1f;box-shadow:inset 0 1px 0 #ffffff1a,0 14px 40px -8px #000b}
/* bulles des modules */
.kbar>.gnav a{width:38px!important;height:38px!important;border-radius:11px!important;opacity:1!important;color:#c9d2ff;background:transparent;animation:none!important;transform:none!important;box-shadow:none!important;backdrop-filter:none!important}
.kbar>.gnav a::before{display:none!important}
.kbar>.gnav a:hover{background:#ffffff14;color:#fff}
.kbar>.gnav a.on{background:#ffd84a1f!important;color:var(--k-acc)!important;box-shadow:inset 0 0 0 1px #ffd84a66!important}
.kbar>.gnav a>*{transform:none!important}
.kbar>.gnav a i.ki{width:19px;height:19px}
/* boutons d'action : même hauteur, même police, icône + texte */
.kbar>.tbar .tb,html:not(.embed) .kbar>.bar button,.kbar .kcat{height:38px!important;padding:0 14px!important;gap:8px!important;border-radius:11px!important;
  display:inline-flex!important;align-items:center!important;flex:none;white-space:nowrap;color:#e8ecff;
  font:800 15px/1 var(--k-title)!important;letter-spacing:.4px!important;text-transform:uppercase;
  background:#ffffff0d!important;border:1px solid #ffffff17!important;box-shadow:none!important;transition:background .15s,border-color .15s,transform .15s}
.kbar>.tbar .tb:hover,html:not(.embed) .kbar>.bar button:hover,.kbar .kcat:hover{background:#ffffff1c!important;border-color:#ffffff2e!important;transform:translateY(-1px)}
.kbar .fb{border-radius:11px!important;background:#ffffff0d!important;border-color:#ffffff17!important;height:38px;width:38px}
.kbar .kcat[aria-expanded=true]{background:var(--k-acc)!important;color:var(--k-acc-tx)!important;border-color:transparent!important}
.kbar>.tbar .tb svg,html:not(.embed) .kbar>.bar button svg{width:17px;height:17px}
.kbar>.tbar .tb .pill{display:inline-flex;align-items:center;gap:8px;font:inherit}
.kbar>.tbar .tb .pill .tl{opacity:.75}
.kbar>.tbar .tb .pill b{color:var(--k-acc);font:800 16px var(--k-title)}
/* bouton jaune « Acheter des Kuài » */
.kbar>.tbar .tb.tbk,html:not(.embed) .kbar>.bar #bKuai{background:var(--k-acc)!important;color:var(--k-acc-tx)!important;border-color:transparent!important;
  font-style:italic!important;font-weight:900!important;box-shadow:0 3px 0 var(--k-acc-sh)!important;animation:none!important}
.kbar>.tbar .tb.tbk::after,html:not(.embed) .kbar>.bar #bKuai::after{display:none!important}
.kbar>.tbar .tb.tbk:hover,html:not(.embed) .kbar>.bar #bKuai:hover{background:#ffe27a!important}
/* Discord et Admin */
.kbar>.tbar .tb.tbdc,html:not(.embed) .kbar>.bar #bDiscord{background:var(--k-discord)!important;border-color:#7b86ff!important;color:#fff!important}
.kbar>.tbar .tb.tbdc:hover,html:not(.embed) .kbar>.bar #bDiscord:hover{background:#4752c4!important}
.kbar>.tbar .tb.tbadm,html:not(.embed) .kbar>.bar #bAdmin{background:#ff3d5a1f!important;border-color:#ff3d5a73!important;color:#ff9cad!important}
.kbar>.tbar .tb.tbadm:hover,html:not(.embed) .kbar>.bar #bAdmin:hover{background:#ff3d5a33!important;color:#fff!important}
html:not(.embed) .kbar>.bar #bDiscord img{width:22px;height:22px;border-radius:50%;margin:0}
/* pièce de monnaie : disque doré net (fini l'effet brillant flou) */
.kbar .v,.kbar #kCoin{display:inline-grid!important;place-items:center;width:20px!important;height:20px!important;border-radius:50%!important;flex:none;
  background:#ffcf33!important;color:#5a3a00!important;border:0!important;box-shadow:inset 0 -2px 0 #d99a00,0 0 0 1.5px #0b0f2b44!important;
  font:900 11px/1 'Noto Sans SC',system-ui,sans-serif!important;text-shadow:none!important;font-style:normal!important}
.kbar>.tbar .tb .pill .v{margin-right:2px}
/* icônes ajoutées par CSS aux boutons du calendrier (leurs textes sont réécrits par la page) */
html:not(.embed) .kbar>.bar :is(#bCode,#bSlot,#bHist,#bAdmin,#bMusic)::before,html:not(.embed) .kbar>.bar #bDiscord:not(:has(img))::before{
  content:'';display:inline-block;position:static!important;inset:auto!important;width:17px;height:17px;padding:0!important;border-radius:0!important;opacity:1!important;animation:none!important;flex:none;
  background:currentColor!important;-webkit-mask:var(--ki) center/contain no-repeat!important;mask:var(--ki) center/contain no-repeat!important}
#bCode{--ki:var(--ki-code)}#bSlot{--ki:var(--ki-slot)}#bHist{--ki:var(--ki-hist)}#bAdmin{--ki:var(--ki-admin)}#bDiscord{--ki:var(--ki-discord)}
#bMusic{--ki:var(--ki-muet)}#bMusic[data-on="1"]{--ki:var(--ki-son)}
html:not(.embed) .kbar>.bar #bMusic{width:38px;padding:0!important;justify-content:center;font-size:0!important}
html:not(.embed) .kbar>.bar #bMusic[data-on="1"]{color:var(--k-acc)}
html:not(.embed) .kbar>.bar #bSlot:has(svg)::before{display:none}

/* un bouton masqué par la page reste masqué malgré le style de la barre */
html .kbar [hidden],html:not(.embed) .kbar>.bar button[hidden],.kbar>.tbar .tb[hidden],.kbar .kcat[hidden]{display:none!important}

/* ---------- barre allégée ---------- */
/* bulle Boutique = menu des catégories (petit chevron quand le menu est disponible) */
.kbar>.gnav.kmenu-on a[data-mod="shop"]{width:auto!important;padding:0 8px 0 10px!important;gap:4px;display:inline-flex!important}
.kbar>.gnav.kmenu-on a[data-mod="shop"]::after{content:'';width:10px;height:10px;flex:none;background:currentColor;opacity:.8;transition:transform .2s;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat}
.kbar>.gnav a[data-mod="shop"][aria-expanded=true]::after{transform:rotate(180deg)}
/* le menu : catégories puis « Filtrer les objets » */
.rail.kmenu{flex-direction:column}
.rail.kmenu.open{display:flex!important}
.rail.kmenu .fb{order:2;display:flex;align-items:center;gap:10px;width:270px!important;height:44px!important;margin-top:6px;padding:0 14px;border-radius:12px!important;
  background:#0b0f2bf2!important;border:1px solid #ffffff24!important;color:#fff;font:800 16px var(--k-title);text-transform:uppercase;letter-spacing:.3px;box-shadow:0 18px 50px -8px #000c!important;transform:none!important}
.rail.kmenu .fb svg{fill:#fff;flex:none}
.rail.kmenu .fb:hover{background:#141b3ef2!important}
.rail.kmenu .fb .kl{white-space:nowrap}
.rail .fb .kl{display:none}.rail.kmenu .fb .kl{display:inline}
/* minuteur : juste l'icône et l'heure (la phrase reste en info-bulle) */
.kbar>.tbar .tb .pill.tmr .tl{display:none}
/* calendrier : Code, Machine et Historique en icônes seules */
html:not(.embed) .kbar>.bar button.k-ico{width:38px;padding:0!important;justify-content:center;font-size:0!important;gap:0!important}

/* ==========================================================================
   Style « sombre premium » + barre identique sur tous les modules
   ========================================================================== */
:root{--ki-filtre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E")}.ki-filtre{--ki:var(--ki-filtre)}
/* barre du haut : verre sombre, même contenu partout */
.kbar{background:#0c1026c7;border:1px solid #ffffff14;box-shadow:inset 0 1px 0 #ffffff12,0 18px 50px -12px #000e;gap:6px;padding:6px}
.kbar>.gnav{border-right-color:#ffffff14!important}
.kbar>.gnav a{color:#aeb6dc}
.kbar>.tbar .tb,html:not(.embed) .kbar>.bar button{background:#ffffff08!important;border-color:#ffffff12!important}
.kbar>.tbar .tb:hover,html:not(.embed) .kbar>.bar button:hover{background:#ffffff14!important;border-color:#ffffff24!important}
/* solde : pastille identique sur la boutique et le calendrier */
.kbar>.tbar .tb:has(.pill .v):not(.tbk),html:not(.embed) .kbar>.bar #bBal{padding:0 12px!important;font:800 16px var(--k-title)!important}
html:not(.embed) .kbar>.bar #bBal b{font:inherit}
html:not(.embed) .kbar>.bar #bKuai #kCoin{display:none!important}
.kbar i.ki{width:17px;height:17px}
#rail{display:none!important}

/* rangée d'actions de la page, sous le titre */
.k-pact{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:18px 0 6px;position:relative;z-index:3}
.k-pact .k-cats{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0}
.k-pact .k-pacts{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.k-pact .dots{display:flex!important;flex-direction:row!important;align-items:center;gap:4px!important;width:auto!important;max-height:none!important;padding:4px!important;
  background:#ffffff08!important;border:1px solid #ffffff12!important;border-radius:12px!important;box-shadow:none!important;backdrop-filter:none!important;overflow-x:auto;scrollbar-width:none;transition:none!important}
.k-pact .dots::-webkit-scrollbar{display:none}
.k-pact .dots::before{display:none!important}
.k-pact .dots a{height:34px!important;padding:0 14px!important;gap:0!important;border-radius:9px;flex:none;color:#aeb6dc!important;
  font:800 15px/1 var(--k-title)!important;letter-spacing:.4px;text-transform:uppercase;transition:background .15s,color .15s}
.k-pact .dots a .dt{display:none}
.k-pact .dots span{opacity:1!important;padding:0!important}
.k-pact .dots a:hover{background:#ffffff10;color:#fff!important}
.k-pact .dots a.on{background:var(--k-acc);color:var(--k-acc-tx)!important}
.k-pact .dots:empty{display:none!important}
.k-pact .fb,.k-pact .tb,.k-pact .k-pacts button,.k-pact .chrono{display:inline-flex!important;align-items:center;gap:8px;height:42px;padding:0 16px!important;margin:0!important;border-radius:12px!important;flex:none;
  background:#ffffff08!important;border:1px solid #ffffff12!important;color:#e6e9fa!important;box-shadow:none!important;transform:none!important;
  font:800 15px/1 var(--k-title)!important;letter-spacing:.4px;text-transform:uppercase;cursor:pointer;transition:background .15s,border-color .15s}
.k-pact .fb{width:auto!important}
.k-pact .fb:hover,.k-pact .tb:hover,.k-pact .k-pacts button:hover{background:#ffffff14!important;border-color:#ffffff26!important}
.k-pact .fb.act{border-color:#ffd84a80!important;color:var(--k-acc)!important}
.k-pact .fb.act::after{display:none}
.k-pact .tb .pill{display:inline-flex;align-items:center;gap:8px;background:none!important;padding:0!important;font:inherit}
.k-pact .tb .pill svg{width:17px;height:17px}
.k-pact .tb .pill .tl{opacity:.7}
.k-pact .tb .pill b{color:var(--k-acc);font:800 16px var(--k-title)}
.k-pact .tb .bdg{margin-left:2px}
/* calendrier : chrono + actions dans la même rangée */
html:not(.embed) .k-pact .chrono{cursor:default;background:#0c1026c7!important;font-weight:700!important;text-transform:none;letter-spacing:0}
html:not(.embed) .avent-page .k-pact .k-pacts button::before{content:'';display:inline-block;width:17px;height:17px;flex:none;position:static!important;inset:auto!important;padding:0!important;opacity:1!important;animation:none!important;
  border-radius:0!important;background:currentColor!important;-webkit-mask:var(--ki) center/contain no-repeat!important;mask:var(--ki) center/contain no-repeat!important}
html:not(.embed) .k-pact #bMusic{width:42px;padding:0!important;justify-content:center;font-size:0!important}
html:not(.embed) .k-pact #bMusic[data-on="1"]{color:var(--k-acc)!important;border-color:#ffd84a66!important}
html:not(.embed) .k-pact #bSlot:has(svg)::before{display:none}
html:not(.embed) .k-pact button[hidden]{display:none!important}
@media (max-width:700px){
  .k-pact{gap:6px}
  .k-pact .k-cats{flex-basis:100%}
  .k-pact .fb span{display:none}
}

/* bouton Discord identique partout : photo de profil si elle existe, sinon le logo Discord (pas d'initiale) */
.kbar>.tbar .tb.tbdc .av{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;overflow:hidden;background:none!important;flex:none}
.kbar>.tbar .tb.tbdc .av img{width:100%;height:100%;object-fit:cover}
.kbar>.tbar .tb.tbdc .av b{display:none}
.kbar>.tbar .tb.tbdc .av:not(:has(img))::before{content:'';width:18px;height:18px;background:currentColor;-webkit-mask:var(--ki-discord) center/contain no-repeat;mask:var(--ki-discord) center/contain no-repeat}
html:not(.embed) .kbar>.bar #bDiscord img{width:22px!important;height:22px!important}

/* icônes du panel (remplacent les émojis) */
:root{
  --ki-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ki-ban:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m5.7 5.7 12.6 12.6'/%3E%3C/svg%3E");
  --ki-sablier:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 22h14'/%3E%3Cpath d='M5 2h14'/%3E%3Cpath d='M17 22v-4.17a2 2 0 0 0-.59-1.42L12 12l-4.41 4.41A2 2 0 0 0 7 17.83V22'/%3E%3Cpath d='M7 2v4.17a2 2 0 0 0 .59 1.42L12 12l4.41-4.41A2 2 0 0 0 17 6.17V2'/%3E%3C/svg%3E");
  --ki-users:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  --ki-gem:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 13L2 9Z'/%3E%3Cpath d='M11 3 8 9l4 13 4-13-3-6'/%3E%3Cpath d='M2 9h20'/%3E%3C/svg%3E");
  --ki-tag:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.6 2.6A2 2 0 0 0 11.2 2H4a2 2 0 0 0-2 2v7.2a2 2 0 0 0 .6 1.4l8.7 8.7a2.4 2.4 0 0 0 3.4 0l6.6-6.6a2.4 2.4 0 0 0 0-3.4z'/%3E%3Ccircle cx='7.5' cy='7.5' r='.5' fill='black'/%3E%3C/svg%3E");
  --ki-cle:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4'/%3E%3Cpath d='m21 2-9.6 9.6'/%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3C/svg%3E");
  --ki-prise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z'/%3E%3C/svg%3E");
  --ki-reglage:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7h-9'/%3E%3Cpath d='M14 17H5'/%3E%3Ccircle cx='17' cy='17' r='3'/%3E%3Ccircle cx='7' cy='7' r='3'/%3E%3C/svg%3E");
  --ki-boussole:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16.2 7.8-2.1 6.4-6.4 2.1 2.1-6.4z'/%3E%3C/svg%3E");
  --ki-cadenas:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
  --ki-alerte:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.7 18-8-14a2 2 0 0 0-3.5 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --ki-corbeille:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6'/%3E%3Cpath d='M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
  --ki-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E");
  --ki-outils:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.8-3.8a6 6 0 0 1-7.9 7.9l-6.9 6.9a2.1 2.1 0 0 1-3-3l6.9-6.9a6 6 0 0 1 7.9-7.9z'/%3E%3C/svg%3E");
  --ki-livre:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20'/%3E%3C/svg%3E");
  --ki-boite:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E");
  --ki-palette:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='black'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='black'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='black'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='black'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20 2 2 0 0 0 2-2c0-.5-.2-1-.6-1.4a2 2 0 0 1 1.5-3.3H17a5 5 0 0 0 5-5C22 5.8 17.5 2 12 2'/%3E%3C/svg%3E");
}
.ki-check{--ki:var(--ki-check)}.ki-ban{--ki:var(--ki-ban)}.ki-sablier{--ki:var(--ki-sablier)}.ki-users{--ki:var(--ki-users)}.ki-gem{--ki:var(--ki-gem)}.ki-tag{--ki:var(--ki-tag)}.ki-cle{--ki:var(--ki-cle)}.ki-prise{--ki:var(--ki-prise)}.ki-reglage{--ki:var(--ki-reglage)}.ki-boussole{--ki:var(--ki-boussole)}.ki-cadenas{--ki:var(--ki-cadenas)}.ki-alerte{--ki:var(--ki-alerte)}.ki-corbeille{--ki:var(--ki-corbeille)}.ki-user{--ki:var(--ki-user)}.ki-outils{--ki:var(--ki-outils)}.ki-livre{--ki:var(--ki-livre)}.ki-boite{--ki:var(--ki-boite)}.ki-palette{--ki:var(--ki-palette)}

/* panel « Général » : icônes au trait dans les tuiles, les cartes de module et les boutons */
.stat>i .ki,.mod .ico .ki,.ico>.ki{width:20px;height:20px;color:var(--k-acc)!important;opacity:1!important;filter:none!important}
.stat>i{opacity:1!important;filter:none!important;color:var(--k-acc)!important}
.btn .ki{width:15px;height:15px;vertical-align:-3px;margin-right:2px}

/* ==========================================================================
   Barre verticale à gauche (comme au début) — en bas sur téléphone.
   Tous les modules en haut (la liste vient du panel), puis le compte.
   ========================================================================== */
@media (min-width:701px){
  .kbar{top:50%;left:calc(12px + env(safe-area-inset-left,0px));transform:translateY(-50%);flex-direction:column;align-items:center;
    width:auto;max-width:none;max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;border-radius:18px;padding:7px;gap:7px}
  .kbar>.gnav{flex-direction:column!important;padding:0 0 7px!important;border-right:0!important;border-bottom:1px solid #ffffff14!important;gap:5px!important}
  .kbar>.gnav a{width:44px!important;height:44px!important;border-radius:12px!important}
  .kbar>.gnav a i.ki{width:20px;height:20px}
  .kbar>.tbar .tbi{flex-direction:column!important;align-items:center;gap:7px!important}
  html:not(.embed) .kbar>.bar{display:flex!important;flex-direction:column!important;align-items:center;gap:7px!important}
  /* boutons du compte : carrés, icône seule */
  .kbar>.tbar .tb,html:not(.embed) .kbar>.bar button{width:44px!important;height:44px!important;padding:0!important;justify-content:center!important;border-radius:12px!important;gap:0!important}
  .kbar>.tbar .tb>span:not(.pill):not(.av),.kbar>.tbar .tb.tbk>span,html:not(.embed) .kbar>.bar #kLbl{display:none!important}
  html:not(.embed) .kbar>.bar #bDiscord{font-size:0!important}
  .kbar i.ki{width:20px;height:20px}
  .kbar>.tbar .tb.tbdc .av,html:not(.embed) .kbar>.bar #bDiscord img{width:26px!important;height:26px!important}
  /* solde : pièce au-dessus du nombre */
  .kbar>.tbar .tb:has(.pill .v):not(.tbk),html:not(.embed) .kbar>.bar #bBal{height:auto!important;min-height:50px;padding:6px 0!important}
  .kbar>.tbar .tb .pill:has(.v),html:not(.embed) .kbar>.bar #bBal{flex-direction:column!important;gap:3px!important;font:800 13px/1 var(--k-title)!important}
  .kbar>.tbar .tb .pill .v{margin:0!important}
  /* le contenu laisse la place à la barre */
  html.has-kbar body{padding-left:76px}
  html.has-kbar body>.wrap{padding-top:40px!important}
  html.has-kbar.avent-html header,html.has-kbar body.avent-page>header{padding-top:56px!important}
}
@media (max-width:700px){
  .kbar{top:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);max-width:calc(100vw - 16px)}
  .kbar>.tbar .tb>span:not(.pill):not(.av),.kbar>.tbar .tb.tbk>span,html:not(.embed) .kbar>.bar #kLbl{display:none!important}
  html:not(.embed) .kbar>.bar #bDiscord{font-size:0!important;width:40px;padding:0!important;justify-content:center!important}
  .kbar>.tbar .tb.tbk,.kbar>.tbar .tb.tbdc,.kbar>.tbar .tb.tbadm,html:not(.embed) .kbar>.bar #bKuai,html:not(.embed) .kbar>.bar #bAdmin{width:40px;padding:0!important;justify-content:center!important}
  html.has-kbar body{padding-bottom:84px!important}
  html.has-kbar body>.wrap{padding-top:24px!important}
  html.has-kbar body.avent-page>header{padding-top:36px!important}
}
html:not(.embed) .kbar>.bar #bAdmin{font-size:0!important}
@media (min-width:701px){html:not(.embed) .kbar>.bar #bAdmin{width:44px!important}}
@media (max-width:700px){
  html.has-kbar .hlp{bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  .k-pact .tb .pill .tl{display:none}
}

/* icônes supplémentaires (conversion des émojis, js/icones.js) */
:root{
  --ki-sapin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2-5 7h3l-4 6h4l-3 4h10l-3-4h4l-4-6h3z'/%3E%3Cpath d='M12 19v3'/%3E%3C/svg%3E");
  --ki-etoile:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E");
  --ki-engrenage:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.2 2h-.4a2 2 0 0 0-2 2v.2a2 2 0 0 1-1 1.7l-.4.3a2 2 0 0 1-2 0l-.2-.1a2 2 0 0 0-2.7.7l-.2.4a2 2 0 0 0 .7 2.7l.2.1a2 2 0 0 1 1 1.7v.5a2 2 0 0 1-1 1.7l-.2.1a2 2 0 0 0-.7 2.7l.2.4a2 2 0 0 0 2.7.7l.2-.1a2 2 0 0 1 2 0l.4.3a2 2 0 0 1 1 1.7v.2a2 2 0 0 0 2 2h.4a2 2 0 0 0 2-2v-.2a2 2 0 0 1 1-1.7l.4-.3a2 2 0 0 1 2 0l.2.1a2 2 0 0 0 2.7-.7l.2-.4a2 2 0 0 0-.7-2.7l-.2-.1a2 2 0 0 1-1-1.7v-.5a2 2 0 0 1 1-1.7l.2-.1a2 2 0 0 0 .7-2.7l-.2-.4a2 2 0 0 0-2.7-.7l-.2.1a2 2 0 0 1-2 0l-.4-.3a2 2 0 0 1-1-1.7V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ki-couronne:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.6 3.3a.5.5 0 0 1 .8 0l3 5.6a1 1 0 0 0 1.5.3l4.3-3.7a.5.5 0 0 1 .8.5L19.2 17a1 1 0 0 1-1 .8H5.8a1 1 0 0 1-1-.8L2 6a.5.5 0 0 1 .8-.5l4.3 3.7a1 1 0 0 0 1.5-.3z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
  --ki-aide:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --ki-piece:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3Cpath d='M12 9.5v5'/%3E%3C/svg%3E");
  --ki-calendrier:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  --ki-globe:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
  --ki-manette:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11h4'/%3E%3Cpath d='M8 9v4'/%3E%3Cpath d='M15 12h.01'/%3E%3Cpath d='M18 10h.01'/%3E%3Cpath d='M17.3 5H6.7a4 4 0 0 0-4 3.6l-.7 6A3 3 0 0 0 5 18c1 0 2-.5 2.5-1.4L8.8 15h6.4l1.3 1.6c.5.9 1.5 1.4 2.5 1.4a3 3 0 0 0 3-3.4l-.7-6a4 4 0 0 0-4-3.6Z'/%3E%3C/svg%3E");
  --ki-lien:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");
  --ki-fiole:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2v17.5a2.5 2.5 0 0 1-5 0V2'/%3E%3Cpath d='M8.5 2h7'/%3E%3Cpath d='M14.5 16h-5'/%3E%3C/svg%3E");
  --ki-sourire:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Cpath d='M9 9h.01'/%3E%3Cpath d='M15 9h.01'/%3E%3C/svg%3E");
  --ki-loupe:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --ki-crayon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.2 6.8a2.8 2.8 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8l-1.3 4.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
  --ki-page:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v5h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E");
  --ki-oeil:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ki-chrono:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2h4'/%3E%3Cpath d='M12 14l3-3'/%3E%3Ccircle cx='12' cy='14' r='8'/%3E%3C/svg%3E");
  --ki-etincelles:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 15.5A2 2 0 0 0 8.5 14l-6.1-1.6a.5.5 0 0 1 0-1L8.5 9.9A2 2 0 0 0 9.9 8.5l1.6-6.1a.5.5 0 0 1 1 0L14 8.5A2 2 0 0 0 15.5 9.9l6.1 1.6a.5.5 0 0 1 0 1L15.5 14a2 2 0 0 0-1.4 1.4l-1.6 6.1a.5.5 0 0 1-1 0z'/%3E%3C/svg%3E");
  --ki-stats:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17v-5'/%3E%3Cpath d='M13 17V7'/%3E%3Cpath d='M18 17v-8'/%3E%3C/svg%3E");
  --ki-info:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  --ki-cloche:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.9 1.9 0 0 0 3.4 0'/%3E%3C/svg%3E");
  --ki-flocon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20'/%3E%3Cpath d='m4.9 6 14.2 12'/%3E%3Cpath d='m19.1 6-14.2 12'/%3E%3Cpath d='m9 4 3 3 3-3'/%3E%3Cpath d='m9 20 3-3 3 3'/%3E%3C/svg%3E");
  --ki-musique:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}
.ki-sapin{--ki:var(--ki-sapin)}.ki-etoile{--ki:var(--ki-etoile)}.ki-engrenage{--ki:var(--ki-engrenage)}.ki-couronne{--ki:var(--ki-couronne)}.ki-aide{--ki:var(--ki-aide)}.ki-piece{--ki:var(--ki-piece)}.ki-calendrier{--ki:var(--ki-calendrier)}.ki-globe{--ki:var(--ki-globe)}.ki-manette{--ki:var(--ki-manette)}.ki-lien{--ki:var(--ki-lien)}.ki-fiole{--ki:var(--ki-fiole)}.ki-sourire{--ki:var(--ki-sourire)}.ki-loupe{--ki:var(--ki-loupe)}.ki-crayon{--ki:var(--ki-crayon)}.ki-page{--ki:var(--ki-page)}.ki-oeil{--ki:var(--ki-oeil)}.ki-chrono{--ki:var(--ki-chrono)}.ki-etincelles{--ki:var(--ki-etincelles)}.ki-stats{--ki:var(--ki-stats)}.ki-info{--ki:var(--ki-info)}.ki-cloche{--ki:var(--ki-cloche)}.ki-flocon{--ki:var(--ki-flocon)}.ki-musique{--ki:var(--ki-musique)}
/* émoji converti : icône de la taille du texte, l'émoji d'origine reste dans le texte mais invisible */
i.kemo{display:inline-block;width:1.05em;height:1.05em;vertical-align:-.16em;overflow:hidden;white-space:nowrap;text-indent:200%;font-style:normal;
  background:currentColor;-webkit-mask:var(--ki) center/contain no-repeat;mask:var(--ki) center/contain no-repeat;flex:none}
.symbol i.kemo,.reel i.kemo{color:var(--accent,#ffd477)}

/* ==========================================================================
   Barre de navigation en verre translucide (sobre, différente du style Item Shop)
   ========================================================================== */
.kbar{background:linear-gradient(160deg,#ffffff1a,#ffffff08 60%,#ffffff0d)!important;border:1px solid #ffffff26!important;
  backdrop-filter:blur(26px) saturate(1.7)!important;-webkit-backdrop-filter:blur(26px) saturate(1.7)!important;
  box-shadow:inset 0 1px 0 #ffffff2e,inset 0 -1px 0 #ffffff0a,0 24px 60px -18px #000c!important}
.kbar>.gnav{border-color:#ffffff1f!important}
/* bulles des modules : verre clair, le module en cours est simplement plus lumineux */
.kbar>.gnav a{color:#ffffffb3!important;background:transparent!important}
.kbar>.gnav a:hover{background:#ffffff14!important;color:#fff!important}
.kbar>.gnav a.on{background:#ffffff26!important;color:#fff!important;box-shadow:inset 0 0 0 1px #ffffff40,inset 0 1px 0 #ffffff4d!important}
/* tous les boutons du compte : verre, sans aplat ni relief */
.kbar>.tbar .tb,html:not(.embed) .kbar>.bar button{background:#ffffff0f!important;border:1px solid #ffffff1c!important;color:#fff!important;box-shadow:none!important;font-style:normal!important}
.kbar>.tbar .tb:hover,html:not(.embed) .kbar>.bar button:hover{background:#ffffff1f!important;border-color:#ffffff38!important}
/* achat de Kuài : teinte jaune légère, icône jaune */
.kbar>.tbar .tb.tbk,html:not(.embed) .kbar>.bar #bKuai{background:#ffd84a14!important;border-color:#ffd84a4d!important;color:var(--k-acc)!important}
.kbar>.tbar .tb.tbk:hover,html:not(.embed) .kbar>.bar #bKuai:hover{background:#ffd84a26!important}
/* Discord : teinte bleue légère */
.kbar>.tbar .tb.tbdc,html:not(.embed) .kbar>.bar #bDiscord{background:#5865f22e!important;border-color:#7b86ff59!important;color:#dfe2ff!important}
.kbar>.tbar .tb.tbdc:hover,html:not(.embed) .kbar>.bar #bDiscord:hover{background:#5865f247!important}
/* Admin : teinte rouge légère */
.kbar>.tbar .tb.tbadm,html:not(.embed) .kbar>.bar #bAdmin{background:#ff3d5a1a!important;border-color:#ff3d5a47!important;color:#ffb3c0!important}
/* solde : pièce dorée sur verre */
.kbar>.tbar .tb:has(.pill .v):not(.tbk),html:not(.embed) .kbar>.bar #bBal{background:#ffffff0a!important}
.kbar>.tbar .tb.tbk,html:not(.embed) .kbar>.bar #bKuai,.kbar>.tbar .tb.tbdc,html:not(.embed) .kbar>.bar #bDiscord,.kbar>.tbar .tb.tbadm,html:not(.embed) .kbar>.bar #bAdmin{box-shadow:none!important;font-style:normal!important}

/* verre un peu plus sombre */
.kbar{background:linear-gradient(160deg,#0b1033c4,#060920b8 60%,#0a0e2cc4)!important;border-color:#ffffff1f!important;
  box-shadow:inset 0 1px 0 #ffffff21,inset 0 -1px 0 #ffffff08,0 24px 60px -18px #000d!important}
/* écrans intégrés au panel : pas de barre */
html.embed .kbar{display:none!important}
/* la barre reste en place d'une page à l'autre (transitions de page du navigateur) */
@view-transition{navigation:auto}
html:not(.embed) .kbar{view-transition-name:kbar}
::view-transition-group(kbar){animation-duration:.28s}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* anneau animé du survol : même forme que les boutons (carré aux coins arrondis), plus de cercle */
.kbar>.tbar .tb::before,html:not(.embed) .kbar>.bar #bBal::before,html:not(.embed) .kbar>.bar #bKuai::before,.k-pact .tb::before{border-radius:16px!important}
.k-pact .tb::before{border-radius:16px!important}
.kbar>.tbar .tb.tbk,html:not(.embed) .kbar>.bar #bKuai{overflow:visible!important}

/* anneau animé au survol, carré arrondi, sur les boutons sous le titre (boutique et calendrier) */
@property --k-ang{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes kOrbit{to{--k-ang:360deg}}
.k-pact .fb,.k-pact .tb,.k-pact .k-pacts button,.k-pact .dots a{position:relative}
.k-pact .tb::before{display:none!important}
.k-pact .fb::after,.k-pact .tb::after,.k-pact .k-pacts button::after,.k-pact .dots a::after{content:'';position:absolute;inset:-4px;border-radius:16px;padding:2px;pointer-events:none;display:block!important;
  background:conic-gradient(from var(--k-ang),transparent 35%,#fff 70%,#fff 78%,transparent 90%);
  -webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  opacity:0;transition:opacity .3s;animation:kOrbit 2.4s linear infinite paused}
/* les onglets de catégories sont dans un bandeau qui défile : l'anneau reste à l'intérieur */
.k-pact .dots a::after{inset:0;border-radius:9px}
.k-pact .fb:hover::after,.k-pact .tb:hover::after,.k-pact .k-pacts button:hover::after,.k-pact .dots a:hover::after{opacity:1;animation-play-state:running}
.k-pact .dots a.on::after{display:none!important}
@media (prefers-reduced-motion:reduce){.k-pact .fb::after,.k-pact .tb::after,.k-pact .k-pacts button::after,.k-pact .dots a::after{animation:none}}

/* Discord avec photo de profil : la photo remplit le bouton, plus de fond bleu autour */
.kbar>.tbar .tb.tbdc:has(.av img),html:not(.embed) .kbar>.bar #bDiscord:has(img){background:transparent!important;padding:0!important;overflow:hidden!important;border-color:#ffffff2e!important}
.kbar>.tbar .tb.tbdc:has(.av img) .av{width:100%!important;height:100%!important;border-radius:0!important;margin:0!important}
.kbar>.tbar .tb.tbdc .av img,html:not(.embed) .kbar>.bar #bDiscord img{display:block}
html:not(.embed) .kbar>.bar #bDiscord:has(img) img{width:100%!important;height:100%!important;border-radius:0!important;object-fit:cover;margin:0!important}
.kbar>.tbar .tb.tbdc:has(.av img)::before{border-radius:16px!important}

/* ==========================================================================
   Actions sous le titre : verre sombre comme la barre, et barre compacte
   qui reste en haut de l'écran au défilement
   ========================================================================== */
.k-pact .fb,.k-pact .tb,.k-pact .k-pacts button,.k-pact .chrono,.k-pact .dots{
  background:linear-gradient(160deg,#0b1033c4,#060920b8 60%,#0a0e2cc4)!important;border:1px solid #ffffff1f!important;
  backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);box-shadow:inset 0 1px 0 #ffffff1c!important}
.k-pact .fb:hover,.k-pact .tb:hover,.k-pact .k-pacts button:hover{background:linear-gradient(160deg,#141b4ad9,#0a0f2ed0)!important;border-color:#ffffff33!important}
/* position collante */
.wrap>.k-pact{position:sticky;top:12px;z-index:20}
.k-stick{position:sticky;top:12px;z-index:20;max-width:1120px;margin:0 auto;padding:0 24px}
.k-stick .k-pact{margin:0}
/* une fois collée : petite barre en verre qui épouse son contenu */
.k-pact{width:auto;transition:padding .3s cubic-bezier(.2,.9,.25,1),background-color .3s,box-shadow .3s,border-radius .3s}
.k-pact.stuck{width:fit-content;max-width:100%;padding:6px 6px 9px;gap:6px;border-radius:18px;
  background:linear-gradient(160deg,#0b1033d9,#060920cc 60%,#0a0e2cd9);border:1px solid #ffffff1f;
  backdrop-filter:blur(24px) saturate(1.6);-webkit-backdrop-filter:blur(24px) saturate(1.6);
  box-shadow:inset 0 1px 0 #ffffff21,0 18px 44px -14px #000d;animation:kStick .35s cubic-bezier(.2,.9,.25,1.1)}
@keyframes kStick{from{transform:translateY(-10px) scale(.97);opacity:.4}to{transform:none;opacity:1}}
/* dans la barre compacte, les boutons perdent leur propre verre et rapetissent */
.k-pact.stuck .fb,.k-pact.stuck .tb,.k-pact.stuck .k-pacts button,.k-pact.stuck .chrono,.k-pact.stuck .dots{
  background:#ffffff0a!important;border-color:#ffffff14!important;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none!important;height:36px;padding:0 13px!important}
.k-pact.stuck .dots{height:auto;padding:3px!important}
.k-pact.stuck .dots a{height:30px!important}
.k-pact.stuck .k-cats{flex:0 1 auto}
.k-pact.stuck #bMusic{width:36px!important;padding:0!important}
/* ligne de progression dans la page, sous la barre compacte */
.k-pact.stuck::after{content:'';position:absolute;left:14px;right:14px;bottom:3px;height:2px;border-radius:2px;pointer-events:none;
  background:linear-gradient(90deg,var(--k-acc) calc(var(--kp,0) * 100%),#ffffff1a 0)}
@media (max-width:700px){
  .wrap>.k-pact,.k-stick{top:8px}
  .k-stick{padding:0 18px}
  .k-pact.stuck{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .k-pact.stuck .k-cats{flex:none}
}
@media (prefers-reduced-motion:reduce){.k-pact,.k-pact.stuck{transition:none;animation:none}}
/* barre compacte : toujours sur une seule ligne */
.k-pact.stuck .k-pacts{flex-wrap:nowrap}
@media (max-width:700px){
  .k-pact.stuck{width:auto;max-width:100%;align-items:center}
  .k-pact.stuck .k-cats{flex:none!important;flex-basis:auto!important}
  .k-pact.stuck .k-pacts{flex:none}
  /* boutons en icône seule une fois collés (le nom reste en info-bulle) */
  .avent-page .k-pact.stuck .k-pacts button{width:36px!important;padding:0!important;justify-content:center;font-size:0!important;gap:0!important}
  .k-pact.stuck .tb>span:not(.pill):not(.bdg){display:none}
  .k-pact.stuck .chrono span{white-space:nowrap}
}
/* barre compacte collée : centrée au-dessus du contenu */
.k-pact.stuck{margin-left:auto!important;margin-right:auto!important}
.k-stick .k-pact.stuck{margin:0 auto!important}
