/* ============================================================
   LMFC Performance — main.css
   Variables, reset, typographie, composants de base.
   ============================================================ */

:root {
  --bg-primary:    #0A0A0A;
  --bg-surface:    #141414;
  --bg-card:       #1C1C1C;
  --bg-hover:      #242424;

  --gold:          #C9A84C;
  --gold-light:    #E2C97E;
  --gold-border:   rgba(201, 168, 76, 0.30);

  --text-primary:  #F5F5F5;
  --text-secondary:#8A8A8A;
  --text-muted:    #4A4A4A;

  --border:        #2A2A2A;
  --border-gold:   rgba(201, 168, 76, 0.40);

  --success:       #4CAF50;
  --warning:       #FF9800;
  --danger:        #F44336;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;

  --shadow:        0 4px 24px rgba(0,0,0,0.40);
  --shadow-gold:   0 0 20px rgba(201,168,76,0.15);

  --font-main:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:    all 0.2s ease;

  --sidebar-w:     248px;

  /* Échelle typographique unique : toute taille de texte de l'app en fait partie. */
  --fs-xs:  .72rem;   /* métadonnées, libellés en capitales, badges */
  --fs-sm:  .8rem;    /* texte secondaire, petits boutons */
  --fs-md:  .875rem;  /* texte courant, boutons */
  --fs-lg:  1rem;     /* titres de carte */
  --fs-xl:  1.25rem;  /* titres de section */
  --fs-2xl: 1.7rem;   /* titres de page */

  /* Espacements, rayons, profondeur, mouvement */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --radius-control: 10px; --radius-float: 16px;
  --elev-float: 0 10px 30px rgba(0,0,0,.38), 0 2px 6px rgba(0,0,0,.25);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur-micro: 120ms; --dur-panel: 200ms;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p  { margin: 0 0 .8em; }

::selection { background: var(--gold); color: #000; }

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #2f2f2f; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ----- Helpers ----- */
.text-muted { color: var(--text-secondary); }
.text-gold  { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; }
.mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; }

/* ----- Cartes ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card.is-active,
.card.gold {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

/* ----- Boutons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--fs-md); font-weight: 500;
  transition: var(--transition);
}
.btn:hover { background: var(--bg-hover); border-color: #3a3a3a; }

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #0A0A0A;
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-hover); }

.btn-danger { color: var(--danger); border-color: rgba(244,67,54,.35); }
.btn-danger:hover { background: rgba(244,67,54,.12); }

.btn-sm { padding: 6px 11px; font-size: var(--fs-sm); }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ----- Champs ----- */
label, .field-label {
  display: block;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit; font-size: var(--fs-md);
  transition: var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
textarea { resize: vertical; min-height: 70px; }
select { appearance: none; cursor: pointer; }

.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1; min-width: 140px; }

/* ----- Badges & puces ----- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: var(--fs-xs); font-weight: 600;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.badge-gold { background: rgba(201,168,76,.15); color: var(--gold); }
.badge-success { background: rgba(76,175,80,.15); color: var(--success); }

.pill {
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); font-size: var(--fs-sm);
}

/* ----- Tableaux ----- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-md);
}
.table th {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-secondary); font-weight: 600;
}
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--bg-surface); }

/* ----- Page header ----- */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head .subtitle { color: var(--text-secondary); font-size: var(--fs-md); margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- Segmented control (filtres) ----- */
.segmented { display: inline-flex; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; }
.segmented button {
  border: none; background: transparent; color: var(--text-secondary);
  padding: 6px 14px; border-radius: 7px; font-size: var(--fs-sm); font-weight: 500;
}
.segmented button.active { background: var(--bg-hover); color: var(--gold); border: 1px solid var(--gold-border); }

/* ----- Modal ----- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg); width: 100%; max-width: 460px;
  padding: 24px; box-shadow: var(--shadow);
}
.modal h3 { margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ----- Toast ----- */
#toast-stack {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border-gold);
  border-left: 3px solid var(--gold);
  padding: 12px 16px; border-radius: var(--radius-md);
  box-shadow: var(--shadow); font-size: var(--fs-md); min-width: 220px;
  animation: toast-in .2s ease;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----- Empty state ----- */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-secondary);
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}
.empty .empty-ico { font-size: var(--fs-2xl); opacity: .5; margin-bottom: 8px; }

