/* custom_mobile.css - v3.1 - Optimized & Native App Feel */
/* =========================================
   1. GLOBAL "APP NATIVE" FEEL & GPU FIXES
   ========================================= */
/* [V8.0] SCROLL:NATIVE-RESTORE (chrome) */
html,
body {
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}

/* SELECT:DISABLE-UI (app-like) */
body {
  user-select: none;
  -webkit-user-select: none;
}

/* SELECT:ENABLE-INPUTS-ONLY */
input,
textarea,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

/* =========================================
   2. BACKGROUND MOBILE OPTIMISÉ (GPU)
   ========================================= */
@media (max-width: 767px) {

  /* Nouveau fond optimisé via pseudo-élément (Z-Index remonté) */
  body.game-active-background::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1 !important;
    background-image: url("../images/jeguesstonrank_mobile.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #13141f;
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
    transform: translateZ(0);
    will-change: transform;
    display: block !important;
  }

  body.game-active-background {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  body.page-game.game-active-background::before {
    background-image: url("../images/jeguesstonrank_background_game-play.jpg");
  }

  /* BLOB:REMOVE-MOBILE (perf) */
  .tv-background-overlay {
    display: none !important;
  }
}

/* =========================================
   3. STYLES EXISTANTS (BANNIÈRE, ETC.)
   ========================================= */
/* --- BANNIÈRE HAUT MOBILE --- */
@media (max-width: 1279.98px) {
  body {
    padding-top: var(--mobile-ad-banner-height, 60px);
  }

  #mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-ad-banner-height, 60px);
    max-height: var(--mobile-ad-banner-height, 60px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(1, 0, 46, 0.86) 46.22%);
  }

  #mobile-top-bar .default-logo-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
  }

  #mobile-top-bar .titulus-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  #mobile-top-bar .titulus-placeholder>* {
    pointer-events: auto !important;
  }

  .modal-slide-in-right .modal-dialog {
    border-radius: 0 30px 30px 0 !important;
  }
}

/* --- FIN BANNIÈRE HAUT MOBILE --- */
:root {
  --mobile-nav-height: 64px;
  --mobile-nav-bg: rgba(15, 17, 30, 0.8);
  --mobile-nav-blur: 12px;
  --mobile-side-border-color: var(--accent-color);
  --mobile-side-border-glow: var(--mobile-play-theme-bg-hover);
  --mobile-side-border-thickness: 2px;
  --mobile-side-border-radius: 15px;
  --mobile-nav-item-color-inactive: #c0c6db;
  --mobile-nav-item-color-active: hsla(190, 100%, 80%, 1);
  --mobile-nav-item-icon-size: 1.1rem;
  --mobile-nav-item-text-size: 0.6rem;
  --mobile-nav-item-padding: 0.15rem 0.05rem;
  --mobile-play-button-size: 60px;
  --mobile-play-button-offset: -13px;
  --mobile-play-icon-size-factor: 1.65;
  --mobile-play-theme-H: 260;
  --mobile-play-theme-S: 90%;
  --mobile-play-theme-L: 65%;
  --mobile-play-theme-color: hsl(var(--mobile-play-theme-H), var(--mobile-play-theme-S), var(--mobile-play-theme-L));
  --mobile-play-theme-bg: hsla(var(--mobile-play-theme-H), var(--mobile-play-theme-S), calc(var(--mobile-play-theme-L) - 5%), 0.7);
  --mobile-play-theme-bg-hover: hsla(var(--mobile-play-theme-H), var(--mobile-play-theme-S), var(--mobile-play-theme-L), 0.85);
  --mobile-play-distance: 2px;
  --mobile-play-before-offset-x: 0px;
  --mobile-play-before-offset-y: -3px;
}

