/* ══════════════════════════════════════════════════════════════════════════
   MALKIDOW — système visuel commun (refonte « menus en jeu », octobre 2026)
   Inspiré des menus du serveur (F4, boutique cosmétique, récompenses) et adapté au web :
   Montserrat (la police des addons), fond presque noir, rouge Malkidow en accent, or pour les
   mCoins et les récompenses, surfaces sombres teintées, arrondis de 12 à 20 px.
   En-tête flottant (capsule de verre, indicateur glissant, méga-menu Boutique, menu du compte),
   pied de page, composants, animations (apparition au défilement, lumière qui suit le curseur,
   transitions entre pages). Tout mouvement s'arrête avec prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  /* Fonds */
  --mk-ink: #0b0a0f;
  --mk-surface: #121117;
  --mk-surface-2: #18171e;
  --mk-relief: #201f28;
  --mk-raised: #15141b;
  /* Texte */
  --mk-text: #f3f2f6;
  --mk-text-2: #cfced6;
  --mk-text-3: #a7a6b1;
  --mk-text-4: #7a7984;
  /* Accents */
  --mk-red: #e42841;
  --mk-red-hover: #f03a52;
  --mk-red-dark: #7a0f1d;
  --mk-red-light: #ff8a9a;
  --mk-red-soft: #ff6b7d;
  --mk-gold: #e9a727;
  --mk-gold-light: #f3c25a;
  --mk-gold-ink: #231500;
  --mk-green: #41ca77;
  --mk-green-light: #7be3a4;
  --mk-blue: #6f86ff;
  --mk-blue-light: #a3b1ff;
  --mk-violet: #9b7bff;
  /* Lignes */
  --mk-line: rgba(255, 255, 255, 0.08);
  --mk-line-2: rgba(255, 255, 255, 0.14);
  --mk-line-3: rgba(255, 255, 255, 0.26);
  /* Teintes de surface (cartes de rubrique, tuiles de rareté) */
  --mk-tint-red: rgba(228, 40, 65, 0.30);
  --mk-tint-blue: rgba(74, 99, 224, 0.34);
  --mk-tint-violet: rgba(122, 79, 224, 0.36);
  --mk-tint-gold: rgba(233, 167, 39, 0.30);
  --mk-tint-grey: rgba(150, 150, 165, 0.22);
  /* Dégradés nommés (gardés pour les pages qui les citent) */
  --mk-grad-action: linear-gradient(180deg, #ef3550, #d81f38);
  --mk-grad-reward: linear-gradient(180deg, #f5b733, #e19b16);
  --mk-grad-title: linear-gradient(#f3f2f6, #f3f2f6);
  --mk-grad-card: var(--mk-surface);
  /* Typographie : Montserrat partout. --mk-font-mono garde son nom mais désigne les chiffres
     (Montserrat, à combiner avec font-variant-numeric: tabular-nums) ; la vraie police à chasse fixe,
     réservée aux identifiants techniques (SteamID, code, commande console), est --mk-font-code. */
  --mk-font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mk-font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mk-font-num: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mk-font-mono: var(--mk-font-num);
  --mk-font-code: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  /* Montserrat n'a pas d'axe de largeur : ces valeurs restent pour les feuilles qui les citent */
  --mk-stretch-head: 100%;
  --mk-stretch-title: 100%;
  --mk-track-head: -0.012em;
  --mk-word-head: 0;
  /* Espacements */
  --mk-s-1: 4px;
  --mk-s-2: 8px;
  --mk-s-3: 12px;
  --mk-s-4: 16px;
  --mk-s-5: 20px;
  --mk-s-6: 24px;
  --mk-s-8: 32px;
  --mk-s-10: 40px;
  --mk-s-12: 48px;
  --mk-s-14: 56px;
  --mk-section-y: 64px;
  --mk-grid-gap: 16px;
  /* Formes */
  --mk-r-xs: 6px;
  --mk-r-sm: 10px;
  --mk-r-md: 12px;
  --mk-r-lg: 14px;
  --mk-r-xl: 18px;
  --mk-r-2xl: 22px;
  --mk-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --mk-container: 1200px;
  --mk-gutter: 24px;
  --mk-header-space: 96px;
  --mk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --mk-spring: cubic-bezier(0.3, 1.3, 0.5, 1);
  /* Variables des feuilles de la coque (shared-theme.css, styles.css, player.css), chargées avant
     mk-ui.css : la même police partout. --font-mono reste à chasse fixe (identifiants). */
  --font-head: var(--mk-font-head);
  --font-main: var(--mk-font-body);
  --font-body: var(--mk-font-body);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.mk {
  margin: 0;
  min-height: 100vh;
  background: var(--mk-ink);
  color: var(--mk-text);
  font: 500 15px/1.6 var(--mk-font-body);
  padding-top: var(--mk-header-space);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* Lueur rouge en haut à gauche, comme les fenêtres des menus en jeu (sous le contenu, derrière l'en-tête) */
body.mk { position: relative; isolation: isolate; }
body.mk::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 640px; z-index: -1; pointer-events: none;
  background: radial-gradient(760px 380px at 6% 0%, rgba(228, 40, 65, 0.16), transparent 70%), radial-gradient(620px 320px at 96% 6%, rgba(122, 79, 224, 0.08), transparent 70%);
}
/* Règles de base à spécificité nulle (:where) : la moindre classe d'un composant ou d'une page les remplace */
:where(.mk) img, :where(.mk) svg { display: block; max-width: 100%; }
:where(.mk) a { color: inherit; text-decoration: none; }
:where(.mk) a:hover { color: var(--mk-red-soft); }
:where(.mk) button { font: inherit; color: inherit; }
:where(.mk) :is(h1, h2, h3, h4) {
  margin: 0; font-family: var(--mk-font-head); font-weight: 800; line-height: 1.12;
  letter-spacing: var(--mk-track-head); text-wrap: balance;
}
:where(.mk) p { margin: 0; }
.mk :focus-visible { outline: 2px solid var(--mk-red-light); outline-offset: 3px; border-radius: 4px; }
.mk ::selection { background: rgba(228, 40, 65, 0.45); color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Ancres (#rejoindre, #classement, sommaire…) : la cible n'est plus cachée sous l'en-tête collant */
html:has(> body.mk) { scroll-padding-top: 104px; }
/* Cible de focus déplacée par script (titre d'une vue, conteneur) : pas de cadre autour du texte */
.mk [tabindex="-1"]:focus-visible { outline: none; }

.mk-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mk-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--mk-r-sm);
  background: var(--mk-text); color: var(--mk-ink) !important; font-weight: 700; transition: top 0.2s ease;
}
.mk-skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ── Mise en page ─────────────────────────────────────────────────────── */
.mk-container { width: 100%; max-width: var(--mk-container); margin: 0 auto; padding: 0 var(--mk-gutter); }
.mk-section { padding: var(--mk-section-y) 0; position: relative; }
.mk-section--tight { padding: 32px 0; }
.mk-grid { display: grid; gap: var(--mk-grid-gap); }
.mk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.mk-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.mk-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.mk-stack { display: flex; flex-direction: column; gap: 12px; }
.mk-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Grille équilibrée (à ajouter à mk-grid--3) : la dernière rangée incomplète est centrée au lieu de laisser un trou */
.mk-grid--balance { display: flex; flex-wrap: wrap; justify-content: center; container-type: inline-size; }
.mk-grid--balance > * { --mk-cols: 1; flex: none; width: calc((100% - (var(--mk-cols) - 1) * var(--mk-grid-gap)) / var(--mk-cols)); min-width: 0; }
@container (min-width: 620px) { .mk-grid--3.mk-grid--balance > * { --mk-cols: 2; } }
@container (min-width: 940px) { .mk-grid--3.mk-grid--balance > * { --mk-cols: 3; } }
/* En-tête de section : marge resserrée ; le filet (--rule) ne s'ajoute que si la page le demande */
.mk-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.mk-section-head--center { flex-direction: column; align-items: center; text-align: center; }
.mk-section-head--rule { padding-bottom: 12px; border-bottom: 1px solid var(--mk-line); }
@media (max-width: 640px) {
  :root { --mk-gutter: 16px; --mk-section-y: 40px; }
  .mk-section-head { margin-bottom: 16px; }
}

/* ── Typographie ──────────────────────────────────────────────────────── */
/* Sur-titre des menus en jeu (« BIENVENUE SUR », « GAGNE ENCORE PLUS ») : rouge, capitales espacées */
.mk-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; line-height: 1.3; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mk-red);
}
.mk-eyebrow--gold { color: var(--mk-gold-light); }
.mk-eyebrow--blue { color: var(--mk-blue-light); }
.mk-eyebrow__line { display: none; }
.mk-display {
  font-family: var(--mk-font-head); font-weight: 900; font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1; letter-spacing: -0.02em; text-wrap: balance;
}
.mk-h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 900; line-height: 1.05; letter-spacing: -0.018em; text-wrap: balance; }
.mk-h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
.mk-h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.mk-h4 { font-size: 16px; font-weight: 800; line-height: 1.25; }
/* Anciens titres en dégradé : une seule couleur, celle du titre */
.mk-gradient-text, .mk-gradient-gold, .mk-gradient-warm {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; -webkit-text-fill-color: currentColor;
}
.mk-lead { font-size: 17px; line-height: 1.6; color: var(--mk-text-2); max-width: 62ch; text-wrap: pretty; }
.mk-muted { color: var(--mk-text-3); }
.mk-dim { color: var(--mk-text-2); }
.mk-small { font-size: 14px; }
.mk-xs { font-size: 13px; }
/* Chiffres : police du texte en chiffres tabulaires (mk-mono garde son nom, il ne passe plus en chasse fixe) */
.mk-num, .mk-mono { font-family: var(--mk-font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
/* Identifiant technique (SteamID, code, commande console) : chasse fixe */
.mk-id { font-family: var(--mk-font-code); font-size: 0.92em; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.mk-strong { font-weight: 700; }
.mk-link { font-weight: 600; color: var(--mk-red-light) !important; display: inline-flex; align-items: center; gap: 6px; }
.mk-link:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.mk-link--gold { color: var(--mk-gold-light) !important; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
/* Boutons des menus en jeu : arrondis, gras ; l'action principale s'éclaire au survol */
.mk-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--mk-r-md); border: 1px solid transparent;
  font: 700 15px/1 var(--mk-font-body); color: var(--mk-text); cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--mk-spring);
  text-decoration: none;
}
.mk-button > svg, .mk-icon-button > svg { flex: none; }
.mk-button:focus-visible, .mk-icon-button:focus-visible { outline: 2px solid var(--mk-red-light); outline-offset: 3px; }
.mk-button:hover { color: var(--mk-text); }
.mk-button:active { transform: translateY(1px) scale(0.99); }
/* Désactivé : le bouton garde l'apparence de son type, estompé (un fond gris uni le faisait passer pour un champ) */
.mk-button[disabled], .mk-button[aria-disabled="true"] {
  cursor: not-allowed; transform: none; filter: saturate(0.6); opacity: 0.45; box-shadow: none !important;
}
.mk-button--primary { background: var(--mk-red); color: #fff; }
.mk-button--primary:hover { background: var(--mk-red-hover); color: #fff; box-shadow: 0 12px 30px -12px rgba(228, 40, 65, 0.85); }
.mk-button--secondary { background: rgba(255, 255, 255, 0.06); border-color: var(--mk-line-2); }
.mk-button--secondary:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--mk-line-3); }
.mk-button--gold { background: var(--mk-gold); color: var(--mk-gold-ink); }
.mk-button--gold:hover { background: var(--mk-gold-light); color: var(--mk-gold-ink); box-shadow: 0 12px 30px -12px rgba(233, 167, 39, 0.75); }
.mk-button--gold-soft { background: rgba(233, 167, 39, 0.10); border-color: rgba(233, 167, 39, 0.35); color: var(--mk-gold-light); }
.mk-button--gold-soft:hover { background: rgba(233, 167, 39, 0.18); color: var(--mk-gold-light); }
.mk-button--light { background: var(--mk-text); color: var(--mk-ink); }
.mk-button--light:hover { background: #fff; color: var(--mk-ink); }
.mk-button--ghost { background: transparent; border-color: var(--mk-line-2); }
.mk-button--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--mk-line-3); }
.mk-button--lg { min-height: 54px; padding: 0 24px; border-radius: var(--mk-r-lg); font-size: 16px; }
.mk-button--sm { min-height: 44px; padding: 0 16px; border-radius: var(--mk-r-sm); font-size: 14px; }
.mk-button--block { width: 100%; }
.mk-icon-button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mk-r-sm); border: 1px solid var(--mk-line-2); background: rgba(255, 255, 255, 0.06); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mk-icon-button:hover { background: rgba(255, 255, 255, 0.12); }
.mk-icon-button:active { filter: brightness(0.92); }
.mk-icon-button[disabled], .mk-icon-button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; transform: none; }
.mk-icon-button--sm { width: 32px; height: 32px; border-radius: var(--mk-r-sm); border: 0; background: rgba(255, 255, 255, 0.08); }