/* ============================================================
   Visionneuse plein écran (lightbox.js) : images et vidéos
   ============================================================ */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.86);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lb-panel {
  width: min(1100px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px;
}
.lb-head { display: flex; align-items: center; gap: 12px; }
.lb-title { margin: 0; font-size: var(--fs-xl); flex: 1; }
.lb-count { font-size: var(--fs-sm); color: var(--text-secondary); }
.lb-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-surface); color: var(--text-primary); font-size: var(--fs-lg); cursor: pointer;
}
.lb-close:hover { border-color: var(--gold-border); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; background: #000; border-radius: var(--radius-md); }
.lb-media { display: flex; align-items: center; justify-content: center; width: 100%; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 68vh; display: block; border-radius: var(--radius-md); }
.lb-media video { width: 100%; background: #000; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20,20,20,.8); color: #fff; font-size: var(--fs-2xl); line-height: 1;
}
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-caption { margin: 0; font-size: var(--fs-md); color: var(--gold-light); }
.lb-caption.hidden { display: none; }
.lb-text { font-size: var(--fs-lg); line-height: 1.55; color: var(--text-primary); white-space: normal; }
.lb-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 12px; }
@media (max-width: 600px) {
  .lightbox { padding: 8px; }
  .lb-media img, .lb-media video { max-height: 55vh; }
}

/* ============================================================
   Programme individuel (program.js) : fiche joueur et Mon programme
   ============================================================ */