@keyframes pulse-start-button {

  0%,
  100% {
    transform: translateY(var(--mobile-play-button-offset)) scale(1);
    box-shadow: 0 0 12px hsla(var(--mobile-play-theme-H), var(--mobile-play-theme-S), var(--mobile-play-theme-L), 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  6%,
  18%,
  30% {
    transform: translateY(calc(var(--mobile-play-button-offset) - 3px)) scale(1.16);
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.7), 0 0 15px rgba(108, 99, 255, 1), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  }

  12%,
  24%,
  36% {
    transform: translateY(var(--mobile-play-button-offset)) scale(1);
    box-shadow: 0 0 12px hsla(var(--mobile-play-theme-H), var(--mobile-play-theme-S), var(--mobile-play-theme-L), 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
  }
}

.mobile-bottom-nav .play-button.on-game-page {
  animation: pulse-start-button 10s ease-in-out 2 forwards;
  animation-delay: 0.5s;
}

.mobile-bottom-nav .play-button.on-game-page.no-pulse {
  animation: none !important;
}

body.game-play-intro-buttons .mobile-bottom-nav .play-button.is-active {
  animation: pulse-start-button 10s ease-in-out 2 forwards;
  animation-delay: 0.5s;
}

body.game-play-intro-buttons .mobile-bottom-nav .play-button.is-active.no-pulse {
  animation: none !important;
}

body {
  padding-bottom: var(--mobile-nav-height);
}

.home-background-logo-animated-global {
  top: 2px !important;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    bottom: 0 !important;
  }
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  display: grid !important;
  grid-template-columns: 1fr 80px 1fr !important;
  align-items: center;
  padding: 0;
  z-index: 1000;
  background-color: rgba(10, 12, 25, 0.85);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  box-shadow: 0 -2px 25px rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible !important;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mobile-bottom-nav .play-button-tactical {
  grid-column: 2;
  justify-self: center;
  position: relative !important;
  transform: translateY(-5px) !important;
  /* Petit ajustement optique */
  width: 90px !important;
  height: 70px !important;
  z-index: 1050;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
}

/* Reserve horizontal space for the centered play button to avoid overlap */
.mobile-nav-left-group {
  padding-right: 0px;
}

.mobile-nav-right-group {
  padding-left: 0px;
}

/* Prevent left/right items from shrinking into each other */
.mobile-nav-left-group .mobile-nav-item,
.mobile-nav-right-group .mobile-nav-item {
  flex-shrink: 0;
  margin: 0 6px;
}

/* BACKGROUND WINGS MOBILE */
.mobile-nav-wings-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  overflow: hidden;
  opacity: 0.6;
}

.mobile-wing {
  flex: 1;
  height: 110%;
  background-image: var(--jgtr-wing-bg);
  background-size: cover;
  background-repeat: no-repeat;
}

.mobile-wing--left {
  background-position: bottom left;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.mobile-wing--right {
  transform: scaleX(-1);
  background-position: bottom left;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.mobile-nav-left-group,
.mobile-nav-right-group {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  /* Répartition équilibrée */
  height: 100%;
  position: relative;
  z-index: 2;
  min-width: 0;
  /* Permet le shrink flex si besoin */
}

/* [V10.2] Répartition Tablette / Large Mobile : On évite l'effet de vide excessif */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    grid-template-columns: 1fr 120px 1fr !important;
  }

  .mobile-nav-left-group,
  .mobile-nav-right-group {
    max-width: none;
    justify-content: space-evenly !important;
  }
}

.mobile-nav-left-group {
  padding-left: 2px;
  padding-right: 2px;
}

.mobile-nav-right-group {
  padding-right: 2px;
  padding-left: 2px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mobile-nav-item-color-inactive);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative;
  min-width: 42px;
  /* Un peu réduit pour laisser de la place */
}

.nav-text {
  font-family: "Kanit", sans-serif;
  font-size: 8.5px;
  /* Réduit de 10px à 8.5px pour plus de finesse */
  font-weight: 500;
  /* Un peu moins gras */
  text-transform: uppercase;
  color: #9ca3af;
  /* Retour à une couleur plus discrète */
  margin-top: 3px;
  letter-spacing: 0.6px;
}