/* ── Cartes et surfaces ───────────────────────────────────────────────── */
/* Une carte = un objet distinct (article, événement, offre) : surface sombre, bordure fine, arrondi des menus en jeu. */
.mk-card {
  position: relative; padding: 20px; border-radius: var(--mk-r-lg);
  background: var(--mk-surface); border: 1px solid var(--mk-line);
}
.mk-card--flat { background: var(--mk-surface); }
.mk-card--inset { padding: 12px; border-radius: var(--mk-r-md); background: var(--mk-surface-2); border: 1px solid rgba(255, 255, 255, 0.06); }
.mk-card--gold { background: linear-gradient(155deg, rgba(233, 167, 39, 0.14), transparent 60%), var(--mk-surface); border-color: rgba(233, 167, 39, 0.35); }
.mk-card--red { background: linear-gradient(155deg, rgba(228, 40, 65, 0.14), transparent 60%), var(--mk-surface); border-color: rgba(228, 40, 65, 0.38); }
.mk-card--glass { background: rgba(14, 16, 22, 0.94); border-color: var(--mk-line-2); }
.mk-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mk-card__title { font-family: var(--mk-font-head); font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: var(--mk-track-head); }

/* Ancien cadre animé (bordure conique tournante) : une bordure fine et fixe */
.mk-frame { position: relative; border-radius: var(--mk-r-lg); padding: 1px; background: var(--mk-line-2); }
.mk-frame--gold { background: rgba(242, 179, 61, 0.45); }
.mk-frame--soft { background: rgba(242, 179, 61, 0.28); }
.mk-frame__inner { height: 100%; border-radius: calc(var(--mk-r-lg) - 1px); background: var(--mk-raised); }