.prog-group { margin-bottom: 18px; }
.prog-group:last-child { margin-bottom: 0; }
.prog-group-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 0 0 10px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-left: 3px solid var(--gold); padding-left: 10px;
}
.prog-group-title span { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-secondary); }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prog-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-surface); cursor: pointer; transition: border-color .15s, transform .15s;
}
.prog-card:hover, .prog-card:focus-visible { border-color: var(--gold-border); transform: translateY(-1px); outline: none; }
.prog-thumb { position: relative; aspect-ratio: 16 / 10; background: #0d0f12; display: grid; place-items: center; }
.prog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog-thumb > span { font-size: var(--fs-sm); color: var(--text-muted); }
.prog-done {
  position: absolute; top: 8px; left: 8px; font-size: var(--fs-xs); font-weight: 700;
  background: rgba(76,175,80,.9); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.prog-card.is-done { border-color: rgba(76,175,80,.4); }
.prog-body { display: grid; gap: 3px; padding: 10px 12px 12px; }
.prog-body strong { font-size: var(--fs-md); }
.prog-dosage { font-size: var(--fs-sm); color: var(--gold); }
.prog-tags { font-size: var(--fs-xs); color: var(--text-secondary); }
.prog-feedback { font-size: var(--fs-sm); color: var(--text-secondary); font-style: italic; }
.modal-wide { max-width: 680px !important; }
.lb-feedback { display: flex; flex-direction: column; gap: 5px; flex: 1 1 260px; font-size: var(--fs-sm); color: var(--text-secondary); margin: 0; }
.lb-feedback textarea { width: 100%; }

/* ---------- Pastilles de couleur (app.js : enhanceColorInputs) ---------- */
.swatches { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.swatches .sw {
  width: 24px; height: 24px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--bg-card); box-shadow: 0 0 0 1px rgba(255,255,255,.16);
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatches .sw:hover:not(:disabled) { transform: scale(1.12); }
.swatches .sw[aria-checked="true"] { box-shadow: 0 0 0 2px var(--text-primary); }
.swatches .sw:disabled { cursor: default; opacity: .55; }
.swatches .sw-custom {
  background: radial-gradient(circle, var(--custom, transparent) 0 44%, transparent 46%),
              conic-gradient(#e03131, #fab005, #2f9e44, #1098ad, #1f6feb, #7048e8, #e03131);
}
.swatches input[type="color"] { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Points d'un joueur (notes.js) : objectifs, points forts, axes ---------- */
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.note-card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px;
  background: var(--bg-surface);
}
.note-card.is-openable { cursor: pointer; transition: border-color .15s, background .15s; }
.note-card.is-openable:hover, .note-card.is-openable:focus-visible { border-color: var(--gold-border); outline: none; }
.note-card-head { display: flex; align-items: flex-start; gap: 8px; }
.note-card-head h3 { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-lg); line-height: 1.3; overflow-wrap: anywhere; }
.note-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.note-card p { margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
.note-card .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.note-card .media-grid figure { margin: 0; border-radius: 8px; overflow: hidden; background: #0d0f12; border: 1px solid var(--border); }
.note-card .media-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note-card .media-grid figcaption { padding: 5px 7px; font-size: var(--fs-xs); color: var(--text-secondary); }
.note-images-edit { display: grid; gap: 8px; margin-bottom: 8px; }
.note-images-edit:empty { display: none; }
.nie-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 8px; }
.nie-row img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.nie-row input[type="text"] { width: 100%; }
.nie-row.is-removed { opacity: .4; }

/* ============================================================
   Liquid Glass — surfaces flottantes posées sur un canvas
   (tableau tactique, vidéo). Translucide, flou d'arrière-plan,
   reflets intérieurs, profondeur. Réservé aux contrôles qui
   flottent au-dessus du contenu : ailleurs, les cartes restent
   opaques pour la lisibilité.
   ============================================================ */
.glass {
  background: rgba(18, 20, 18, .52);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-float);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    inset 0 -1px 0 rgba(0, 0, 0, .30),
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    var(--elev-float);
  color: var(--text-primary);
}
/* Navigateur sans flou d'arrière-plan : on garde la lisibilité. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(20, 22, 20, .92); }
}
.glass-btn {
  --gb-bg: rgba(255, 255, 255, .06);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-control);
  border: 1px solid transparent; background: var(--gb-bg); color: var(--text-primary);
  font: 500 var(--fs-sm)/1 var(--font-main); white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10);
  transition: background var(--dur-micro) ease, transform var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-micro) ease, border-color var(--dur-micro) ease, color var(--dur-micro) ease;
  -webkit-tap-highlight-color: transparent;
}
.glass-btn:hover { --gb-bg: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.glass-btn:active { transform: translateY(0) scale(.95); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.glass-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.glass-btn.active, .glass-btn[aria-pressed="true"] {
  --gb-bg: rgba(201, 168, 76, .22); border-color: rgba(201, 168, 76, .55); color: var(--gold-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 14px rgba(201, 168, 76, .25);
}
.glass-btn.is-primary { --gb-bg: var(--gold); color: #0A0A0A; font-weight: 600; }
.glass-btn.is-primary:hover { --gb-bg: var(--gold-light); }
.glass-btn.is-danger:hover { color: #ff8a80; --gb-bg: rgba(244, 67, 54, .16); }
.glass-btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.glass-btn .ic { width: 18px; height: 18px; flex-shrink: 0; }
/* Écran tactile : pas d'effet de survol qui reste « collé ». */
@media (hover: none) { .glass-btn:hover { transform: none; --gb-bg: rgba(255, 255, 255, .06); } }
@media (prefers-reduced-motion: reduce) { .glass-btn, .glass { transition: none !important; } }

/* Icônes (sprite Lucide) : même taille et même trait partout. */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }

/* ============================================================
   Logo LMFC Performance : le même partout (menu du staff, barre du
   haut sur téléphone, espace joueur, connexion).
   ============================================================ */
.brand-pro {
  display: inline-block; vertical-align: middle;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1;
  color: var(--gold); background: rgba(201,168,76,.12);
  border: 1px solid var(--gold-border); border-radius: 5px;
  padding: 3px 6px; letter-spacing: .06em; margin-left: 4px;
  position: relative; top: -1px;
}

/* ============================================================
   Espace joueur (player-nav.js) : même en-tête sur chaque page ;
   sur téléphone, onglets en bas, à portée de pouce.
   ============================================================ */
.pa-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px; height: 56px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(10,10,10,.8); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.pa-brand { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.pa-links { display: flex; gap: 4px; margin-left: auto; }
.pa-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  color: var(--text-secondary); font-size: var(--fs-md); font-weight: 500;
  transition: background var(--dur-micro) ease, color var(--dur-micro) ease;
}
.pa-link:hover { color: var(--text-primary); background: var(--bg-surface); }
.pa-link.is-active { color: #0A0A0A; background: var(--gold); font-weight: 600; }
.pa-link .ic { width: 16px; height: 16px; }
.pa-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: var(--fs-sm);
}
.pa-logout:hover { color: var(--danger); border-color: rgba(244,67,54,.35); }
.pa-logout .ic { width: 16px; height: 16px; }
.pa-tabbar { display: none; }
@media (max-width: 760px) {
  .pa-links { display: none; }
  .pa-logout { margin-left: auto; width: 40px; padding: 0; }
  .pa-logout span { display: none; }
  .pa-tabbar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(12,12,12,.86); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .pa-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
    border-radius: 12px; color: var(--text-secondary); font-size: var(--fs-xs); font-weight: 600;
    -webkit-tap-highlight-color: transparent; transition: color var(--dur-micro) ease, background var(--dur-micro) ease;
  }
  .pa-tab:active { background: rgba(255,255,255,.06); }
  .pa-tab .ic { width: 22px; height: 22px; }
  .pa-tab.is-active { color: var(--gold); }
  .pa-tab.is-active .ic { filter: drop-shadow(0 0 6px rgba(201,168,76,.45)); }
  body.pa-body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.pa-body #toast-stack { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* Page Performance vue par le joueur : la coque remplace la barre du staff. */
body.pa-body .perf-topbar { display: none; }

/* Toasts : pleine largeur sur téléphone, au-dessus du pouce. */
@media (max-width: 560px) {
  #toast-stack { left: 12px; right: 12px; bottom: 16px; }
  .toast { min-width: 0; }
}

/* Réglage d'une taille au curseur (Paramètres) : aperçu à côté. */
.size-pref { display: flex; align-items: center; gap: 14px; min-height: 60px; }
.size-pref input[type="range"] { flex: 1; padding: 0; height: 36px; accent-color: var(--gold); background: transparent; border: 0; }
.size-pref input[type="range"]:focus { box-shadow: none; }
.size-preview { flex-shrink: 0; border-radius: 50%; background: #E03131; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