.mobile-tactical-icon {
  height: 36px;
  /* Aggrandi de 32px à 36px */
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.mobile-nav-item:active .mobile-tactical-icon {
  transform: scale(0.9);
}

/* MIDDLE : BOUTON JOUER TACTICAL */
.play-button-tactical {
  position: relative !important;
  z-index: 10;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin: 0 !important;
}

.mobile-play-spacer {
  display: none !important;
}

.play-base-img,
.play-hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* Permet de compacter en largeur sans cropper */
  transform: rotate(180deg);
  /* Inversion verticale demandée */
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.play-hover-img {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.play-button-tactical:active .play-hover-img {
  opacity: 1;
}

.play-button-content-tactical {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
}

.play-icon-tactical {
  height: 28px;
  width: auto;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.play-text-tactical {
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  /* Extra gras */
  font-size: 13px;
  /* Aggrandi de 10px à 13px */
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  /* Espacement des lettres augmenté */
}

/* PANEL D'ACTIONS MOBILE DU DOCK */
@media (max-width: 1279.98px) {
  .mobile-dock-panel {
    display: flex;
    position: fixed;
    inset: 0;
    bottom: calc(var(--mobile-nav-height, 64px) + env(safe-area-inset-bottom));
    z-index: 9998;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px;
    opacity: 0;
    pointer-events: none;
    perspective: 800px;
  }

  .mobile-dock-panel__header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(108, 99, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .mobile-dock-panel__header-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }

  .mobile-dock-panel__header-text {
    flex: 1;
    min-width: 0;
  }

  .mobile-dock-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-dock-panel.is-open .mobile-dock-panel__sheet {
    transform: rotateX(0deg) scale(1);
  }

  /* Backdrop avec gradient sombre */
  .mobile-dock-panel__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 6, 15, 0.95) 0%, rgba(12, 13, 25, 0.85) 50%, rgba(12, 13, 25, 0.6) 100%);
  }

  /* Sheet principal - Glassmorphism */
  .mobile-dock-panel__sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: 20px;
    border: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 99, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform-origin: bottom center;
    transform: rotateX(85deg) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Header avec titre */
  .mobile-dock-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.15);
    background: linear-gradient(180deg, rgba(108, 99, 255, 0.08) 0%, transparent 100%);
  }

  .mobile-dock-panel__title {
    font-family: "Kanit", sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #d8b4fe;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(216, 180, 254, 0.3);
  }

  .mobile-dock-panel__subtitle {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.6rem;
    color: #94a3b8;
    letter-spacing: 0.05em;
  }

  .mobile-dock-panel__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-dock-panel__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
  }

  .mobile-dock-panel__close:active {
    transform: scale(0.95);
  }

  /* Contenu des actions */
  .mobile-dock-panel__actions {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ═════════════════════════════════════════════════════════════════
   BOUTON PRIMARY - "Devenir Compétiteur"
   ═════════════════════════════════════════════════════════════════ */
  .mobile-dock-panel__action--premium {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 64px;
    padding: 14px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.9) 0%, rgba(168, 85, 247, 0.85) 100%);
    color: #fff;
    text-decoration: none;
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4), 0 0 0 1px rgba(250, 204, 21, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: passPanelPulse 3s ease-in-out infinite;
  }

  .mobile-dock-panel__action--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.mobile-dock-panel__action--premium:hover::before {
  transform: translateX(100%);
}

.mobile-dock-panel__action--premium:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5), 0 0 0 1px rgba(250, 204, 21, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mobile-dock-panel__action--premium:active {
  transform: translateY(0) scale(0.98);
}

.mobile-dock-panel__action--premium .mobile-dock-panel__action-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mobile-dock-panel__action--premium .mobile-dock-panel__action-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-dock-panel__action--premium .mobile-dock-panel__action-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.mobile-dock-panel__action--premium .mobile-dock-panel__action-desc {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
}

.mobile-dock-panel__action--premium .mobile-dock-panel__action-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.mobile-dock-panel__action--premium:hover .mobile-dock-panel__action-arrow {
  transform: translateX(4px);
  color: #facc15;
}

/* ═════════════════════════════════════════════════════════════════
   BOUTON SECONDARY - "Avantages du pass"
   ═════════════════════════════════════════════════════════════════ */
.mobile-dock-panel__action--glass {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(30, 41, 59, 0.75) 100%);
  color: #f5f3ff;
  text-decoration: none;
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(108, 99, 255, 0.05);
}

.mobile-dock-panel__action--glass:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.8) 100%);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.15), 0 0 0 1px rgba(108, 99, 255, 0.1);
  transform: translateY(-1px);
}

.mobile-dock-panel__action--glass:active {
  transform: translateY(0) scale(0.98);
}

.mobile-dock-panel__action--glass .mobile-dock-panel__action-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  opacity: 0.9;
}

.mobile-dock-panel__action--glass i.fas {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(167, 139, 250, 0.9);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--glass:hover i.fas {
  color: #d8b4fe;
}

.mobile-dock-panel__action--glass .mobile-dock-panel__action-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mobile-dock-panel__action--glass .mobile-dock-panel__action-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f5f3ff;
  line-height: 1.2;
}