/* ── Pastilles et badges ──────────────────────────────────────────────── */
.mk-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: var(--mk-text-2); white-space: nowrap;
}
.mk-chip--online { background: rgba(65, 202, 119, 0.10); border: 1px solid rgba(65, 202, 119, 0.25); color: var(--mk-green-light); }
.mk-chip--offline { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--mk-line-2); color: var(--mk-text-3); }
.mk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mk-green); flex: none; }
.mk-chip--offline .mk-dot { background: var(--mk-text-4); }
.mk-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--mk-line-2); color: var(--mk-text-2); }
.mk-tag--gold { background: rgba(233, 167, 39, 0.12); border-color: rgba(233, 167, 39, 0.45); color: var(--mk-gold-light); }
.mk-tag--red { background: rgba(228, 40, 65, 0.14); border-color: rgba(228, 40, 65, 0.5); color: var(--mk-red-light); }
.mk-tag--blue { background: rgba(111, 134, 255, 0.14); border-color: rgba(111, 134, 255, 0.45); color: var(--mk-blue-light); }
.mk-tag--green { background: rgba(65, 202, 119, 0.12); border-color: rgba(65, 202, 119, 0.45); color: var(--mk-green-light); }
.mk-ribbon {
  position: absolute; z-index: 1; top: -10px; left: 18px; padding: 2px 8px; border-radius: var(--mk-r-xs);
  background: var(--mk-red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0;
}
.mk-ribbon--gold { background: var(--mk-gold); color: var(--mk-gold-ink); }
.mk-avatar {
  width: 34px; height: 34px; border-radius: var(--mk-r-sm); flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mk-relief); color: var(--mk-text-2); font-weight: 700; font-size: 13px; overflow: hidden;
}
.mk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mk-avatar--gold { background: var(--mk-gold); color: var(--mk-gold-ink); }

/* ── mCoins : la pièce officielle (images dans /images/mcoins) ─────────── */
/* Pièce en ligne avec le texte : taille de la police, posée sur la ligne de base.
   <img class="mk-mc" src="/images/mcoins/mcoin-64.webp" alt="" width="20" height="20"> (mcoin-160.webp au-delà de 32 px) */
.mk-mc { display: inline-block; flex: none; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: -0.25em; }
/* Tas de pièces (packs) : une boîte de taille fixe, l'image tient dedans sans être déformée */
.mk-mc-pile { display: block; flex: none; object-fit: contain; object-position: center bottom; }

/* ── Indicateurs ──────────────────────────────────────────────────────── */
.mk-stat { display: flex; flex-direction: column; gap: 2px; }
.mk-stat__label { font-size: 13px; font-weight: 600; color: var(--mk-text-3); text-transform: none; letter-spacing: 0; }
.mk-stat__value {
  font-family: var(--mk-font-num); font-weight: 800; font-size: 28px; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: var(--mk-track-head);
}
.mk-stat__value small { color: var(--mk-text-4); font-size: 0.6em; }
.mk-progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mk-progress--thin { height: 4px; }
.mk-progress__bar { height: 100%; border-radius: 3px; background: var(--mk-red); transition: width 0.6s var(--mk-ease); }
.mk-progress__bar--gold { background: var(--mk-gold); }
.mk-progress__bar--reward { background: var(--mk-gold); }

/* Segmenté (onglets compacts) */
.mk-segmented { display: flex; gap: 4px; padding: 3px; border-radius: var(--mk-r-md); background: var(--mk-ink); border: 1px solid rgba(255, 255, 255, 0.07); }
.mk-segmented button {
  flex: 1; min-height: 40px; border: 0; border-radius: var(--mk-r-sm); background: transparent; color: var(--mk-text-3);
  font: 600 14px var(--mk-font-body); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.mk-segmented button[aria-pressed="true"], .mk-segmented button[aria-selected="true"] { background: var(--mk-relief); color: var(--mk-text); }

/* Listes classées : des lignes séparées par un filet, pas une pile de cartes */
.mk-ranklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.mk-ranklist li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--mk-line); }
.mk-ranklist li:last-child { border-bottom: 0; }
.mk-ranklist__rank { width: 24px; font-family: var(--mk-font-num); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--mk-text-3); }
.mk-ranklist li:first-child .mk-ranklist__rank { color: var(--mk-gold); }
.mk-ranklist__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ranklist__value { font-family: var(--mk-font-num); font-variant-numeric: tabular-nums; color: var(--mk-text-2); }

