/* ════════════════════════════════════════════════════════════════════════
   SYNAXIS · ce qui n'appartient qu'au plateau (27/10/2026, §48-49)
   Les familles de commandes (AURUM, NOCTIS, AETHER, ORBITAL, SIGILLUM),
   les cartes et le socle des médaillons sont dans LA charte commune :
   polaristar-ui.css, sections « 5. COMMANDES » et « 6. CARTES ET MÉDAILLONS ».
   Ici, seulement les variantes propres au plateau, sur les mêmes jetons :
   médaillons PI / STARDUST / Niveau, avatar du compte, recherche.
   Préfixe « html body.pl » : même poids que les membres inscrits dans la charte.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Médaillons du header : chacun sa matière ───────────────────────────── */
html body.pl .pl-chip small { font-size: 9.5px; letter-spacing: .18em; color: rgba(243, 238, 228, .6); }
html body.pl .pl-chip b { font-variant-numeric: tabular-nums lining-nums; letter-spacing: .02em; }
/* PI : symbole solaire, monture or clair */
html body.pl .pl-chip--pi .pl-ci { box-shadow: 0 0 0 2px rgba(5, 6, 15, .7), 0 0 0 3px rgba(245, 222, 156, .55), 0 0 10px rgba(255, 200, 80, .3); }
/* STARDUST : cristal améthyste, monture or-violet */
html body.pl .pl-chip--sd {
  border-color: rgba(170, 134, 237, .5);
  background: radial-gradient(130% 170% at 18% -10%, rgba(170, 134, 237, .38), transparent 58%), linear-gradient(180deg, rgba(36, 24, 88, .94), rgba(12, 9, 40, .96));
}
html body.pl .pl-chip--sd .pl-ci { overflow: hidden; box-shadow: 0 0 0 2px rgba(5, 6, 15, .7), 0 0 0 3px rgba(200, 170, 255, .55), 0 0 12px rgba(170, 134, 237, .45); }
/* scintillement du cristal : un reflet très occasionnel (coupé avec les animations réduites) */
html body.pl .pl-chip--sd .pl-ci::after {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  transform: translateX(-120%); animation: pl-glint 9s ease-in-out 2s infinite;
}
@keyframes pl-glint { 0%, 88% { transform: translateX(-120%); } 96%, 100% { transform: translateX(120%); } }
/* Niveau : médaille d'or ancien ; la jauge n'existe que si la donnée réelle est là (plateau.page.js) */
html body.pl .pl-chip--lvl .pl-ci { box-shadow: 0 0 0 2px rgba(5, 6, 15, .7), 0 0 0 3px var(--ps-gold-old); }
html body.pl .pl-chip--lvl .pl-bar { background: rgba(243, 238, 228, .12); }

/* ── Mon compte : avatar serti, liseré métallique fin ───────────────────── */
html body.pl .pl-me.is-user {
  border: 1px solid var(--celestial-border);
  background: linear-gradient(180deg, rgba(23, 27, 70, .9), rgba(9, 11, 36, .94)); box-shadow: var(--celestial-sheen);
  transition: border-color var(--celestial-t-hover) ease, box-shadow var(--celestial-t-hover) ease;
}
html body.pl .pl-me[aria-expanded="true"] { border-color: var(--celestial-border-hover); box-shadow: var(--celestial-sheen), var(--celestial-glow); }
@media (hover: hover) { html body.pl .pl-me.is-user:hover { border-color: var(--celestial-border-hover); box-shadow: var(--celestial-sheen), var(--celestial-glow); } }
html body.pl .pl-me.is-user .pl-av { box-shadow: 0 0 0 2px rgba(5, 6, 15, .75), 0 0 0 3px rgba(245, 222, 156, .6); }
html body.pl .pl-me:not(.is-user) { border-color: var(--celestial-border); background: var(--celestial-surface); box-shadow: var(--celestial-sheen); }
@media (hover: hover) { html body.pl .pl-me:not(.is-user):hover { border-color: var(--celestial-border-hover); box-shadow: var(--celestial-sheen), var(--celestial-glow); } }

/* ── Recherche : un instrument d'exploration ────────────────────────────── */
html body.pl .pl-hd-search .pl-search input {
  border-color: rgba(232, 195, 106, .32);
  background: radial-gradient(70% 160% at 50% -60%, rgba(170, 134, 237, .14), transparent 60%), linear-gradient(180deg, rgba(23, 27, 70, .86), rgba(9, 11, 36, .9));
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .1), inset 0 -10px 20px -14px rgba(123, 79, 214, .6), 0 6px 20px -14px rgba(0, 0, 0, .9);
}
@media (hover: hover) { html body.pl .pl-hd-search .pl-search input:hover { border-color: rgba(245, 222, 156, .55); } }
html body.pl .pl-hd-search .pl-search input:focus { border-color: rgba(245, 222, 156, .85); box-shadow: inset 0 1px 0 rgba(255, 246, 220, .14), 0 0 0 3px rgba(232, 195, 106, .14), var(--celestial-glow-violet); }
html body.pl .pl-search-ico { filter: drop-shadow(0 0 5px rgba(232, 195, 106, .55)); }
html body.pl .pl-kbd { border-color: var(--celestial-border); background: rgba(5, 6, 15, .55); box-shadow: inset 0 -1px 0 rgba(232, 195, 106, .25); }
html body.pl .pl-found {
  border-color: rgba(232, 195, 106, .3);
  background: radial-gradient(100% 60% at 50% 0%, rgba(123, 79, 214, .16), transparent 70%), linear-gradient(180deg, rgba(20, 22, 64, .96), rgba(8, 10, 32, .97));
  box-shadow: inset 0 1px 0 rgba(255, 246, 220, .1), 0 18px 40px -20px rgba(0, 0, 0, .9);
}

/* ── Mouvement réduit, impression ───────────────────────────────────────── */
html.pl-reduced body.pl .pl-chip--sd .pl-ci::after { display: none; }
@media (prefers-reduced-motion: reduce) { html body.pl .pl-chip--sd .pl-ci::after { display: none; } }
@media print { html body.pl .pl-chip--sd .pl-ci::after { display: none; } }

/* ── Téléphone : cibles tactiles confortables, filets un peu plus francs ─ */
@media (max-width: 559px) {
  html body.pl :is(.pl-mode, .pl-motion) { min-height: 40px; }
  html body.pl .cx-tab { min-height: 44px; }
  html body.pl .pl-chip { border-color: rgba(232, 195, 106, .4); }
}