.mobile-dock-panel__action--glass .mobile-dock-panel__action-desc {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.mobile-dock-panel__action--glass .mobile-dock-panel__action-arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: rgba(167, 139, 250, 0.7);
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--glass:hover .mobile-dock-panel__action-arrow {
  color: #d8b4fe;
  transform: translateX(3px);
}

/* ═════════════════════════════════════════════════════════════════
   BOUTON CTA - "Devenir Compétiteur"
   Style battle_pass.css : gradient orange → rouge
   ═════════════════════════════════════════════════════════════════ */
.mobile-dock-panel__action--cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
  color: #fff;
  text-decoration: none;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.mobile-dock-panel__action--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.mobile-dock-panel__action--cta:hover::before {
  transform: translateX(100%);
}

.mobile-dock-panel__action--cta:hover {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-dock-panel__action--cta:active {
  transform: scale(0.98) translateY(0);
}

.mobile-dock-panel__action--cta .mobile-dock-panel__action-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.mobile-dock-panel__action--cta i.fas {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.mobile-dock-panel__action--cta .mobile-dock-panel__action-arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--cta:hover .mobile-dock-panel__action-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* ═════════════════════════════════════════════════════════════════
   BADGE ACTIF - "Compétiteur Actif" (quand déjà premium)
   Style gold comme bp-cta-premium--active
   ═════════════════════════════════════════════════════════════════ */
.mobile-dock-panel__action--active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid rgba(252, 211, 77, 0.4);
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-family: "Kanit", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(250, 204, 21, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: passPanelEntryItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.mobile-dock-panel__action--active i.fas {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.mobile-dock-panel__action--active span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ═════════════════════════════════════════════════════════════════
   BOUTON TERTIAIRE - "Voir le pass"
   Outline glassmorphism riche
   ═════════════════════════════════════════════════════════════════ */
.mobile-dock-panel__action--outline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.5) 100%);
  color: #e2e8f0;
  text-decoration: none;
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.mobile-dock-panel__action--outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(108, 99, 255, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.mobile-dock-panel__action--outline:hover::before {
  transform: translateX(100%);
}

.mobile-dock-panel__action--outline:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0%, rgba(30, 41, 59, 0.6) 100%);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.1), 0 0 0 1px rgba(108, 99, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  color: #f8fafc;
}

.mobile-dock-panel__action--outline:active {
  transform: translateY(0) scale(0.98);
}

.mobile-dock-panel__action--outline .mobile-dock-panel__action-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  opacity: 0.85;
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--outline:hover .mobile-dock-panel__action-icon {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.4));
}

.mobile-dock-panel__action--outline .mobile-dock-panel__action-arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: rgba(148, 163, 184, 0.6);
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--outline:hover .mobile-dock-panel__action-arrow {
  color: #d8b4fe;
  transform: translateX(3px);
}

/* Animations séquentielles des items */
.mobile-dock-panel.is-open .mobile-dock-panel__action--premium {
  animation: passPanelEntryItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.mobile-dock-panel.is-open .mobile-dock-panel__action--glass {
  animation: passPanelEntryItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.mobile-dock-panel.is-open .mobile-dock-panel__action--cta {
  animation: passPanelEntryItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.mobile-dock-panel.is-open .mobile-dock-panel__action--outline {
  animation: passPanelEntryItem 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

  body.mobile-dock-panel-open { overflow: hidden !important; }
}

/* Animation de lueur (glow) pour attirer le regard sur le bouton Jouer */
@keyframes play-button-glow-pulse {
  0% {
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transform: rotate(180deg) scale(1);
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.9)) drop-shadow(0 0 10px rgba(236, 72, 153, 0.6)) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.5)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transform: rotate(180deg) scale(1);
  }
}

.play-button-tactical .play-base-img {
  animation: play-button-glow-pulse 3s ease-in-out 2 forwards;
  /* Limité à 2 cycles de 3s = 6s */
}

/* Animation d'attention pour le bouton jouer quand on est sur une page de jeu */
@keyframes attention-play-bounce {

  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) !important;
  }

  50% {
    transform: translate(-50%, -50%) translateY(-8px) !important;
  }
}

.play-button-tactical.on-game-page {
  animation: attention-play-bounce 2s infinite ease-in-out;
}

/* CORRECTIF RESPONSIVE PETITS ÉCRANS (iPhone SE, etc.) */
@media (max-width: 380px) {
  .mobile-bottom-nav {
    grid-template-columns: 1fr 70px 1fr !important;
  }

  .mobile-tactical-icon {
    height: 28px !important;
  }

  .nav-text {
    font-size: 7px !important;
  }

  .mobile-nav-item {
    min-width: 38px !important;
  }

  .mobile-avatar-wrapper {
    width: 32px !important;
    height: 32px !important;
  }

  .mobile-avatar-image {
    width: 32px !important;
    height: 32px !important;
  }

  .mobile-rankings-item .mobile-nav-resource-display div:last-child {
    width: 32px !important;
  }

  .menu-icon-wrapper {
    font-size: 18px !important;
  }

  .play-button-tactical {
    transform: translateY(-3px) scale(0.85) !important;
  }
}