/* Tableaux */
.mk-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.mk-table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--mk-text-3); padding: 8px 12px; border-bottom: 1px solid var(--mk-line-2); }
.mk-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--mk-text-2); }
.mk-table-wrap { overflow-x: auto; }

/* Formulaires */
.mk-input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--mk-r-sm); border: 1px solid var(--mk-line-2);
  background: var(--mk-ink); color: var(--mk-text); font: 500 15px var(--mk-font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mk-input:hover:not(:disabled):not(:focus) { border-color: var(--mk-line-3); }
.mk-input:focus { border-color: rgba(255, 138, 154, 0.6); outline: none; box-shadow: 0 0 0 3px rgba(228, 40, 65, 0.2); }
.mk-code {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 10px; border-radius: var(--mk-r-sm);
  background: rgba(13, 15, 21, 0.9); border: 1px solid rgba(255, 255, 255, 0.10);
}
.mk-code code { font-family: var(--mk-font-code); font-size: 13px; color: var(--mk-text); }

/* Listes déroulantes et zones de texte */
select.mk-input {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c3c9d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select.mk-input option { background: var(--mk-surface); color: var(--mk-text); }
textarea.mk-input { min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.mk-input::placeholder { color: var(--mk-text-4); }
.mk-input:disabled { opacity: 0.55; cursor: not-allowed; }
.mk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mk-label { font-size: 14px; font-weight: 600; color: var(--mk-text); }
.mk-hint { font-size: 13px; color: var(--mk-text-3); }

/* Interrupteur : <label class="mk-switch"><input type="checkbox" role="switch"><span class="mk-switch__track"></span><span>Libellé</span></label> */
.mk-switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.mk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mk-switch__track {
  position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid var(--mk-line-2); transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mk-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.18s var(--mk-ease);
}
.mk-switch input:checked + .mk-switch__track { background: var(--mk-red); border-color: transparent; }
.mk-switch input:checked + .mk-switch__track::after { transform: translateX(18px); }
.mk-switch input:focus-visible + .mk-switch__track { outline: 2px solid var(--mk-red-light); outline-offset: 3px; }
.mk-switch input:disabled + .mk-switch__track { opacity: 0.45; }
.mk-switch:hover input:not(:disabled):not(:checked) + .mk-switch__track { border-color: rgba(255, 138, 143, 0.6); }
.mk-switch:has(input:disabled) { cursor: not-allowed; }

/* Cases à cocher et boutons radio : rendu du site à la place du carré blanc natif.
   Spécificité nulle (:where) : un composant qui masque sa case (interrupteur, carte radio) garde la main.
   Les interrupteurs (role="switch") gardent leur propre style. */
:where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]) {
  -webkit-appearance: none; appearance: none;
  flex: none; display: inline-grid; place-content: center; vertical-align: middle;
  width: 22px; height: 22px; margin: 0;
  border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, 0.28); background: var(--mk-ink);
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
:where(input[type="radio"]) { border-radius: 50%; }
:where(input[type="checkbox"]:not([role="switch"]))::before {
  content: ""; width: 12px; height: 12px; background: #fff; transform: scale(0); transition: transform 0.15s var(--mk-ease);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
}
:where(input[type="radio"])::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.15s var(--mk-ease);
}
:where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]):checked {
  background: var(--mk-red); border-color: transparent;
}
:where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]):checked::before { transform: scale(1); }
:where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]):hover:not(:disabled) { border-color: rgba(255, 138, 143, 0.75); }
:where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]):focus-visible { outline: 2px solid var(--mk-red-light); outline-offset: 3px; }
:where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]):disabled { opacity: 0.45; cursor: not-allowed; }
@media (forced-colors: active) {
  :where(input[type="checkbox"]:not([role="switch"]), input[type="radio"]) { -webkit-appearance: auto; appearance: auto; }
}

/* Chargement et états vides */
.mk-skeleton {
  border-radius: var(--mk-r-sm); min-height: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%; animation: mk-skeleton 1.4s ease-in-out infinite;
}
@keyframes mk-skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mk-empty { padding: 16px; border-radius: var(--mk-r-md); background: var(--mk-surface-2); color: var(--mk-text-3); font-size: 14px; text-align: left; }

/* Notification flottante */
.mk-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--mk-bottom-bar, 0px)); z-index: 90; transform: translate(-50%, 120%); opacity: 0;
  max-width: calc(100vw - 32px); text-align: center;
  padding: 10px 16px; border-radius: var(--mk-r-md); background: var(--mk-relief); border: 1px solid var(--mk-line-2);
  box-shadow: var(--mk-shadow); font-size: 14px; font-weight: 600; transition: transform 0.3s var(--mk-ease), opacity 0.3s ease;
}
.mk-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Information cookies (mk-ui.js) : bandeau placé dans la page sous l'en-tête, il ne recouvre jamais le contenu */
.mk-cookie { position: relative; z-index: 1; background: var(--mk-surface); border-bottom: 1px solid var(--mk-line); }
.mk-cookie__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.mk-cookie__icon { flex: none; color: var(--mk-text-3); }
.mk-cookie__text { flex: 1 1 360px; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--mk-text-2); }
.mk-cookie__text strong { color: var(--mk-text); }
.mk-cookie .mk-button { flex: none; }
@media (max-width: 640px) {
  .mk-cookie__inner { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
  .mk-cookie__icon { margin-top: 1px; }
  .mk-cookie__text { flex-basis: calc(100% - 36px); }
  .mk-cookie .mk-button { width: 100%; }
}
/* Fenêtre ou menu ouvert : la page derrière ne défile plus */
html.mk-locked body { overflow: hidden; }

/* ── En-tête flottant partagé ─────────────────────────────────────────── */
/* Capsule de verre détachée des bords. Elle se resserre au défilement (is-scrolled), se cache quand
   on descend et revient dès qu'on remonte (is-hidden). Un surlignage glisse d'un lien à l'autre,
   un liseré rouge sous la capsule suit la page active (--mk-gx). */
@property --mk-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.mk-header {
  position: fixed; z-index: 50; left: 0; right: 0; top: calc(14px + env(safe-area-inset-top, 0px));
  padding: 0 max(14px, env(safe-area-inset-left, 0px)) 0 max(14px, env(safe-area-inset-right, 0px));
  pointer-events: none; transition: transform 0.45s var(--mk-ease); view-transition-name: mk-header;
}
.mk-header.is-hidden { transform: translateY(calc(-100% - 30px)); }
.mk-cap {
  pointer-events: auto; position: relative; max-width: 1220px; height: 66px; margin: 0 auto; padding: 0 9px 0 18px;
  display: flex; align-items: center; gap: 6px; border-radius: 20px;
  background: rgba(20, 19, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: max-width 0.45s var(--mk-ease), height 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
  animation: mk-cap-in 0.8s var(--mk-ease) both;
}
.mk-header.is-scrolled .mk-cap { max-width: 1100px; height: 58px; background: rgba(16, 15, 21, 0.86); border-color: rgba(255, 255, 255, 0.12); }
@keyframes mk-cap-in { from { opacity: 0; transform: translateY(-24px) scale(0.96); } }
.mk-cap::after {
  content: ""; position: absolute; left: var(--mk-gx, 50%); bottom: -1px; width: 120px; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--mk-red), transparent); transition: left 0.5s var(--mk-spring);
}
/* Marque : les trois branches du logo montent l'une après l'autre */
.mk-brand { position: relative; display: flex; align-items: center; gap: 11px; flex: none; color: var(--mk-text); }
.mk-cap .mk-brand { margin-right: 14px; }
.mk-brand__logo { width: 30px; height: 31px; fill: currentColor; overflow: visible; transition: filter 0.3s ease; }
.mk-brand__logo path { transform-box: fill-box; transform-origin: 50% 100%; animation: mk-rise-y 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.mk-brand__logo path:nth-child(2) { animation-delay: 0.12s; }
.mk-brand__logo path:nth-child(3) { animation-delay: 0.24s; transition: fill 0.3s ease; }
@keyframes mk-rise-y { from { transform: scaleY(0); opacity: 0; } }
:where(.mk) .mk-brand:hover { color: var(--mk-text); }
.mk-brand:hover .mk-brand__logo { filter: drop-shadow(0 0 10px rgba(228, 40, 65, 0.8)); }
.mk-brand:hover .mk-brand__logo path:nth-child(3) { fill: var(--mk-red); }
.mk-brand__txt b { display: block; font-weight: 800; font-size: 14px; letter-spacing: 0.34em; line-height: 1.1; }
.mk-brand__txt small { display: block; font-weight: 700; font-size: 9px; letter-spacing: 0.34em; color: var(--mk-red); margin-top: 4px; }

/* Menu : surlignage qui glisse avec un léger rebond */
.mk-nav { position: relative; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); }
.mk-nav__ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; opacity: 0; border-radius: 10px; pointer-events: none;
  background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: left 0.45s var(--mk-spring), width 0.45s var(--mk-spring), opacity 0.2s ease;
}
.mk-nav > a, .mk-nav__mega > a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--mk-text-3); white-space: nowrap; transition: color 0.2s ease;
}
:where(.mk) .mk-nav > a:hover, :where(.mk) .mk-nav__mega > a:hover,
.mk-nav > a[aria-current="page"], .mk-nav__mega > a[aria-current="page"], .mk-nav__mega.is-open > a { color: var(--mk-text); }
.mk-nav__chev { transition: transform 0.3s ease; }
.mk-nav__mega.is-open .mk-nav__chev { transform: rotate(180deg); }
.mk-nav__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mk-red); color: #fff; font: 800 10.5px/18px var(--mk-font-num); text-align: center; animation: mk-pop 2.6s 1.2s infinite; }
@keyframes mk-pop { 0%, 86%, 100% { transform: scale(1); } 92% { transform: scale(1.25); } }