/* LOGO TEXT BOTTOM */
.mobile-nav-logo-text {
  display: none;
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Kanit", sans-serif;
  font-weight: 600;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}

/* AVATAR WRAPPER PRESERVATION (Restored to original behavior) */
.mobile-avatar-wrapper {
  position: relative;
  z-index: 8;
  margin-top: -15px;
  /* Ajusté pour le Sept d'Or */
  margin-left: 0;
  /* Centré dans son item */
  width: 38px;
  height: 38px;
}

.mobile-avatar-image {
  display: block;
  height: 38px;
  width: 38px;
  border-radius: 50% !important;
  /* Forcer le rond */
  object-fit: cover;
  border: 2px solid var(--mobile-nav-bg);
  box-shadow: 0 0 0 1.5px var(--mobile-nav-item-color-active), 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* BADGE PASS SOUS L'AVATAR (Mobile Only) */
.mobile-avatar-wrapper .premium-pass-badge {
  position: absolute !important;
  top: auto !important;
  bottom: -8px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 28px;
  height: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-radius: 4px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 8px rgba(245, 158, 11, 0.5);
  z-index: 10;
  padding: 0 !important;
  border: none !important;
}

.mobile-avatar-wrapper .premium-pass-badge .premium-pass-text {
  font-size: 6px;
  font-weight: 900;
  color: #000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mobile-avatar-wrapper .premium-pass-badge img {
  display: none !important;
}

/* WIDGETS PRESERVATION */
.mobile-nav-item .widget-myrank-container,
.mobile-nav-item .widget-jmkoins-balance-container {
  font-size: 8px;
  margin-top: -2px;
}

/* JMKOINS BALANCE STYLING RESTORATION - COMPACT MOBILE */
.mobile-jmkoin-item .mobile-nav-resource-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 5px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  margin-top: 3px;
  min-width: auto;
  white-space: nowrap;
}

.mobile-jmkoin-item .mobile-nav-resource-display i.fa-coins {
  font-size: 8px;
  color: #fb923c;
  filter: drop-shadow(0 0 4px rgba(251, 146, 60, 0.4));
}

.mobile-jmkoin-item .mobile-nav-resource-display .jmkoin-points {
  font-size: 8px;
  font-weight: 800;
  color: #fb923c;
  font-family: "Kanit", sans-serif;
  letter-spacing: 0.1px;
}