/* Méga-menu Boutique */
.mk-nav__mega { position: relative; }
.mk-mega {
  position: absolute; left: 50%; top: calc(100% + 18px); width: 640px; padding: 10px; border-radius: 20px; z-index: 5;
  background: #131219; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px;
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(0.97); transform-origin: 50% 0;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1), visibility 0s linear 0.35s;
}
.mk-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mk-nav__mega.is-open .mk-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1), visibility 0s; }
.mk-mega > * { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.4s var(--mk-ease), background-color 0.2s ease, border-color 0.2s ease; }
.mk-nav__mega.is-open .mk-mega > * { opacity: 1; transform: none; }
.mk-nav__mega.is-open .mk-mega > :nth-child(2) { transition-delay: 0.05s; }
.mk-nav__mega.is-open .mk-mega > :nth-child(3) { transition-delay: 0.1s; }
.mk-nav__mega.is-open .mk-mega > :nth-child(4) { transition-delay: 0.15s; }
.mk-mega__item {
  position: relative; display: grid; gap: 4px; align-content: end; min-height: 110px; padding: 16px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--mk-text);
}
:where(.mk) .mk-mega__item:hover { color: var(--mk-text); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.mk-mega__item b { font-weight: 800; font-size: 15px; }
.mk-mega__item small { color: var(--mk-text-3); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.mk-mega__item em { font-style: normal; color: var(--mk-gold-light); font-weight: 800; font-size: 12.5px; }
.mk-mega__item .mk-tag { justify-self: start; margin-bottom: 4px; }
.mk-mega__item:not(.mk-mega__item--big):not(.mk-mega__item--row) { padding-right: 104px; }
.mk-mega__item--big { grid-row: span 2; min-height: 236px; background: linear-gradient(160deg, rgba(233, 167, 39, 0.22), rgba(255, 255, 255, 0.02) 60%); border-color: rgba(233, 167, 39, 0.3); }
.mk-mega__item--row { grid-column: 1 / -1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.mk-mega__item--row small { flex: 1; }
.mk-mega__go { transition: transform 0.3s var(--mk-spring); }
.mk-mega__item--row:hover .mk-mega__go { transform: translateX(4px); }
.mk-mega__coins { position: absolute; right: 8px; top: 8px; width: 96px; height: auto; z-index: -1; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.mk-mega__item:hover .mk-mega__coins { transform: rotate(-8deg) scale(1.1); }
.mk-mega__ico { position: absolute; right: 16px; top: 14px; color: var(--mk-blue-light); z-index: -1; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.mk-mega__item:hover .mk-mega__ico { transform: translateY(-4px) rotate(-6deg); }
/* Carte Malkidow miniature (noire à dorure) */
.mk-mega__card {
  position: absolute; right: -28px; top: 20px; width: 190px; aspect-ratio: 1.586; border-radius: 12px; z-index: -1; transform: rotate(-12deg);
  background: linear-gradient(160deg, #24252b, #08080a); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.mk-mega__item--big:hover .mk-mega__card { transform: rotate(-6deg) translateY(-6px) scale(1.04); }
.mk-mega__card::after { content: ""; position: absolute; inset: 8px; border-radius: 8px; border: 1px solid rgba(232, 200, 120, 0.45); }
.mk-mega__chip { position: absolute; left: 18px; top: 16px; width: 28px; height: 20px; border-radius: 4px; background: linear-gradient(115deg, #a87a22, #f7e2a0 30%, #c8963c 52%, #fff2c6 70%, #b4852c); }
.mk-mega__logo {
  position: absolute; left: 50%; top: 44%; width: 34px; height: 35px; transform: translate(-50%, -50%);
  background: linear-gradient(115deg, #a87a22, #f7e2a0 30%, #c8963c 52%, #fff2c6 70%, #b4852c);
  -webkit-mask: url(/images/logo-malkidow.svg) center / contain no-repeat; mask: url(/images/logo-malkidow.svg) center / contain no-repeat;
}
.mk-mega__lvl { position: absolute; right: 42px; bottom: 12px; font-weight: 900; font-size: 13px; color: #e8c878; text-transform: uppercase; transform: skewX(-10deg); }

/* Actions de droite */
.mk-cap__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* Joueurs en ligne : pastille qui s'ouvre au survol sur l'IP (clic = copie) */
.mk-live {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 14px; cursor: pointer;
  background: rgba(65, 202, 119, 0.08); border: 1px solid rgba(65, 202, 119, 0.22); color: #c9f3d8; font: 700 13px var(--mk-font-body); white-space: nowrap;
}
.mk-live--offline { background: rgba(255, 255, 255, 0.04); border-color: var(--mk-line-2); color: var(--mk-text-3); cursor: default; }
.mk-live__more { display: inline-flex; align-items: center; gap: 6px; max-width: 0; opacity: 0; overflow: hidden; color: var(--mk-text); transition: max-width 0.45s var(--mk-ease), opacity 0.3s ease; }
.mk-live:hover .mk-live__more, .mk-live:focus-visible .mk-live__more { max-width: 240px; opacity: 1; }
.mk-live .mk-dot, .mk-drawer__status .mk-dot { position: relative; width: 8px; height: 8px; }
.mk-live:not(.mk-live--offline) .mk-dot::after, .mk-drawer__status .mk-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mk-green); animation: mk-ping-ring 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.mk-live--offline .mk-dot { background: var(--mk-text-4); }
@keyframes mk-ping-ring { 75%, 100% { transform: scale(2.6); opacity: 0; } }
/* Jouer : bord en dégradé qui tourne et reflet qui passe */
.mk-play {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 14px;
  color: #fff; font: 800 14.5px/1 var(--mk-font-body); white-space: nowrap; overflow: hidden; isolation: isolate; background: var(--mk-red);
  transition: box-shadow 0.3s ease, transform 0.3s var(--mk-spring);
}
.mk-play::before { content: ""; position: absolute; inset: -2px; z-index: -2; background: conic-gradient(from var(--mk-a), #ff8a9a, var(--mk-red) 25%, #7a0f1d 50%, var(--mk-red) 75%, #ff8a9a); animation: mk-turn 3s linear infinite; }
.mk-play::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 12px; background: var(--mk-grad-action); }
.mk-play > i { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-120%); animation: mk-sweep 4.5s 1.5s infinite; }
:where(.mk) .mk-play:hover { color: #fff; }
.mk-play:hover { box-shadow: 0 12px 30px -12px rgba(228, 40, 65, 0.9); }
.mk-play:active { transform: scale(0.98); }
.mk-play svg { transition: transform 0.3s var(--mk-spring); }
.mk-play:hover svg { transform: translateX(2px) scale(1.15); }
.mk-play--lg { height: 54px; padding: 0 24px; border-radius: var(--mk-r-lg); font-size: 16px; }
.mk-play--lg::after { border-radius: calc(var(--mk-r-lg) - 2px); }
@keyframes mk-turn { to { --mk-a: 360deg; } }
@keyframes mk-sweep { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
/* Connexion (déconnecté) */
.mk-login { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font-weight: 700; font-size: 14px; white-space: nowrap; transition: background-color 0.2s ease, border-color 0.2s ease; }
:where(.mk) .mk-login:hover { color: var(--mk-text); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); }
/* Compte (connecté) */
.mk-acct { position: relative; }
.mk-me {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 4px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--mk-text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); transition: background-color 0.2s ease, border-color 0.2s ease;
}
.mk-me:hover, .mk-me[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.mk-me__av { position: relative; flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--mk-relief) center / cover no-repeat; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--mk-text-2); }
.mk-me .mk-me__av::after {
  content: ""; position: absolute; inset: -2px; border-radius: 13px; padding: 2px; background: conic-gradient(from var(--mk-a), var(--mk-red), transparent 40%, var(--mk-red));
  animation: mk-turn 4s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.mk-me__txt b { display: block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 13px; line-height: 1.2; }
.mk-me__txt small { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 12px; color: var(--mk-gold-light); }
.mk-me__txt small[hidden] { display: none; }
.mk-me__chev { color: var(--mk-text-4); transition: transform 0.3s ease; }
.mk-me[aria-expanded="true"] .mk-me__chev { transform: rotate(180deg); }
.mk-dd {
  position: absolute; right: 0; top: calc(100% + 16px); width: 290px; padding: 8px; border-radius: 18px; z-index: 40;
  background: #131219; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  display: grid; gap: 2px; transform-origin: calc(100% - 30px) 0; animation: mk-dd-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes mk-dd-in { from { opacity: 0; transform: translateY(-6px) scale(0.95); } }
.mk-dd > * { animation: mk-item-in 0.4s var(--mk-ease) both; }
.mk-dd > :nth-child(2) { animation-delay: 0.03s; } .mk-dd > :nth-child(3) { animation-delay: 0.06s; } .mk-dd > :nth-child(4) { animation-delay: 0.09s; }
.mk-dd > :nth-child(5) { animation-delay: 0.12s; } .mk-dd > :nth-child(6) { animation-delay: 0.15s; } .mk-dd > :nth-child(n+7) { animation-delay: 0.18s; }
@keyframes mk-item-in { from { opacity: 0; transform: translateY(6px); } }
.mk-dd__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; min-width: 0; }
.mk-dd__head .mk-me__av { width: 42px; height: 42px; border-radius: 13px; }
.mk-dd__head b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-dd__head small { color: var(--mk-red-light); font-weight: 700; font-size: 12px; }
.mk-dd__bal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 6px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--mk-line); }
.mk-dd__bal > span { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-weight: 800; font-size: 14px; min-width: 0; }
.mk-dd__cash { width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--mk-green); }
.mk-dd > a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--mk-text-2); transition: background-color 0.15s ease, color 0.15s ease, padding 0.2s ease; }
:where(.mk) .mk-dd > a:hover { background: rgba(255, 255, 255, 0.06); color: var(--mk-text); padding-left: 14px; }
.mk-dd > a svg { flex: none; }
.mk-dd__n { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--mk-red); color: #fff; font: 800 11px/20px var(--mk-font-num); text-align: center; }
.mk-dd hr { border: 0; border-top: 1px solid var(--mk-line); margin: 6px 0; }
:where(.mk) .mk-dd > a.mk-dd__out { color: var(--mk-red-light); }
/* Panier */
.mk-cartbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); transition: background-color 0.2s ease; }
:where(.mk) .mk-cartbtn:hover { color: var(--mk-text); background: rgba(255, 255, 255, 0.08); }
.mk-cartbtn:hover svg { animation: mk-wiggle 0.5s; }
@keyframes mk-wiggle { 30% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
.mk-cartbtn i { position: absolute; right: -4px; top: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--mk-red); color: #fff; font: 800 11px/19px var(--mk-font-num); font-style: normal; text-align: center; box-shadow: 0 0 0 3px #15141a; }
.mk-cartbtn i.is-bump { animation: mk-bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes mk-bump { 40% { transform: scale(1.5); } }
/* Bouton menu (mobile) : trois traits qui deviennent une croix */
.mk-burger { display: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; cursor: pointer; color: var(--mk-text); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.mk-burger__lines { position: relative; width: 18px; height: 12px; }
.mk-burger__lines i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--mk-spring), opacity 0.2s ease, top 0.35s ease; }
.mk-burger__lines i:nth-child(1) { top: 0; } .mk-burger__lines i:nth-child(2) { top: 5px; } .mk-burger__lines i:nth-child(3) { top: 10px; }
.mk-burger[aria-expanded="true"] .mk-burger__lines i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.mk-burger[aria-expanded="true"] .mk-burger__lines i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mk-burger[aria-expanded="true"] .mk-burger__lines i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
/* Menu mobile plein écran, sous la capsule */
.mk-drawer {
  position: fixed; inset: 0; z-index: 45; overflow-y: auto; animation: mk-fade 0.3s ease;
  background: rgba(9, 8, 12, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
@keyframes mk-fade { from { opacity: 0; } }
.mk-drawer__panel {
  min-height: 100%; display: grid; align-content: start; gap: 22px;
  padding: calc(96px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.mk-drawer__links { display: grid; }
.mk-drawer__links a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--mk-line);
  font-weight: 800; font-size: clamp(26px, 8vw, 36px); letter-spacing: -0.01em; color: var(--mk-text);
  animation: mk-slide-up 0.55s var(--mk-ease) both;
}
.mk-drawer__links a:nth-child(2) { animation-delay: 0.05s; } .mk-drawer__links a:nth-child(3) { animation-delay: 0.1s; }
.mk-drawer__links a:nth-child(4) { animation-delay: 0.15s; } .mk-drawer__links a:nth-child(5) { animation-delay: 0.2s; }
.mk-drawer__links a[aria-current="page"] { color: var(--mk-red); }
.mk-drawer__links a svg { color: var(--mk-text-4); flex: none; }
@keyframes mk-slide-up { from { opacity: 0; transform: translateY(24px); } }
.mk-drawer__status, .mk-drawer__cta, .mk-drawer__more { animation: mk-slide-up 0.55s 0.25s var(--mk-ease) both; }
.mk-drawer__status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(65, 202, 119, 0.08); border: 1px solid rgba(65, 202, 119, 0.22); font-weight: 700; font-size: 14px; }
.mk-drawer__status small { display: block; color: var(--mk-text-3); font-weight: 600; font-size: 12.5px; }
.mk-drawer__cta { display: grid; gap: 10px; }
.mk-drawer__more { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; color: var(--mk-text-3); }
@media (max-width: 1060px) {
  .mk-nav, .mk-live__more { display: none; }
  .mk-burger { display: grid; }
  .mk-me__txt, .mk-me__chev { display: none; }
  .mk-me { padding: 0 4px; }
}
@media (max-width: 640px) {
  :root { --mk-header-space: 84px; }
  .mk-header { top: calc(10px + env(safe-area-inset-top, 0px)); padding: 0 max(10px, env(safe-area-inset-left, 0px)) 0 max(10px, env(safe-area-inset-right, 0px)); }
  .mk-cap, .mk-header.is-scrolled .mk-cap { height: 58px; padding: 0 7px 0 14px; border-radius: 18px; }
  .mk-cap .mk-brand { margin-right: 0; gap: 9px; min-width: 44px; min-height: 44px; }
  .mk-brand__logo { width: 26px; height: 27px; }
  .mk-brand__txt b { font-size: 12px; letter-spacing: 0.26em; }
  .mk-brand__txt small { font-size: 8px; letter-spacing: 0.26em; }
  .mk-cap .mk-play, .mk-live { display: none; }
  .mk-cap__actions { gap: 6px; }
  .mk-login span { display: none; }
  .mk-login { width: 42px; padding: 0; justify-content: center; }
  .mk-me, .mk-cartbtn, .mk-burger, .mk-login { height: 42px; }
  .mk-cartbtn, .mk-burger { width: 42px; }
  .mk-dd { position: fixed; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); top: calc(78px + env(safe-area-inset-top, 0px)); width: auto; }
}
@media (max-width: 360px) {
  .mk-brand__txt { display: none; }
}

/* ── Pied de page partagé ─────────────────────────────────────────────── */
.mk-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--mk-line); background: var(--mk-ink); isolation: isolate; overflow: hidden; }
.mk-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 320px; z-index: -1; pointer-events: none; background: radial-gradient(600px 260px at 15% 0%, rgba(228, 40, 65, 0.12), transparent 70%); }
.mk-footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 40px; padding: 28px 32px; border-radius: var(--mk-r-2xl);
  background: linear-gradient(110deg, rgba(228, 40, 65, 0.16), rgba(255, 255, 255, 0.02) 55%), var(--mk-surface); border: 1px solid rgba(228, 40, 65, 0.3);
}
.mk-footer__title { margin-top: 6px; font-weight: 900; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.015em; line-height: 1.1; }
.mk-footer__grid { padding-top: 44px; padding-bottom: 28px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.mk-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mk-footer__col strong { color: var(--mk-text); font-weight: 800; margin-bottom: 4px; }
.mk-footer__col a:not(.mk-brand) { color: var(--mk-text-3); width: fit-content; transition: color 0.2s ease, transform 0.2s ease; }
:where(.mk) .mk-footer__col a:not(.mk-brand):hover { color: var(--mk-text); transform: translateX(3px); }
.mk-footer__col p { max-width: 34ch; margin-top: 8px; }
.mk-footer__bottom { position: relative; padding-top: 16px; padding-bottom: 28px; font-size: 13px; color: var(--mk-text-4); display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.mk-footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--mk-gutter); right: var(--mk-gutter); height: 1px; background: rgba(255, 255, 255, 0.06); }
@media (max-width: 1023px) {
  .mk-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .mk-footer__col:first-child { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 640px) {
  .mk-footer__cta { padding: 22px; }
  .mk-footer__cta .mk-row { width: 100%; }
  .mk-footer__cta .mk-row > * { flex: 1 1 100%; }
  .mk-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 32px; padding-bottom: 20px; gap: 20px 16px; }
  .mk-footer__col:last-child { grid-column: 1 / -1; }
  .mk-footer__col { gap: 0; }
  .mk-footer__col a:not(.mk-brand) { display: flex; align-items: center; min-height: 36px; }
}

/* ── Héros ────────────────────────────────────────────────────────────── */
.mk-hero { position: relative; overflow: hidden; isolation: isolate; }
.mk-hero__media, .mk-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.mk-hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11, 10, 15, 0.95) 0%, rgba(11, 10, 15, 0.72) 42%, rgba(90, 10, 28, 0.3) 78%, rgba(11, 10, 15, 0.4) 100%); }
.mk-hero__fade { position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1; background: linear-gradient(0deg, var(--mk-ink) 0%, rgba(11, 10, 15, 0) 100%); }
@media (max-width: 760px) { .mk-hero__shade { background: linear-gradient(180deg, rgba(11, 10, 15, 0.7) 0%, rgba(11, 10, 15, 0.9) 55%, var(--mk-ink) 100%); } }

/* ── Mouvement ────────────────────────────────────────────────────────── */
@keyframes mk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mk-ping { 0% { box-shadow: 0 0 0 0 rgba(65, 202, 119, 0.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(65, 202, 119, 0); } }
@keyframes mk-ping-gold { 0% { box-shadow: 0 0 0 0 rgba(233, 167, 39, 0.55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(233, 167, 39, 0); } }
@keyframes mk-shine { 0% { transform: translateX(-160%) skewX(-18deg); } 55%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes mk-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(48px, -34px, 0) scale(1.1); } }
@keyframes mk-ken { from { transform: scale(1.04); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes mk-glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes mk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes mk-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mk-rise { animation: mk-rise 0.7s var(--mk-ease) backwards; }
.mk-d1 { animation-delay: 0.06s; } .mk-d2 { animation-delay: 0.12s; } .mk-d3 { animation-delay: 0.18s; } .mk-d4 { animation-delay: 0.24s; } .mk-d5 { animation-delay: 0.3s; }
.mk-ping { animation: mk-ping 2.4s ease-out infinite; }
.mk-ping-gold { animation: mk-ping-gold 2.4s ease-out infinite; }
.mk-shine { position: relative; overflow: hidden; }
.mk-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); animation: mk-shine 4.5s 1s ease-in-out infinite; }
.mk-turn { animation: mk-turn 4s linear infinite; }
.mk-orb { display: none; }
.mk-orb--red, .mk-orb--gold { display: none; }
.mk-ken { animation: mk-ken 22s ease-in-out infinite alternate; }
.mk-glow { animation: mk-glow 3s ease-in-out infinite; }
.mk-bob { animation: mk-bob 4s ease-in-out infinite; }
.mk-growx { transform-origin: left; animation: mk-growx 0.9s var(--mk-ease) backwards; }
.mk-lift { transition: border-color 0.2s ease, transform 0.4s var(--mk-ease), box-shadow 0.3s ease; }
.mk-lift:hover { border-color: var(--mk-line-3); transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.95); }

/* Lumière qui suit le curseur et légère inclinaison (classe .mk-fx posée par mk-ui.js, --x/--y/--rx/--ry) */
.mk-fx { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform 0.5s var(--mk-ease), border-color 0.2s ease, box-shadow 0.3s ease; }
.mk-fx:hover { --ty: -4px; box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.95); }
.mk-fx::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.09), transparent 45%); }
.mk-fx:hover::after { opacity: 1; }

/* Apparition au défilement (animation liée au scroll : visible par défaut si le navigateur ne la connaît pas) */
@supports (animation-timeline: view()) {
  .mk-rv { animation: mk-rv linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
  @keyframes mk-rv { from { opacity: 0; transform: translateY(36px) scale(0.97); } }
}
/* Transition entre les pages du site (même origine), l'en-tête reste en place */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: mk-vt-out 0.22s ease both; }
::view-transition-new(root) { animation: mk-vt-in 0.45s var(--mk-ease) both; }
@keyframes mk-vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes mk-vt-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mk-fx, .mk-lift:hover { transform: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  .mk-header, .mk-footer, .mk-drawer, .mk-orb { display: none !important; }
  body.mk { background: #fff; color: #000; padding-top: 0; }
}