/* MYRANK STYLING RESTORATION & FIX */
.mobile-rankings-item .mobile-nav-resource-display {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-top: 1px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.mobile-rankings-item .mobile-nav-resource-display div:first-child {
  font-size: 11px !important;
  /* De 9px à 11px */
  font-weight: 800 !important;
  margin-bottom: 2px !important;
  line-height: 1 !important;
  color: #fde047;
  /* Jaune rank plus punchy */
}

.mobile-rankings-item .mobile-nav-resource-display div:last-child {
  margin-top: 0 !important;
  width: 38px !important;
  /* De 34px à 38px */
}

.mobile-nav-item.mobile-rankings-item .widget-myrank-container {
  margin-top: 0;
}

/* MENU ICON & VISIBILITY FIX */
.menu-icon-wrapper {
  position: relative;
  font-size: 22px;
  color: #fff !important;
  /* Force visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.mobile-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 10px;
  border: 1.5px solid #0a0c19;
  font-weight: bold;
}

/* DISABLE STATE */
.mobile-nav-item.is-disabled {
  opacity: 0.4;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* Ajustement de la hauteur pour les rubriques spécifiques */
.mobile-rankings-item,
.mobile-pass-item,
.mobile-clips-item {
  transform: translateY(-5px);
  /* Remonte légèrement ces icônes */
}

.mobile-nav-item.play-button.active,
.mobile-nav-item.play-button:active {
  --mobile-play-distance: 1px;
  top: 8px;
  background-color: hsla(var(--mobile-play-theme-H), var(--mobile-play-theme-S), calc(var(--mobile-play-theme-L) - 10%), 0.35);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 6px hsla(var(--mobile-play-theme-H), var(--mobile-play-theme-S), var(--mobile-play-theme-L), 0.2);
}

.mobile-nav-item.play-button.is-locked-open {
  top: 4px;
}

.mobile-nav-item.play-button i {
  margin: 0;
  transform: scale(1.05);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.mobile-nav-item.play-button .play-button-custom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.mobile-nav-item.play-button .play-button-text-start,
.mobile-nav-item.play-button .play-button-text-jouer {
  font-size: 0.65rem;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-nav-item.play-button .play-button-custom-icon,
.mobile-nav-item.play-button .game-pad-icon-header {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.mobile-logo-avatar-group {
  flex: 1 1 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
  position: relative;
  overflow: visible;
  z-index: 7;
  cursor: pointer;
  text-decoration: none;
}

.mobile-logo-avatar-group:hover::after,
.mobile-logo-avatar-group.active::after {
  opacity: 0;
}

.mobile-logo-item {
  color: #d5e0ff;
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.8;
}

.mobile-logo-item .logo-line-1,
.mobile-logo-item .logo-line-2 {
  font-weight: 700;
  font-size: 0.95rem;
}

.mobile-nav-item.mobile-myrank-item .myrank-label {
  font-size: 0.5rem;
  font-weight: 500;
  color: #d1d5db;
}

.mobile-nav-item.mobile-myrank-item .myrank-points {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fde047;
}

.mobile-nav-item.mobile-myrank-item i {
  color: #facc15;
}

.mobile-nav-item.mobile-myrank-item:hover i {
  filter: drop-shadow(0 0 6px #fde047);
}

.mobile-nav-item.mobile-jmkoin-item i {
  color: #fb923c;
}

.mobile-nav-item.mobile-jmkoin-item:hover i {
  filter: drop-shadow(0 0 6px #fdba74);
}

.mobile-nav-item.mobile-myrank-item .nav-text,
.mobile-nav-item.mobile-jmkoin-item .nav-text {
  display: none;
}

.mobile-badge {
  position: absolute;
  top: -10px;
  right: -1px;
  font-size: 9px;
  padding: 0.5px 4px;
  min-width: 15px;
  height: 15px;
  line-height: 13px;
  background: hsl(0, 70%, 50%);
  color: white;
  font-weight: 600;
  border-radius: 5px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 6px 1px hsl(0, 70%, 50%);
  z-index: 2;
}

.modal-slide-in-right .modal-dialog {
  margin-left: 0;
  margin-right: auto;
  right: auto;
  left: 0;
  transform: translateX(-100%) !important;
  border-left: none !important;
  border-right: 1px solid var(--primary-bg, rgba(19, 20, 31, 0.5)) !important;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.35) !important;
}

.modal-slide-in-right.show .modal-dialog {
  transform: translateX(0) !important;
}

.modal-slide-in-right .modal-dialog {
  width: 88% !important;
  max-width: 330px !important;
}

.modal-slide-in-right .modal-header .modal-toggle-size {
  display: none !important;
}

.game-selection-grid {
  display: grid;
}

.game-selection-grid>.game-selection-card {
  order: 2;
}

.game-selection-grid>.game-selection-card.game-card-is-active-for-sort {
  order: 1;
}

@media (max-width: 767px) {
  .notification-toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .notification-toast.success {
    background-color: #166534;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(74, 222, 128, 0.4);
  }

  .notification-toast.error {
    background-color: #991b1b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(248, 113, 113, 0.4);
  }

  .notification-toast.warning {
    background-color: #92400e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(251, 191, 36, 0.4);
  }

  .notification-toast.info {
    background-color: #1e40af;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(96, 165, 250, 0.4);
  }
}

@media (max-width: 640px) {
  .notification-container.top-right {
    top: 65px !important;
    left: 5% !important;
    right: 5% !important;
    bottom: auto !important;
    width: 90% !important;
    max-width: none !important;
    transform: none !important;
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .notification-toast {
    transform: scale(0.95) translateY(-15px);
  }

  .notification-toast.show {
    transform: scale(1) translateY(0);
  }
}

/* --- POSITIONNEMENT ET ANIMATION SWITCHER MOBILE (UNIVERSAL) --- */
@media (max-width: 1279.98px) {

  /* Le wrapper doit laisser passer le design wings */
  .jgtr-hud-topbar:has(.is-mobile-fixed) {
    display: contents !important;
  }

  .tactical-switcher.is-mobile-fixed,
  .jgtr-universal-switcher.is-mobile-fixed {
    position: fixed !important;
    bottom: calc(var(--mobile-nav-height, 64px) + env(safe-area-inset-bottom) + 4px) !important;
    left: 50% !important;
    /* DFI : Suppression des !important sur transform/opacity pour laisser l'animation jouer */
    transform: translateX(-50%) translateZ(0);
    margin: 0 !important;
    width: auto !important;
    min-width: 400px;
    z-index: 39 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    clip-path: none !important;
    /* Animation fluide DFI */
    animation: mobile-switcher-slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: visible !important;
  }

  /* Correction des boutons pour le mode mobile fixe */
  .tactical-switcher.is-mobile-fixed .switcher-btn,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn {
    flex: 1;
    min-width: 120px !important;
    min-height: 50px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.7rem !important;
    /* Renfort du contraste texte sur mobile */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(108, 99, 255, 0.5) !important;
    /* DFI : Remonter légèrement le contenu (texte + icône) sur mobile */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Décalage vertical du contenu interne pour compenser l'assise visuelle des wings */
  .tactical-switcher.is-mobile-fixed .switcher-btn .switcher-icon-img,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn .switcher-icon-img {
    transform: translateY(-4px) translateZ(0);
    will-change: transform;
  }

  /* [V11.2] Décalage du texte vers le centre (Mobile) */
  .tactical-switcher.is-mobile-fixed .switcher-btn:nth-of-type(1) span,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(1) span {
    transform: translateX(3px) translateY(-4px) translateZ(0);
    will-change: transform;
  }

  .tactical-switcher.is-mobile-fixed .switcher-btn:nth-of-type(2) span,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(2) span {
    transform: translateX(-3px) translateY(-4px) translateZ(0);
    will-change: transform;
  }

  /* Exception Progression XP (Garde uniquement le standard vertical) */
  .tactical-switcher.is-mobile-fixed .switcher-btn:nth-of-type(2) span.js-no-shift,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(2) span.js-no-shift {
    transform: translateY(-4px) translateZ(0) !important;
  }

  /* Amélioration de l'opacité des "Wings" sur mobile */
  .tactical-switcher.is-mobile-fixed .switcher-btn::before,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn::before {
    opacity: 1 !important;
    /* Force l'opacité max car le fond mobile est souvent clair/mouvant */
    filter: brightness(0.85) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) !important;
  }

  .tactical-switcher.is-mobile-fixed .switcher-btn.active::before,
  .jgtr-universal-switcher.is-mobile-fixed .switcher-btn.active::before {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(34, 211, 238, 0.6)) drop-shadow(0 4px 15px rgba(0, 0, 0, 1)) !important;
  }
}

@media (max-width: 1279.98px) {
  .jgtr-hud-subbar {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    margin-top: 0rem !important;
    padding: 0.75rem 1rem !important;
    border: none !important;
    border-radius: 0 !important;
    position: sticky !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 900 !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
  }

  .jgtr-hud-subbar__main {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
  }

  .jgtr-hud-subbar__title {
    width: 100% !important;
  }

  .jgtr-hud-subbar__title h1 {
    font-size: 1rem !important;
    line-height: 1.1 !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .jgtr-hud-subbar__title h1 .gradient-text {
    font-size: 1.05rem !important;
  }

  .jgtr-hud-subtitle {
    font-size: 0.6rem !important;
    letter-spacing: 0.08em !important;
    margin-left: 0 !important;
    display: block !important;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .subbar-action-zone {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: flex-end !important;
  }
}

@keyframes mobile-switcher-slide-up {
  0% {
    transform: translateX(-50%) translateY(30px) translateZ(0);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0) translateZ(0);
    opacity: 1;
  }
}

@media (max-width: 1279.98px) {
  body.page-profile .profile-master-subbar {
    width: calc(100vw - 1.5rem) !important;
    max-width: 720px !important;
    margin: 0.6rem auto 0.9rem !important;
    padding: 0.8rem 1rem !important;
    border: 1px solid rgba(115, 104, 254, 0.47) !important;
    border-radius: 8px !important;
    background: rgba(15, 17, 25, 0.4) !important;
    position: relative !important;
    transform: none !important;
  }

  body.page-profile .profile-action-btn-wrapper-left {
    margin-top: calc(0.85rem - 35px) !important;
    margin-bottom: 0.75rem !important;
  }

  body.page-profile .profile-action-btn-wrapper-left .btn-back-cockpit-subbar {
    font-size: 0.62rem !important;
    line-height: 1.02 !important;
    padding: 0.6rem 0.65rem !important;
  }

  body.page-profile .profile-forge-avatar-wrapper {
    zoom: 0.88 !important;
    transform: none !important;
  }

  body.page-profile .profile-forge-avatar-wrapper .widget-identity-forge-avatar {
    zoom: 0.72 !important;
  }

  body.page-profile .profile-forge-avatar-wrapper .ifa-studio-scene {
    transform: none !important;
  }

  body.page-profile .profile-forge-avatar-wrapper .ifa-hud-card-wrapper,
  body.page-profile .profile-forge-avatar-wrapper .ifa-glass-frame-layer,
  body.page-profile .profile-forge-avatar-wrapper .ifa-studio-char-viewport,
  body.page-profile .profile-forge-avatar-wrapper .ifa-pedestal-layer,
  body.page-profile .profile-forge-avatar-wrapper .ifa-controls-group {
    left: 50% !important;
  }

  body.page-profile .profile-forge-avatar-wrapper .ifa-hud-card-wrapper {
    top: 210px !important;
  }

  body.page-profile .profile-center-staging {
    margin-top: -20px !important;
  }

  body.page-profile .profile-subbar-orders-dock {
    margin-top: calc(2.65rem + 40px) !important;
    margin-bottom: 0.1rem !important;
    max-width: calc(100vw - 0.5rem) !important;
  }

  body.page-profile .profile-identity-card-wrapper {
    margin-top: -1.35rem !important;
    z-index: 5 !important;
  }

  .ifa-action-btn-wrapper {
    left: -160px !important;
    margin-top: -135px;
  }

  body.page-profile .js-profile-identity-card-container {
    cursor: default !important;
  }

  body.page-profile .js-profile-identity-card-container.is-zoomed {
    transform: none !important;
    zoom: 1 !important;
  }
}

/* =========================================
   FIX: OVERFLOW HORIZONTAL HOME HERO (Chrome Android)
   Les stages oracle + TV font 660px mais les viewports Android sont ~360-414px.
   Sur Chrome Android, le debordement rend le hero decale a droite.
   Sur iOS Safari, l overflow est silencieusement avale - d ou l asymetrie entre appareils.
   Solution : clip l overflow au niveau du hero container (Pixi est off sur mobile).
   ========================================= */
@media (max-width: 1279px) {
  body.page-home {
    overflow-x: hidden;
  }

  body.page-home #home-hero-scene {
    overflow: hidden !important;
  }
}

/* =========================================
   STYLE PRÉCIEUX POUR LE BOUTON D'OBTENTION DES JMKOINS DANS LE DOCK MOBILE (Thème FormHelper Jaune/Orange)
   ========================================= */
.mobile-dock-panel__action--jmk {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  border-radius: 14px;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 50%, #ea580c 100%);
  color: #0f172a;
  text-decoration: none;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-align: left;
}

.mobile-dock-panel__action--jmk:hover {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f97316 100%);
  border-color: rgba(250, 204, 21, 0.8);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: scale(1.01) translateY(-1px);
}

.mobile-dock-panel__action--jmk:active {
  transform: translateY(0) scale(0.98);
}

.mobile-dock-panel__action--jmk i.fas {
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.2));
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--jmk:hover i.fas {
  color: #451a03;
  transform: scale(1.1);
}

.mobile-dock-panel__action--jmk .mobile-dock-panel__action-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.mobile-dock-panel__action--jmk .mobile-dock-panel__action-title {
  font-size: 0.9rem;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.2;
}

.mobile-dock-panel__action--jmk .mobile-dock-panel__action-desc {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.8);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.mobile-dock-panel__action--jmk .mobile-dock-panel__action-arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: rgba(15, 23, 42, 0.85);
  transition: all 0.2s ease;
}

.mobile-dock-panel__action--jmk:hover .mobile-dock-panel__action-arrow {
  color: #020617;
  transform: translateX(3px);
}

/* PANTHEON : SWITCHER UNIVERSEL MOBILE — quatre onglets lisibles sans chevauchement */
@media (max-width: 767px) {
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed { width: calc(100vw - 16px) !important; min-width: 0 !important; max-width: calc(100vw - 16px) !important; gap: 0 !important; justify-content: stretch !important; box-sizing: border-box !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed::before { display: none !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn { width: 0 !important; min-width: 0 !important; min-height: 44px !important; flex: 1 1 0 !important; margin: 0 !important; padding: 0.38rem 0.2rem 0.62rem !important; gap: 1px !important; font-size: 0.5rem !important; letter-spacing: 0.02em !important; line-height: 1 !important; flex-direction: column !important; white-space: nowrap !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(1) { order: 2 !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(2) { order: 3 !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(3) { order: 1 !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn:nth-of-type(4) { order: 4 !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; transform: none !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn .switcher-icon-img { width: auto !important; height: 13px !important; margin: 0 !important; transform: none !important; }
  body.page-rankings .jgtr-universal-switcher.is-mobile-fixed .switcher-btn.active::after { bottom: 4px !important; left: 22% !important; right: 22% !important; height: 2px !important; }
}
