@keyframes premium-hud-reconstruction {
  0% {
    opacity: 0;
    /* Étape 1 : Le Noyau (Petit carré de lumière) */
    transform: perspective(2000px) translate3d(0, 150px, -800px) rotateX(60deg) scale(0.5);
    clip-path: inset(49% 45% 49% 45%);
    filter: brightness(10);
  }

  8% {
    /* Étape 2 : Le Rail (Expansion horizontale laser ultra-rapide) */
    opacity: 1;
    transform: perspective(2000px) translate3d(0, 100px, -600px) rotateX(45deg) scale(0.8);
    clip-path: inset(48% 5% 48% 5%);
    filter: brightness(5);
  }

  25% {
    /* Étape 3 : Le Rideau (Ouverture verticale + Impact) */
    transform: perspective(2000px) translate3d(0, -15px, 80px) rotateX(-10deg) scale(1.05);
    clip-path: inset(-100px 0 0 0);
    filter: brightness(1.2);
  }

  50% {
    /* Étape 4 : Stabilisation Inertielle */
    transform: perspective(2000px) translate3d(0, 2px, -15px) rotateX(2deg) scale(0.995);
    clip-path: inset(-100px 0 0 0);
  }

  100% {
    /* Étape 5 : Ancrage Prestige */
    opacity: 1;
    transform: perspective(2000px) translate3d(0, 0, 0) rotateX(0deg) scale(1);
    clip-path: inset(-100px 0 0 0);
  }
}

.animate-tactical-opening {
  opacity: 0;
  will-change: transform, opacity, filter, clip-path;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  /* ANIM:1.5s-NERVOUS-START */
  animation: premium-hud-reconstruction 1.5s cubic-bezier(0.2, 0, 0, 1) forwards;
}

/* -------------------------------------------------------------------------- */
/* TACTICAL TERMINAL PANEL (V1.0) */
/* -------------------------------------------------------------------------- */
.terminal-hud-panel {
  background-color: rgba(13, 14, 23, 0.8);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  /* FIX:OVERFLOW-CREST-BREATHE */
  overflow: visible !important;
}

@keyframes crest-mechanical-clamping {

  0%,
  20% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1.2);
    filter: brightness(2) blur(10px);
  }

  35% {
    /* L'enclenchement (Impact sur le header) */
    opacity: 1;
    transform: translate(-50%, -70%) scale(0.95);
    filter: brightness(1.5) blur(0px);
  }

  50% {
    /* Petit rebond mécanique */
    transform: translate(-50%, -82%) scale(1.02);
  }

  100% {
    /* Position finale verrouillée */
    opacity: 1;
    transform: translate(-50%, -77%) scale(1);
    filter: brightness(1) blur(0px);
  }
}

.terminal-crest {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -77%);
  width: 200px;
  height: auto;
  z-index: 60;
  pointer-events: none;
  /* ANIM:SYNC-HUD-DEPLOY-1.5s */
  animation: crest-mechanical-clamping 1.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
}

/* BTN:TOGGLE-TACTICAL (login/register) */
.login-email-toggle,
.register-email-toggle {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.login-email-toggle:hover,
.register-email-toggle:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.terminal-system-header {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  border-radius: 0.5rem 0.5rem 0 0;
}

.system-path {
  color: #9ca3af;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.system-path span {
  color: #6b7280;
}

.system-status {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.terminal-body {
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.terminal-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* Theme variants for terminal panel */
.theme-emerald.terminal-hud-panel {
  border-color: rgba(16, 185, 129, 0.3);
}

.theme-indigo.terminal-hud-panel {
  border-color: rgba(108, 99, 255, 0.3);
}

.theme-amber.terminal-hud-panel {
  border-color: rgba(245, 158, 11, 0.3);
}

.theme-purple.terminal-hud-panel {
  border-color: rgba(168, 85, 247, 0.3);
}

.theme-conflict.terminal-hud-panel {
  border-color: rgba(239, 68, 68, 0.3);
}

/* -------------------------------------------------------------------------- */
/* TACTICAL TOOLTIP SYSTEM (V1.0) */
/* -------------------------------------------------------------------------- */
.tactical-tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tactical-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: max-content;
  min-width: 200px;
  max-width: 280px;
  background: rgba(13, 17, 34, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 99, 255, 0.5);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  z-index: 2147483647;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(108, 99, 255, 0.1);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center bottom;
}

/* Positions */
.tactical-tooltip--top {
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px) rotate(5deg);
}

.tactical-tooltip--bottom {
  bottom: auto;
  top: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px) rotate(-5deg);
  transform-origin: center top;
}

.tactical-tooltip--right {
  bottom: 50%;
  left: 140%;
  transform: translateY(50%) translateX(-10px) rotate(-5deg);
  transform-origin: left center;
}

/* Alignment Variants */
.tactical-tooltip--align-right {
  left: auto !important;
  right: 0 !important;
  transform: translateY(10px) rotate(5deg) !important;
  transform-origin: bottom right !important;
}

.tactical-tooltip--align-left {
  left: 0 !important;
  right: auto !important;
  transform: translateY(10px) rotate(-5deg) !important;
  transform-origin: bottom left !important;
}

/* Arrow Positioning */
.tactical-tooltip::after {
  content: "";
  position: absolute;
  border-width: 6px;
  border-style: solid;
}

.tactical-tooltip--top::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-color: rgba(108, 99, 255, 0.5) transparent transparent transparent;
}

.tactical-tooltip--align-right::after {
  left: auto !important;
  right: 12px !important;
  transform: none !important;
}

.tactical-tooltip--align-left::after {
  left: 12px !important;
  right: auto !important;
  transform: none !important;
}

.tactical-tooltip--bottom::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-color: transparent transparent rgba(108, 99, 255, 0.5) transparent;
}

/* Visibility on Hover */
.tactical-tooltip-wrapper:hover .tactical-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(5deg) !important;
  /* Calé sur le rotate du bouton */
}

.tactical-tooltip-wrapper:hover .tactical-tooltip--align-right {
  transform: translateY(0) rotate(5deg) !important;
  /* Calé sur le rotate du bouton */
}

.tactical-tooltip-wrapper:hover .tactical-tooltip--align-left {
  transform: translateY(0) rotate(-5deg) !important;
}

.tactical-tooltip--no-rotate {
  transform: translateX(-50%) translateY(10px) !important;
}

.tactical-tooltip-wrapper:hover .tactical-tooltip--no-rotate {
  transform: translateX(-50%) translateY(0) rotate(0deg) !important;
}

.tactical-tooltip--no-rotate.tactical-tooltip--align-right {
  transform: translateY(10px) rotate(0deg) !important;
}

.tactical-tooltip-wrapper:hover .tactical-tooltip--no-rotate.tactical-tooltip--align-right {
  transform: translateY(0) rotate(0deg) !important;
}

/* Header & Body */
.tactical-tooltip__header {
  font-size: 0.65rem;
  font-weight: 900;
  color: #a78bfa;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(108, 99, 255, 0.2);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tactical-tooltip__header::before {
  content: '>';
  color: #6c63ff;
}

.tactical-tooltip__body {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #e2e8f0;
  font-weight: 500;
}

.tactical-tooltip__body>*:last-child {
  margin-bottom: 0 !important;
}

.tactical-tooltip__highlight {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .tactical-tooltip {
    min-width: 160px;
    max-width: 200px;
    padding: 0.6rem 0.8rem;
  }

  .tactical-tooltip__header {
    font-size: 0.55rem;
  }

  .tactical-tooltip__body {
    font-size: 0.65rem;
  }
}

/* V2.1 - Ajout styles Premium Avatar (Header & Mobile) */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Regular.woff2') format('woff2'), url('../fonts/Kanit-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Medium.woff2') format('woff2'), url('../fonts/Kanit-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Bold.woff2') format('woff2'), url('../fonts/Kanit-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Bold.woff2') format('woff2'), url('../fonts/Kanit-Bold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Bold.woff2') format('woff2'), url('../fonts/Kanit-Bold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Kanit';
  src: url('../fonts/Kanit-Light.woff2') format('woff2'), url('../fonts/Kanit-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-display: block;
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/yellowtail-v23-latin-regular.woff2') format('woff2'), url('../fonts/yellowtail-v23-latin-regular.woff') format('woff');
}

:root {
  --primary-bg: #13141f;
  --primary-light: #1a1b2e;
  --primary-gradient: linear-gradient(to bottom right, rgba(10, 10, 14, 0.85), rgba(24, 25, 47, 0.76) 99.58%);
  --neu-shadow-dark: rgba(8, 8, 13, 0.85);
  --neu-shadow-light: rgba(29, 30, 42, 0.45);
  --accent-color: #6c63ff;
  --accent-gradient: linear-gradient(135deg, #6c63ff 0%, #b066ff 100%);
  --accent-glow: rgba(108, 99, 255, 0.3);
  --mobile-nav-height: 60px;
  --mobile-nav-icon-size: 1rem;
  --mobile-nav-text-size: 0.6rem;
  --mobile-nav-item-padding: 0.2rem 0.1rem;
  --mobile-nav-play-button-size: 56px;
  --mobile-nav-play-button-offset: -16px;
}

.get-jmkoins-button {
  color: #111827 !important;
  background-color: #f5b400 !important;
  background-image: linear-gradient(135deg, #fde047 0%, #f5b400 48%, #ea8a04 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -10px 24px rgba(146, 64, 14, 0.22), 0 0 16px rgba(245, 180, 0, 0.28) !important;
  transform: translate3d(0, 0, 0) !important;
  backface-visibility: hidden;
  position: relative;
  overflow: hidden;
  transition: filter 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.28s ease-out !important;
}

.get-jmkoins-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.36) 42%, transparent 72%), radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.28), transparent 42%);
  transform: translate3d(-24%, 0, 0);
  transition: opacity 0.32s ease-out, transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.get-jmkoins-button>div {
  position: relative;
  z-index: 2;
}

.get-jmkoins-button:hover {
  background-color: #facc15 !important;
  background-image: linear-gradient(135deg, #fff176 0%, #facc15 44%, #f59e0b 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -8px 22px rgba(146, 64, 14, 0.18), 0 0 20px rgba(250, 204, 21, 0.42), 0 8px 24px rgba(0, 0, 0, 0.24) !important;
  transform: translate3d(0, 0, 0) !important;
  filter: none;
}

.get-jmkoins-button:hover::before {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.get-jmkoins-button:active {
  transform: translate3d(0, 1px, 0) !important;
}

.get-jmkoins-button--compact {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), inset 0 -8px 18px rgba(146, 64, 14, 0.18), 0 0 12px rgba(245, 180, 0, 0.22) !important;
}

.get-jmkoins-button--compact:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), inset 0 -7px 16px rgba(146, 64, 14, 0.14), 0 0 16px rgba(250, 204, 21, 0.34), 0 5px 16px rgba(0, 0, 0, 0.18) !important;
}

body {
  background: var(--primary-gradient);
  color: #fff;
  font-family: 'Kanit', sans-serif;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

footer {
  position: relative;
  z-index: 1050;
}

/* [V8.0] Libération du scroll HTML pour éviter les blocages Chrome Mobile */
html.modal-open {
  overflow: visible;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1) 0%, rgba(176, 102, 255, 0.1) 100%);
  opacity: 0.15;
  z-index: -10;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(176, 102, 255, 0.15) 0%, transparent 40%);
  z-index: -11;
  pointer-events: none;
}

.neu-sidebar {
  background: var(--sidebar-bg);
  box-shadow: 20px 0 60px var(--neu-shadow-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.neu-box {
  background: var(--primary-gradient);
  box-shadow: 20px 20px 60px var(--neu-shadow-dark), -20px -20px 60px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.neu-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: neuGlow 8s ease-in-out infinite;
}

.neu-box:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.neu-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.neu-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(108, 99, 255, 0.2);
}

.neu-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.neu-box-inset {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.neu-box-inset:focus-within,
.neu-box-inset:focus {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 10px rgba(108, 99, 255, 0.15);
  outline: none;
}

.neu-avatar {
  box-shadow: 6px 6px 12px var(--neu-shadow-dark), -6px -6px 12px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.neu-logo {
  background: var(--primary-gradient);
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gradient-text {
  display: inline-block;
  background: var(--accent-gradient);
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;

  /* Fallback for browsers that don't support background-clip: text */
  @supports not (background-clip: text) {
    color: var(--accent-color) !important;
  }
}

.neu-box-flat {
  background-color: rgba(26, 27, 46, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 0.375rem;
  box-shadow: 3px 3px 6px rgba(10, 10, 14, 0.6), -3px -3px 6px rgba(29, 30, 42, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.neu-box-flat:hover {
  background-color: rgba(26, 27, 46, 0.9);
  box-shadow: 4px 4px 8px rgba(10, 10, 14, 0.7), -4px -4px 8px rgba(29, 30, 42, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

@media (min-width: 1280px) {
  #main-content {
    padding: 25px 6%;
  }
}

.menu-button {
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.menu-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2) 0%, rgba(176, 102, 255, 0.2) 100%);
  border-radius: inherit;
  transform: scale(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: -1;
}

.menu-button:hover {
  transform: translateY(-2px) scale(1.05) skewX(-5deg);
  box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%);
}

.menu-button:hover::before {
  transform: scale(1);
  opacity: 1;
}

.menu-button--donate {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%);
}

.menu-button.active {
  font-weight: bold;
}

.progress {
  overflow: hidden;
}

.hover-row:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 2px 2px 4px var(--neu-shadow-dark), -2px -2px 4px var(--neu-shadow-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.menu-item a:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.neu-base {
  background-color: rgba(26, 27, 46, 0.85);
  box-shadow: 8px 8px 24px var(--neu-shadow-dark), -8px -8px 24px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.neu-base:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.glass-base {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.glass-base:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
}

.neu-box-hover:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

@media (min-width: 1280px) {
  body {
    padding-top: 67px;
  }
}

body.page-tutorial {
  padding-top: 0;
}

header.hidden.xl\:block {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background-color: rgba(39, 41, 71, 0.91);
  padding: 0.6rem;
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 5px 0 rgba(0, 0, 0, 0.06), 0 1px 10px 0 rgba(0, 0, 0, 0.05);
}

.header-main-container {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-discovery-status {
  display: none;
}

@media (min-width: 1280px) {
  .header-discovery-status {
    position: fixed;
    top: 78px;
    right: 1.5rem;
    z-index: 49;
    min-height: 28px;
    padding: 4px 9px 4px 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(125, 211, 252, 0.62);
    border-radius: 5px;
    background: linear-gradient(145deg, rgba(22, 34, 68, 0.96), rgba(17, 18, 43, 0.97));
    color: #f8fbff;
    box-shadow: 0 0 13px rgba(56, 189, 248, 0.2), 0 0 24px rgba(79, 70, 229, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
  }
}

.header-discovery-status:hover {
  transform: translate3d(0, -1px, 0);
  border-color: rgba(186, 230, 253, 0.9);
  box-shadow: 0 0 17px rgba(56, 189, 248, 0.32), 0 0 27px rgba(79, 70, 229, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.header-discovery-status__signal {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 5px rgba(125, 211, 252, 0.95), 0 0 10px rgba(99, 102, 241, 0.52);
}

@media (min-width: 1921px) {
  .header-discovery-status {
    top: 106px;
    right: 2rem;
  }
}

.header-nav-left {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1.5rem;
}

.header-nav-left .header-logo-section {
  margin-right: auto;
}

.header-nav-right {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 1.5rem;
}

.header-user-actions-section {
  margin-left: auto;
}

#header-desktop-play-action-button.header-play-action-button-global {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  top: 11px;
  z-index: 100;
  width: 90px;
  height: 90px;
  --header-play-theme-H: 260;
  --header-play-theme-S: 80%;
  --header-play-theme-L: 62%;
  --header-play-theme-color: hsl(var(--header-play-theme-H), var(--header-play-theme-S), var(--header-play-theme-L));
  background-color: hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) - 8%), 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border-radius: 20px 20px 40px 40px;
  transform-style: preserve-3d;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 2px hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) + 12%), 0.6);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease-out, box-shadow 0.25s ease-out;
  display: flex;
  padding: 0;
}

#header-desktop-play-action-button.header-play-action-button-global::before,
#header-desktop-play-action-button.header-play-action-button-global::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--header-play-theme-color);
  border-radius: inherit;
  transition: transform .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
  pointer-events: none;
}

#header-desktop-play-action-button.header-play-action-button-global::before {
  transform: translate3d(0px, -3.5px, -9px);
  opacity: .40;
  border-color: hsla(var(--header-play-theme-H), calc(var(--header-play-theme-S) + 8%), calc(var(--header-play-theme-L) + 18%), 0.8);
}

#header-desktop-play-action-button.header-play-action-button-global::after {
  transform: translate3d(0px, 1.5px, -5px);
  opacity: .65;
  border-color: hsla(var(--header-play-theme-H), calc(var(--header-play-theme-S) - 8%), calc(var(--header-play-theme-L) - 8%), 0.75);
}

#header-desktop-play-action-button.header-play-action-button-global:hover:not(:disabled) {
  background-color: hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) - 5%), 0.65);
  transform: translateX(-50%) scale(1.05) translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 2px hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) + 18%), 0.7), 0 0 35px hsla(var(--header-play-theme-H), var(--header-play-theme-S), var(--header-play-theme-L), 0.55);
}

@media(prefers-reduced-motion: no-preference) {
  #header-desktop-play-action-button.header-play-action-button-global:hover:not(:disabled) {
    transition-timing-function: cubic-bezier(.4, 1.6, .6, 1.1);
    transition-duration: .35s;
  }

  #header-desktop-play-action-button.header-play-action-button-global:hover:not(:disabled)::after {
    transition: transform .4s cubic-bezier(.4, 1.6, .6, 1.1);
  }

  #header-desktop-play-action-button.header-play-action-button-global:hover:not(:disabled)::before {
    transition: transform .3s cubic-bezier(.4, 1.6, .6, 1.1);
  }
}

#header-desktop-play-action-button.header-play-action-button-global:hover:not(:disabled)::before {
  transform: translate3d(0px, -5px, -12px) scale(1.02);
  opacity: 0.5;
}

#header-desktop-play-action-button.header-play-action-button-global:hover:not(:disabled)::after {
  transform: translate3d(0px, 2.5px, -7px) scale(1.02);
  opacity: 0.8;
}

#header-desktop-play-action-button.header-play-action-button-global:active:not(:disabled) {
  transform: translateX(-50%) scale(0.98) translateY(1px);
  background-color: hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) - 18%), 0.55);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5), 0 0 15px hsla(var(--header-play-theme-H), var(--header-play-theme-S), var(--header-play-theme-L), 0.35);
}

#header-desktop-play-action-button.header-play-action-button-global.is-active {
  animation: header-play-button-intro-pulse 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

#header-desktop-play-action-button.header-play-action-button-global.is-active .play-button-custom-content-header {
  animation: header-play-button-content-pop 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

@keyframes header-play-button-intro-pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), inset 0 0 0 2px hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) + 12%), 0.6);
  }

  35% {
    transform: translateX(-50%) translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 2px hsla(var(--header-play-theme-H), var(--header-play-theme-S), calc(var(--header-play-theme-L) + 18%), 0.75), 0 0 35px hsla(var(--header-play-theme-H), var(--header-play-theme-S), var(--header-play-theme-L), 0.55);
  }

  60% {
    transform: translateX(-50%) translateY(-1px) scale(1.03);
  }
}

@keyframes header-play-button-content-pop {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40% {
    transform: translate3d(0, -2px, 0);
  }
}

#header-desktop-play-action-button.header-play-action-button-global .play-button-custom-content-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 100%;
  height: 100%;
  padding-top: 12px;
  padding-bottom: 6px;
}

#header-desktop-play-action-button.header-play-action-button-global .play-button-text-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

#header-desktop-play-action-button.header-play-action-button-global .play-button-icon-header {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  width: 48px;
  height: 48px;
  object-fit: contain;
}

#header-desktop-play-action-button.header-play-action-button-global .game-pad-icon-header {
  font-size: 2.4rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  width: 56px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
  transform-origin: center center;
}

#header-desktop-play-action-button.header-play-action-button-global:hover .game-pad-icon-header {
  transform: scale(1.15) rotate(7deg);
}

#header-desktop-play-action-button.header-play-action-button-global.on-game-page .play-button-icon-header.fas.fa-gamepad {
  display: none;
}

#header-desktop-play-action-button.header-play-action-button-global:not(.on-game-page) .play-button-icon-header[alt="Icône Jouer"] {
  display: none;
}

.w-full.h-\[5px\].bg-accent-color.relative.z-\[40\] {
  position: relative;
}

.logo-o-replacement-header {
  display: inline-block;
  height: 0.7em;
  width: auto;
  vertical-align: middle;
  margin-top: 5px;
  margin-left: -2px;
}

.logo-o-replacement-mobile {
  display: inline-block;
  height: 0.6em;
  width: auto;
  vertical-align: middle;
  margin-top: 1px;
}

@media (max-width: 1279.98px) {
  .mobile-bottom-nav {
    display: flex !important;
  }
}

@media (min-width: 1280px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 1279.98px) {

  .mobile-menu-drawer,
  .mobile-menu-overlay {
    display: block !important;
  }
}

@media (min-width: 1280px) {

  .mobile-menu-drawer,
  .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 1548px) {
  header.hidden.xl\:block #nav-link-ressourcerie .menu-button-text {
    display: none;
  }
}

@media (min-width: 1280px) and (max-width: 1548px) {
  header.hidden.xl\:block .menu-button i {
    font-size: 1rem;
    padding: 0 !important;
    margin: 0 0.2rem !important;
    transition: transform 0.2s ease-out;
  }
}

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

body.mobile-menu-open {
  overflow: auto !important;
}

.widget-submit-clip-form select {
  border-radius: 20px;
  padding-left: 5%;
}

.widget-submit-clip-form input {
  border-radius: 20px;
}

.password-type-choice-btn {
  color: #9ca3af;
  background-color: transparent;
  border: 1px solid transparent;
}

.password-type-choice-btn.active-choice {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.password-type-choice-btn:not(.active-choice):hover {
  background-color: rgba(108, 99, 255, 0.10);
  color: #d1d5db;
}

.widget-register-form .form-group>div[role="radiogroup"] {
  background-color: rgba(20, 20, 30, 0.3);
}

.password-security-group {
  border-color: rgba(75, 85, 99, 0.4);
  transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.password-security-group:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1px var(--accent-color), 0 2px 8px rgba(108, 99, 255, 0.1);
}

.password-type-choice-btn {
  color: #9ca3af;
  background-color: transparent;
  border: none;
}

.password-type-choice-btn.active-choice {
  background-color: var(--accent-color);
  color: white;
  font-weight: 500;
}

.password-type-choice-btn:not(.active-choice):hover {
  background-color: rgba(108, 99, 255, 0.10);
  color: #d1d5db;
}

.widget-register-form .form-group>div[role="radiogroup"] .password-type-choice-btn:first-of-type {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.widget-register-form .form-group>div[role="radiogroup"] .password-type-choice-btn:last-of-type {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

.password-security-group>.form-group:first-child>label {
  font-weight: 500;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.tv-background-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.tv-background-overlay .tv-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(50px);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.tv-background-overlay .tv-blob-1 {
  width: 300px;
  height: 300px;
  background: rgba(98, 0, 238, 0.3);
  filter: blur(60px);
  animation-name: tv-moveBlob1-vw, tv-blob-fade-in;
  animation-duration: 25s, 0.8s;
  animation-timing-function: linear, ease-out;
  animation-delay: 0s, 0s;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: forwards, forwards;
}

.tv-background-overlay .tv-blob-2 {
  width: 250px;
  height: 250px;
  background: rgba(0, 204, 255, 0.3);
  filter: blur(50px);
  animation-name: tv-moveBlob2-vw, tv-blob-fade-in;
  animation-duration: 30s, 0.8s;
  animation-timing-function: linear, ease-out;
  animation-delay: 1s, 1s;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: forwards, forwards;
}

.tv-background-overlay .tv-blob-3 {
  width: 280px;
  height: 280px;
  background: rgba(255, 105, 180, 0.25);
  filter: blur(70px);
  animation-name: tv-moveBlob3-vw, tv-blob-fade-in;
  animation-duration: 20s, 0.8s;
  animation-timing-function: linear, ease-out;
  animation-delay: 0.5s, 0.5s;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: forwards, forwards;
}

@keyframes tv-blob-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tv-moveBlob1-vw {
  0% {
    transform: translate(calc(-50% - 40vw), calc(-50% - 40vh)) scale(.8)
  }

  25% {
    transform: translate(calc(-50% + 0vw), calc(-50% + 30vh)) scale(1.2)
  }

  50% {
    transform: translate(calc(-50% + 50vw), calc(-50% + 0vh)) scale(.9)
  }

  75% {
    transform: translate(calc(-50% + 0vw), calc(-50% - 50vh)) scale(1.1)
  }

  100% {
    transform: translate(calc(-50% - 40vw), calc(-50% - 40vh)) scale(.8)
  }
}

@keyframes tv-moveBlob2-vw {
  0% {
    transform: translate(calc(-50% + 30vw), calc(-50% + 10vh)) scale(1)
  }

  25% {
    transform: translate(calc(-50% - 10vw), calc(-50% - 40vh)) scale(.8)
  }

  50% {
    transform: translate(calc(-50% - 60vw), calc(-50% + 40vh)) scale(1.1)
  }

  75% {
    transform: translate(calc(-50% - 30vw), calc(-50% - 20vh)) scale(.9)
  }

  100% {
    transform: translate(calc(-50% + 30vw), calc(-50% + 10vh)) scale(1)
  }
}

@keyframes tv-moveBlob3-vw {
  0% {
    transform: translate(calc(-50% + 0vw), calc(-50% - 40vh)) scale(.9)
  }

  33% {
    transform: translate(calc(-50% - 30vw), calc(-50% + 40vh)) scale(1.2)
  }

  66% {
    transform: translate(calc(-50% + 30vw), calc(-50% + 0vh)) scale(.8)
  }

  100% {
    transform: translate(calc(-50% + 0vw), calc(-50% - 40vh)) scale(.9)
  }
}

.tv-background-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.current-game-terminal-style {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 204, 255, 0.1), 0 0 25px rgba(0, 180, 225, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.current-game-terminal-style:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 204, 255, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 204, 255, 0.15), 0 0 35px rgba(0, 180, 225, 0.3);
}

.bg-scanline {
  background: repeating-linear-gradient(0deg, rgba(100, 220, 255, 0.05), rgba(100, 220, 255, 0.05) 1px, transparent 1px, transparent 3px);
}

.text-shadow-sm {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@keyframes separatorWipeInTerminal {
  from {
    transform: scaleX(0);
    opacity: 0.5;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

:root {
  --game-select-btn-theme: hsl(210, 80%, 60%);
  --game-select-btn-theme-bg: hsla(210, 75%, 55%, 0.25);
  --game-select-btn-theme-bg-hover: hsla(210, 80%, 60%, 0.4);
  --game-select-btn-theme-text: white;
  --game-select-btn-theme-shadow: hsla(210, 80%, 20%, 0.35);
  --game-select-btn-before-offset-x: 6px;
  --game-select-btn-before-offset-y: -6px;
  --game-select-btn-depth-multiplier: 1.3;
}

.play-icon-click-effect {
  animation-name: single-press-feedback-delayed;
  animation-duration: 1.6s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
  transform-origin: center center;
  display: inline-block;
  opacity: 0;
  width: 53px;
  margin-top: -15px;
  padding-top: 8px;
}

@keyframes single-press-feedback-delayed {
  0% {
    opacity: 0;
    transform: scale(1) translateY(0);
    filter: brightness(100%);
  }

  62.5% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(100%);
  }

  71.875% {
    transform: scale(0.92) translateY(1.5px);
    filter: brightness(80%);
  }

  81.25% {
    transform: scale(1) translateY(0);
    filter: brightness(100%);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(100%);
  }
}

.header-play-action-button-global:hover .play-icon-click-effect,
.mobile-bottom-nav .play-button.on-game-page:hover .play-icon-click-effect {
  animation-play-state: paused;
}

.comment-highlight {
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out;
  background-color: rgba(108, 99, 255, 0.2);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.4);
  border-radius: 4px;
}

@keyframes pulse-quick {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
}

.animate-pulse-quick {
  animation: pulse-quick 0.5s ease-out 1;
}

.comment-content-is-kaomoji {
  font-size: 1.5em;
  line-height: 1.2;
  font-family: sans-serif;
  text-align: center;
  word-break: break-all;
}

.grid-item-selectable {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.grid-item-selectable .selection-overlay {
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.grid-item-selectable .selection-checkmark {
  transition: opacity 0.2s ease;
}

.grid-item-selectable:not(.selected):hover .selection-overlay {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.4);
  border-color: rgba(150, 150, 150, 0.5);
}

.grid-item-selectable:not(.selected):hover .selection-checkmark {
  opacity: 0.5;
}

.grid-item-selectable:not(.selected):hover img {
  opacity: 0.8;
}

.grid-item-selectable.selected {
  border-color: var(--accent-color) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 12px 2px var(--accent-glow);
}

.grid-item-selectable.selected .selection-overlay {
  opacity: 1 !important;
  background-color: rgba(108, 99, 255, 0.3) !important;
  border-color: var(--accent-color) !important;
}

.grid-item-selectable.selected .selection-checkmark {
  opacity: 1 !important;
}

.grid-item-selectable.selected img {
  opacity: 0.6;
}

.grid-item-selectable.selected:hover {
  border-color: var(--accent-color) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 12px 2px var(--accent-glow);
}

.grid-item-selectable.selected:hover .selection-overlay {
  background-color: rgba(108, 99, 255, 0.35) !important;
}

.grid-item-selectable.selected:hover img {
  opacity: 0.55;
}

/* --- HUD ANALYSIS DECK (V2.0 - TITANIUM GLASS) --- */
@media (min-width: 1024px) {
  #hud-analysis-deck {
    position: fixed;
    bottom: 60px;
    right: 40px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    width: 510px;
    min-height: 250px;
    font-family: 'JetBrains Mono', monospace;
    overflow: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.4s;
    transform: scale(var(--hud-scale, 1)) translate3d(40px, 0, 0);
    transform-origin: bottom right;
    will-change: transform, opacity;
  }
}

@media (min-width: 1024px) {
  #hud-analysis-deck::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/jeguesstonrank_deck-hud.png') no-repeat;
    background-size: 100% 100%;
    filter: brightness(1.2) contrast(1.1);
    z-index: -1;
    border-radius: 12px;
  }
}

@media (min-width: 1024px) {
  #hud-analysis-deck.is-active {
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
    transform: scale(var(--hud-scale, 1)) translate3d(0, 0, 0);
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
  }
}

@media (min-width: 1024px) {
  #hud-analysis-deck.is-compare-mode::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 35px;
    width: 110px;
    height: 110px;
    background: url('../images/jeguesstonrank_vs.png') no-repeat center;
    background-size: contain;
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5));
  }
}

@media (min-width: 1024px) {
  .hud-deck-label {
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid rgba(108, 99, 255, 0.4);
    padding: 3px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-left: 6px;
    font-family: 'Kanit', sans-serif;
  }
}

@media (min-width: 1024px) {
  .hud-deck-inner {
    padding: 30px 35px 30px 50px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 1024px) {
  .hud-deck-header {
    font-size: 10px;
    font-weight: 600;
    color: #00f0ff;
    text-transform: none;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 0.5px solid rgba(0, 240, 255, 0.5);
    padding-bottom: 6px;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
  }
}

@media (min-width: 1024px) {
  .hud-deck-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 5px rgba(255, 255, 255, 0.4);
    margin-top: 2px;
    display: block;
    text-transform: uppercase;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 1px;
  }
}

@media (min-width: 1024px) {
  .hud-deck-content {
    font-size: 16px;
    font-weight: 500;
    color: #a7eaef;
    line-height: 1.35;
    margin-left: 25px;
    margin-top: 8px;
    font-family: 'Kanit', sans-serif;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
  }
}

@media (min-width: 1024px) {
  .hud-deck-content p {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .hud-deck-content p+p {
    margin-top: 0.55rem;
  }
}

@media (min-width: 1024px) {
  .hud-deck-body {
    display: flex;
    flex-direction: column;
    position: relative;
  }
}

.jmkoins-trigger-button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid transparent;
}

.jmkoins-trigger-button .widget-jmkoins-display {
  transition: color 0.2s ease-out;
  pointer-events: none;
}

.jmkoins-trigger-button .widget-jmkoins-display i,
.jmkoins-trigger-button .widget-jmkoins-display span {
  transition: color 0.2s ease-out;
}

.jmkoins-trigger-button:hover {
  transform: translateY(-2px) scale(1.03) skewX(-3deg);
  background: linear-gradient(to bottom right, #facc15, #fb923c) !important;
  color: #1f2937 !important;
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.jmkoins-trigger-button:hover .widget-jmkoins-display,
.jmkoins-trigger-button:hover .widget-jmkoins-display i,
.jmkoins-trigger-button:hover .widget-jmkoins-display span {
  color: #1f2937 !important;
}

.jmkoins-trigger-button:hover .widget-jmkoins-display i.fa-coins {
  color: #9A3412 !important;
}

.control-beta-toolkit-container {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999999998;
  background-color: transparent;
  transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
  width: 300px;
  height: auto;
  pointer-events: none;
}

.control-beta-toolkit-container>* {
  pointer-events: auto;
}

.control-beta-toolkit-container.is-expanded .beta-toolkit-content-wrapper {
  display: block;
  opacity: 1;
  transition: opacity 0.2s 0.1s ease-out;
}

.control-beta-toolkit-container.is-expanded .beta-toolkit-toggle-bar {
  display: none;
}

.control-beta-toolkit-container:not(.is-expanded) {
  width: 35px;
  height: 60px;
  bottom: 66px;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 767px) {

  .neu-box::before,
  .neu-box::after {
    animation: none !important;
  }
}

.control-beta-toolkit-container:not(.is-expanded) .beta-toolkit-content-wrapper {
  display: none;
  opacity: 0;
}

.control-beta-toolkit-container:not(.is-expanded) .beta-toolkit-toggle-bar {
  display: flex;
}

.beta-toolkit-toggle-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(160deg, var(--primary-light) 0%, color-mix(in srgb, var(--primary-light) 80%, var(--accent-color) 20%) 100%);
  color: #cbd5e1;
  border-radius: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset -2px 0px 5px rgba(0, 0, 0, 0.2), 2px 0px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.15s ease-out;
  padding: 8px 0;
  overflow: hidden;
  z-index: 10010;
  /* Au-dessus du panel de feedback */
}

.beta-toolkit-toggle-bar:hover {
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary-light) 90%, var(--accent-color) 10%) 0%, color-mix(in srgb, var(--primary-light) 70%, var(--accent-color) 30%) 100%);
  transform: translateX(1px);
}

.beta-toolkit-toggle-bar::before {
  content: "\f56b";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 0px;
}

#beta-toolkit-collapse-trigger.debug-info {
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 9980;
  /* Sous le panel de feedback (9995) */
  bottom: 68px;
}

body[data-is-admin="false"] #beta-toolkit-collapse-trigger.debug-info {
  display: none;
}

body[data-is-admin="false"] .beta-toolkit-trigger-button {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 1024px) {
  body.page-home .home-hero-scene-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.control-beta-toolkit-container.is-expanded .beta-toolkit-content-wrapper>div[class*="fixed"] {
  z-index: 10000;
}

.control-beta-toolkit-container.is-expanded #beta-toolkit-debug-info-trigger {
  z-index: 10001;
}

.admin-cog-button {
  background: linear-gradient(145deg, var(--accent-color), #8a5cf6);
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 8px rgba(108, 99, 255, 0.4);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.admin-cog-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), 0 0 12px rgba(108, 99, 255, 0.6);
}

.admin-cog-button i {
  transition: transform 0.3s ease-out;
}

.admin-cog-button:hover i {
  transform: rotate(-45deg);
}

.admin-cog-button--stacked {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.22rem);
  transform: translateY(-50%);
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  z-index: 26;
  box-sizing: border-box;
  transform-origin: center center;
}

.admin-cog-button--stacked:hover {
  transform: translateY(-50%) scale(1.05) rotate(7deg);
  background: linear-gradient(145deg, #9a76ff, #7550ff);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), 0 0 14px rgba(108, 99, 255, 0.55);
}

.admin-cog-button--right {
  top: 50%;
  left: calc(100% + 0.22rem);
}

.admin-cog-button__icon {
  font-size: 1.12rem;
  line-height: 1;
}

.header-right-cta-group {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}

.header-right-cta-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  z-index: 25;
}

.header-right-group> :not([hidden])~ :not([hidden]) {
  margin-left: 0.18rem !important;
}

header.hidden.xl\:block .header-right-group>.header-right-cta-group {
  margin-left: 0.06rem !important;
}

.btn-forge-quicklink {
  text-decoration: none !important;
  display: block;
  height: 79px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2700;
}

.forge-link-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible !important;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.forge-link-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
}

.forge-link-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  background-position: -100% 0;
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.forge-link-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 1;
  animation: forge-icon-pulse 10s infinite;
  animation-delay: 15s;
}

@keyframes forge-icon-pulse {

  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5)) brightness(1);
  }

  10%,
  30% {
    filter: drop-shadow(0 0 25px rgba(108, 99, 255, 0.9)) brightness(1.5);
  }
}

.forge-link-text-group {
  max-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
  font-family: "Kanit", sans-serif;
}

.forge-link-text-large {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.forge-link-text-small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-top: -2px;
}

.btn-forge-quicklink:hover .forge-link-content {
  background: rgba(15, 17, 25, 0.6);
  border: 1px solid rgba(115, 104, 254, 0.47);
  padding: 5px 25px 5px 10px;
  box-shadow: 0 0 20px rgba(115, 104, 254, 0.2);
}

.btn-forge-quicklink:hover .forge-link-content::after {
  opacity: 1;
}

.btn-forge-quicklink:hover .forge-link-content::before {
  opacity: 1;
  animation: forge-shimmer-sweep 1.5s infinite linear;
}

@keyframes forge-shimmer-sweep {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.btn-forge-quicklink:hover .forge-link-icon {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(108, 99, 255, 0.6));
  animation: none !important;
}

.btn-forge-quicklink:hover .forge-link-text-group {
  max-width: 300px;
  opacity: 1;
  padding-left: 15px;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header {
  width: 44px !important;
  min-width: 44px !important;
  flex: 0 0 44px !important;
  height: 44px !important;
  position: relative;
  z-index: 30;
  overflow: visible !important;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header .forge-link-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  min-width: 44px;
  height: 44px;
  padding: 2px 3px 2px 3px;
  justify-content: center;
  overflow: visible !important;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header .forge-link-icon {
  width: 38px;
  height: 38px;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header .forge-link-text-large {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header .forge-link-text-small {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header:hover {
  z-index: 40;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header:hover .forge-link-content {
  padding: 5px 12px;
  background: rgba(15, 17, 25, 0.82);
  border: 1px solid rgba(115, 104, 254, 0.47);
  box-shadow: 0 0 20px rgba(115, 104, 254, 0.2);
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header:hover .forge-link-content::after {
  opacity: 1;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header:hover .forge-link-content::before {
  opacity: 1;
  animation: forge-shimmer-sweep 1.5s infinite linear;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header:hover .forge-link-icon {
  opacity: 1;
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(108, 99, 255, 0.6));
  animation: none !important;
}

.header-right-group .btn-forge-quicklink.btn-forge-quicklink--header:hover .forge-link-text-group {
  padding-left: 8px;
}

.logout-button-repositioned {
  position: absolute;
  top: 50%;
  left: calc(100% + 0.3rem);
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  transition: transform 0.2s ease-out;
}

.logout-button-repositioned:hover {
  transform: translateY(-50%) scale(1.1);
}

.shadow-inner-neu-heavy {
  box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.5), inset -6px -6px 12px rgba(50, 50, 70, 0.25);
}

.text-shadow-sm {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.bg-gradient-radial {
  background-image: radial-gradient(circle, var(--tw-gradient-stops));
}

@keyframes pulseDashboard {

  0%,
  100% {
    opacity: 1;
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.5), inset -6px -6px 12px rgba(50, 50, 70, 0.25), 0 0 15px rgba(var(--color-accent-rgb, 108, 99, 255), 0.2);
  }

  50% {
    opacity: 0.9;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4), inset -4px -4px 8px rgba(50, 50, 70, 0.2), 0 0 25px rgba(var(--color-accent-rgb, 108, 99, 255), 0.35);
  }
}

@keyframes slideInFosterRight {
  0% {
    transform: translateX(100%) scaleX(1);
    opacity: 0;
  }

  100% {
    transform: translateX(25%) scaleX(1);
    opacity: 0.15;
  }
}

@media (max-width: 1279.98px) {
  @keyframes slideInFoster {
    0% {
      transform: translateX(-100%) scaleX(-1);
      opacity: 0;
    }

    100% {
      transform: translateX(-35%) scaleX(-1);
      opacity: 0.2;
    }
  }
}

@media (max-width: 767px) {
  @keyframes slideInFoster {
    0% {
      transform: translateX(-100%) scaleX(-1);
      opacity: 0;
    }

    100% {
      transform: translateX(-30%) scaleX(-1);
      opacity: 0.2;
    }
  }
}

@media (max-width: 767px) {
  .mobile-titulus-slot-top {
    width: 100%;
    height: auto;
    min-height: 50px;
    max-height: 90px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 12, 25, 0.3);
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {

  .titulus-placeholder[data-placement="titulus_lateralis_left"] .titulus-main-container,
  .layout-sidebar-left .titulus-main-container {
    flex-direction: row-reverse;
  }

  .titulus-placeholder[data-placement="titulus_lateralis_left"] .titulus-label,
  .layout-sidebar-left .titulus-label {
    border-radius: 8px 0 0 8px;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .titulus-placeholder[data-placement="titulus_lateralis_left"] .titulus-content-slot,
  .layout-sidebar-left .titulus-content-slot {
    border-radius: 8px 0 0 8px;
  }
}

.mobile-titulus-slot-top,
.mobile-titulus-slot-bottom {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 728px;
}

@media (min-width: 640px) {}

.final-score-card-wrapper {
  max-width: 490px;
  margin: 1rem auto 0 auto;
  background: linear-gradient(145deg, rgba(30, 32, 50, 0.8), rgba(20, 22, 38, 0.7));
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(108, 99, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.score-card-main-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
}

.session-gains-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.session-gains-display .gain-item {
  font-size: 1.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.session-gains-display .gain-item i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  opacity: 0.9;
}

.session-gains-display .myxp-gain {
  color: #c084fc;
}

.session-gains-display .jmkoins-gain {
  color: #fb923c;
}

.score-card-footer {
  border-top: 1px solid rgba(100, 116, 139, 0.3);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.score-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.score-detail-item .detail-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-detail-item .detail-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.notification-reward-highlight {
  font-size: 1.1em;
  font-weight: 700;
  color: #f97316;
  text-shadow: 0 0 5px rgba(251, 146, 60, 0.5);
}

.jgtr-buy-button {
  background-image: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 8px rgba(123, 114, 255, 0.6), 0 0 12px rgba(158, 127, 255, 0.4);
  border: 1px solid rgba(178, 172, 255, 0.5);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-image 0.2s ease-out, width 0.3s ease-in-out;
}

.jgtr-buy-button>i {
  color: white;
  transition: transform 0.3s ease-in-out;
}

.jgtr-buy-button:hover:not(:disabled) {
  background-image: linear-gradient(145deg, rgb(128, 119, 255), rgb(158, 112, 255));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(143, 134, 255, 0.8), 0 0 20px rgba(178, 147, 255, 0.6);
}

.jgtr-buy-button:hover:not(:disabled)>i {
  transform: scale(1.1) rotate(-5deg);
}

.jgtr-buy-button:active:not(:disabled) {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 6px rgba(123, 114, 255, 0.5);
}

.jgtr-comment-button {
  background-image: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 8px rgba(123, 114, 255, 0.6), 0 0 12px rgba(158, 127, 255, 0.4);
  border: 1px solid rgba(178, 172, 255, 0.5);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-image 0.2s ease-out, width 0.3s ease-in-out;
}

.jgtr-comment-button>i {
  color: white;
  transition: transform 0.3s ease-in-out;
}

.jgtr-comment-button:hover:not(:disabled) {
  background-image: linear-gradient(145deg, rgb(128, 119, 255), rgb(158, 112, 255));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(143, 134, 255, 0.8), 0 0 20px rgba(178, 147, 255, 0.6);
}

.jgtr-comment-button:hover:not(:disabled)>i {
  transform: scale(1.1) rotate(-5deg);
}

.jgtr-comment-button:active:not(:disabled) {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 6px rgba(123, 114, 255, 0.5);
}

.side-menu-button.jgtr-comment-button,
.side-menu-button-in-popover-icon-only.jgtr-comment-button {
  background-image: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%) !important;
  background-color: transparent !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 8px rgba(123, 114, 255, 0.6), 0 0 12px rgba(158, 127, 255, 0.4) !important;
  border: 1px solid rgba(178, 172, 255, 0.5) !important;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-image 0.2s ease-out, width 0.3s ease-in-out, height 0.3s ease-in-out, border-radius 0.3s ease-in-out;
}

.side-menu-button.jgtr-comment-button>i,
.side-menu-button-in-popover-icon-only.jgtr-comment-button>i {
  color: white !important;
  transition: transform 0.3s ease-in-out;
}

.side-menu-button.jgtr-comment-button:hover:not(:disabled),
.side-menu-button-in-popover-icon-only.jgtr-comment-button:hover:not(:disabled) {
  background-image: linear-gradient(135deg, rgba(108, 99, 255, 0.4) 0%, rgba(176, 102, 255, 0.4) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 12px rgba(143, 134, 255, 0.8), 0 0 20px rgba(178, 147, 255, 0.6) !important;
}

.side-menu-button.jgtr-comment-button:hover:not(:disabled)>i,
.side-menu-button-in-popover-icon-only.jgtr-comment-button:hover:not(:disabled)>i {
  transform: scale(1.1) rotate(-5deg);
}

.side-menu-button.jgtr-comment-button:active:not(:disabled),
.side-menu-button-in-popover-icon-only.jgtr-comment-button:active:not(:disabled) {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 6px rgba(123, 114, 255, 0.5) !important;
}

.purchase-options-constrained-width {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.password-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-wrapper .neu-box-inset {
  padding-right: 2.5rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  color: #9ca3af;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #e5e7eb;
  background-color: rgba(255, 255, 255, 0.1);
}

.password-toggle-btn i {
  font-size: 0.875rem;
  line-height: 1;
}

.header-play-button-container,
.mobile-play-button-container {
  position: relative;
  z-index: 1070;
}

#header-desktop-play-action-button.header-play-action-button-global::before,
#header-desktop-play-action-button.header-play-action-button-global::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2.5px solid var(--header-play-theme-color);
  border-radius: inherit;
  transition: transform .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
  pointer-events: none;
}

#header-desktop-play-action-button.header-play-action-button-global::before {
  transform: translate3d(0px, -3.5px, -9px);
  opacity: .40;
  border-color: hsla(var(--header-play-theme-H), calc(var(--header-play-theme-S) + 8%), calc(var(--header-play-theme-L) + 18%), 0.8);
}

#header-desktop-play-action-button.header-play-action-button-global::after {
  transform: translate3d(0px, 1.5px, -5px);
  opacity: .65;
  border-color: hsla(var(--header-play-theme-H), calc(var(--header-play-theme-S) - 8%), calc(var(--header-play-theme-L) - 8%), 0.75);
}

/* [V8.0] PLAY-SUBMENU:OFF */
.play-submenu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.play-submenu-item {
  position: absolute;
  top: 0;
  left: 50%;
  transform-style: preserve-3d;
  transform-origin: top center;
  transform: translateX(-50%) rotateX(-100deg) rotateZ(3deg) translateZ(-150px) scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
  transition-delay: 0s;
  will-change: transform, opacity;
}

.play-submenu.is-hover-active .play-submenu-item,
.play-submenu.is-locked-open .play-submenu-item {
  transform: translateX(-50%) rotateX(0deg) rotateZ(0deg) translateZ(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.play-submenu.is-hover-active .play-submenu-item:nth-child(1),
.play-submenu.is-locked-open .play-submenu-item:nth-child(1) {
  transition-delay: 0s;
}

.play-submenu.is-hover-active .play-submenu-item:nth-child(2),
.play-submenu.is-locked-open .play-submenu-item:nth-child(2) {
  transition-delay: 0.1s;
}

.play-submenu.is-hover-active .play-submenu-item:nth-child(3),
.play-submenu.is-locked-open .play-submenu-item:nth-child(3) {
  transition-delay: 0.2s;
}

.play-submenu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
  transform: translateZ(0);
  position: relative;
}

.play-submenu-link:hover {
  transform: scale(1.05) translateZ(0);
  filter: brightness(1.1) drop-shadow(0 0 10px hsla(260, 80%, 70%, 0.6));
}

.play-submenu-link.is-disabled {
  cursor: not-allowed;
  pointer-events: all !important;
  filter: brightness(0.7) grayscale(0.7);
}

.play-submenu-link.is-disabled .submenu-text {
  opacity: 0.3
}

.play-submenu-link.is-disabled:hover {
  transform: scale(1.05) translateZ(0);
}

.submenu-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.submenu-shape-path {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.submenu-text {
  fill: white;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.submenu-text tspan.icon-placeholder {
  fill: transparent;
  font-size: 1em;
}

.submenu-icon-img-content {
  /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(176, 102, 255, 0.7)); */
  transform: rotate(4deg);
}

.play-submenu-item:nth-child(3) .submenu-icon-img-content {
  filter: drop-shadow(0 0 5px #FF6347) drop-shadow(0 0 10px #FF4500);
}

.play-submenu-item:nth-child(1) .submenu-text {
  font-size: 1rem;
}

.play-submenu-item:nth-child(2) .submenu-text {
  font-size: 1rem;
}

.play-submenu-item:nth-child(3) .submenu-text {
  font-size: 1rem;
}

.play-submenu-item:nth-child(1) {
  z-index: 3;
}

.play-submenu-item:nth-child(2) {
  z-index: 2;
}

.play-submenu-item:nth-child(3) {
  z-index: 1;
}

.play-submenu-item:nth-child(1) .play-submenu-link {
  width: 360px;
  height: 80px;
  background-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play.png') */
  background-size: 100% 100%;
}

.play-submenu-item:nth-child(2) .play-submenu-link {
  width: 440px;
  height: 135px;
  background-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play2.png') */
  background-size: 100% 100%;
}

.play-submenu-item:nth-child(3) .play-submenu-link {
  width: 500px;
  height: 185px;
  background-image: none !important;
  background: none;
  position: relative;
  overflow: hidden;
}

.play-submenu-item:nth-child(3) .play-submenu-link::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  mask-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play3.png') */
  -webkit-mask-image: none !important;
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  background-color: rgba(176, 102, 255, 0.25);
  z-index: 1;
}

.play-submenu-item:nth-child(3) .play-submenu-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play3.png') */
  background-size: 100% 100%;
  opacity: 0.9;
  z-index: 2;
}

.play-submenu-item:nth-child(3) .play-submenu-link svg {
  position: relative;
  z-index: 3;
}

/* [V8.0] PLAY-SUBMENU-MOBILE:OFF */
.play-submenu-mobile {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.play-submenu-item-mobile {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-style: preserve-3d;
  transform-origin: bottom center;
  transform: translateX(-50%) rotateX(100deg) rotateZ(-3deg) translateZ(-100px) scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
  transition-delay: 0s;
  will-change: transform, opacity;
}

.play-submenu-mobile.is-hover-active .play-submenu-item-mobile,
.play-submenu-mobile.is-locked-open .play-submenu-item-mobile {
  transform: translateX(-50%) rotateX(0deg) rotateZ(0deg) translateZ(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.play-submenu-mobile.is-hover-active .play-submenu-item-mobile:nth-child(3),
.play-submenu-mobile.is-locked-open .play-submenu-item-mobile:nth-child(3) {
  transition-delay: 0s;
}

.play-submenu-mobile.is-hover-active .play-submenu-item-mobile:nth-child(2),
.play-submenu-mobile.is-locked-open .play-submenu-item-mobile:nth-child(2) {
  transition-delay: 0.1s;
}

.play-submenu-mobile.is-hover-active .play-submenu-item-mobile:nth-child(1),
.play-submenu-mobile.is-locked-open .play-submenu-item-mobile:nth-child(1) {
  transition-delay: 0.2s;
}

.play-submenu-link-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
  position: relative;
  transform: rotate(180deg);
}

.play-submenu-link-mobile:hover {
  transform: rotate(180deg) scale(1.05);
  filter: brightness(1.1);
}

.play-submenu-link-mobile.is-disabled {
  cursor: not-allowed;
  pointer-events: all !important;
  filter: brightness(0.7) grayscale(0.7);
}

.play-submenu-link-mobile.is-disabled .submenu-text {
  opacity: 0.3
}

.play-submenu-link-mobile.is-disabled:hover {
  transform: rotate(180deg) scale(1.05);
}

.play-submenu-item-mobile .submenu-svg {
  transform: rotate(180deg);
}

.play-submenu-item-mobile .submenu-text-item-1 {
  font-size: 1rem;
}

.play-submenu-item-mobile .submenu-text-item-2 {
  font-size: 1.3rem;
}

.play-submenu-item-mobile .submenu-text-item-3 {
  font-size: 1rem;
}

.play-submenu-item-mobile:nth-child(1) {
  z-index: 1;
}

.play-submenu-item-mobile:nth-child(2) {
  z-index: 2;
}

.play-submenu-item-mobile:nth-child(3) {
  z-index: 3;
}

.play-submenu-item-mobile:nth-child(1) .play-submenu-link-mobile {
  width: 300px;
  height: 145px;
  background-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play3.png') */
  background-size: 100% 100%;
}

.play-submenu-item-mobile:nth-child(2) .play-submenu-link-mobile {
  width: 270px;
  height: 100px;
  background-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play2.png') */
  background-size: 100% 100%;
}

.play-submenu-item-mobile:nth-child(3) .play-submenu-link-mobile {
  width: 240px;
  height: 62px;
  background-image: none !important;
  /* url('../images/jeguesstonrank_submenu-play.png') */
  background-size: 100% 100%;
}

.play-submenu-item-mobile .submenu-icon-img-content {
  /* filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 10px rgba(176, 102, 255, 0.7)); */
  transform: rotate(-6deg);
}

.play-submenu-item:has(> .is-disabled)::after,
.play-submenu-item-mobile:has(> .is-disabled)::after {
  content: '\f023';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.play-submenu-item:nth-child(2):has(> .is-disabled)::after {
  font-size: 1.1rem;
  margin-top: 30px;
}

.play-submenu-item:nth-child(3):has(> .is-disabled)::after {
  font-size: 1.1rem;
  margin-top: 55px;
}

.play-submenu-item-mobile:nth-child(1):has(> .is-disabled)::after {
  font-size: 1.1rem;
  margin-top: -43px;
}

.play-submenu-item-mobile:nth-child(2):has(> .is-disabled)::after {
  font-size: 1.1rem;
  margin-top: -28px;
}

.layout-with-sidebars {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "sidebar-left main-content sidebar-right";
  align-items: stretch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.layout-sidebar-left {
  grid-area: sidebar-left;
  position: sticky;
  top: 80px;
  margin-left: -9vh;
}

.layout-main-content {
  grid-area: main-content;
  width: 100%;
}

.layout-sidebar-right {
  grid-area: sidebar-right;
  position: sticky;
  top: 80px;
  margin-right: -9vh;
}

.value-blurred {
  filter: blur(4px) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  pointer-events: none;
  user-select: none;
  display: inline-block;
}

.notification-container {
  position: fixed;
  z-index: 1000000041;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: none;
}

.notification-container.top-right {
  top: 100px;
  right: 20px;
}

.notification-toast {
  width: 100%;
  position: relative;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease-out;
}

.notification-toast:hover {
  transform: scale(0.995) !important;
}

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

.notification-toast::before,
.notification-toast::after {
  content: '';
  position: absolute;
  top: 21px;
  bottom: 21px;
  width: 3px;
  background-color: hsl(41.69, 98.16%, 57.45%);
  box-shadow: 0 0 8px hsl(48.5, 100%, 70%), 0 0 12px hsl(29.84, 100%, 65%);
  border-radius: 2px;
  margin-left: 2px;
  margin-right: 2px;
}

.notification-toast::before {
  left: 0;
}

.notification-toast::after {
  right: 0;
}

.notification-frame {
  position: relative;
  padding: 0 12px;
}

.notification-frame::before,
.notification-frame::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 38px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(185, 109, 244, 0.6));
}

.notification-frame::before {
  top: -15px;
  background-image: url('../images/jeguesstonrank_notif-hab-haut.png');
  opacity: 0;
}

.notification-frame::after {
  bottom: -15px;
  background-image: url('../images/jeguesstonrank_notif-hab-bas.png');
  opacity: 1;
}

.notification-content-wrapper {
  position: relative;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: #fff;
  backdrop-filter: blur(2px) saturate(120%);
  -webkit-backdrop-filter: blur(2px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.notification-content-wrapper::before,
.notification-content-wrapper::after {
  content: '';
  position: absolute;
  top: 16%;
  height: 66%;
  width: 2px;
  background-color: hsl(208.3, 0%, 100%);
  opacity: 0.5;
  box-shadow: 0 0 2px hsl(190, 0%, 100%), 0 0 12px hsl(190, 0%, 100%);
  border-radius: 1px;
}

.notification-content-wrapper::before {
  left: 8px;
}

.notification-content-wrapper::after {
  right: 8px;
}

.notification-content-wrapper.success {
  background-color: rgba(34, 197, 94, 0.86);
}

.notification-content-wrapper.error {
  background-color: rgba(239, 68, 68, 0.86);
}

.notification-content-wrapper.warning {
  background-color: rgba(249, 115, 22, 0.86);
}

.notification-content-wrapper.info {
  background-color: rgba(59, 130, 246, 0.86);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

.notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.notification-body {
  flex-grow: 1;
  z-index: 2;
}

.notification-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}

.notification-message {
  font-size: 0.9rem;
  line-height: 1.5;
}

.notification-close-btn {
  position: absolute;
  top: -13px;
  right: -10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 30%;
  width: 20px;
  height: 26px;
  border: none;
  color: #e5e7eb;
  font-size: 1.5rem;
  line-height: 26px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  z-index: 3;
}

.notification-close-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1) rotate(90deg);
  color: #fff;
}

.notification-content-wrapper.no-title .notification-content {
  align-items: center;
}

.notification-content-wrapper.no-title .notification-icon {
  margin-top: 0;
}

.mode-selector-container {
  display: inline-flex;
  background-color: rgba(31, 41, 55, 0.8);
  padding: 4px;
  border-radius: 0.5rem;
  border: 1px solid rgba(75, 85, 99, 0.5);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mode-selector-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  border-radius: 0.375rem;
  transition: all 0.2s ease-out;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.mode-selector-btn:hover {
  color: #f3f4f6;
  background-color: rgba(255, 255, 255, 0.05);
}

.mode-selector-btn.is-active {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mode-selector-btn.is-active i {
  color: #fbbf24;
}

/* --- PREMIUM AVATAR STYLES (V2 - Lueur & Badge PASS) --- */
/* Animation de lueur diffuse (Orange/Or) */
@keyframes premium-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
  }

  /* Orange léger */
  50% {
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
  }

  /* Or intense */
}

/* Classe principale pour l'avatar (Lueur uniquement, pas de bordure solide) */
.is-premium-avatar {
  border-color: transparent !important;
  /* On efface la bordure grise */
  box-shadow: 0 0 15px rgba(251, 146, 60, 0.7) !important;
  /* Lueur de base */
  animation: premium-glow-pulse 3s infinite ease-in-out;
}

/* Nouveau Badge "PASS" */
.premium-pass-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0f172a;
  /* Fond très sombre pour contraste */
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 4px;
  padding: 0px 4px;
  font-size: 8px;
  font-weight: 900;
  /* Très gras */
  line-height: 1.2;
  z-index: 25;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.5px;
}

/* Le texte en dégradé */
.premium-pass-text {
  background: linear-gradient(to right, #facc15, #f97316);
  /* Jaune vers Orange */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  font-family: 'Kanit', sans-serif;
}

/* Ajustement spécifique mobile pour le hover */
.mobile-logo-avatar-group:hover .mobile-avatar-image.is-premium-avatar {
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.8) !important;
  transform: scale(1.05);
}

.sidebar-pass-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 80px;
}

.sidebar-pass-img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6));
  animation: levitate-showcase 4s ease-in-out infinite;
}

.sidebar-pass-img.is-inactive {
  filter: grayscale(1) brightness(0.7) drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  opacity: 0.8;
}

@keyframes levitate-showcase {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.premium-active-badge-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 6px;
  padding: 4px 12px;
  height: 36px;
  box-shadow: inset 0 0 10px rgba(234, 179, 8, 0.05);
}

.sticky-check-icon-wrapper {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(250, 204, 21, 0.2);
  border: 1px solid rgba(250, 204, 21, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(250, 204, 21, 0.4);
  flex-shrink: 0;
}

.sticky-check-icon-wrapper i {
  color: #facc15;
  font-size: 10px;
}

.premium-active-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}

.premium-active-title {
  font-size: 10px;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.premium-active-subtitle {
  font-size: 8px;
  font-weight: 600;
  color: #ca8a04;
  margin-top: 1px;
}

.premium-list-badge-group {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 4px;
  cursor: help;
  overflow: visible;
}

.premium-list-img {
  height: 56px;
  width: auto;
  position: absolute;
  z-index: 2;
  margin-left: -18px;
  margin-top: 5px;
  transform-origin: center center;
}

.premium-list-sticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.05), rgba(234, 179, 8, 0.15));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 20px;
  padding: 2px 4px 2px 36px;
  height: 26px;
  box-shadow: inset 0 0 5px rgba(234, 179, 8, 0.05);
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.premium-list-text {
  font-size: 10px;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.premium-list-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(250, 204, 21, 0.2);
  border: 1px solid rgba(250, 204, 21, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #facc15;
  font-size: 10px;
  box-shadow: 0 0 4px rgba(250, 204, 21, 0.3);
  flex-shrink: 0;
}

.premium-list-badge-group:hover .premium-list-img {
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.8));
  z-index: 10;
}

.premium-list-badge-group:hover .premium-list-sticker {
  background: rgba(234, 179, 8, 0.25);
  border-color: rgba(234, 179, 8, 0.6);
}

.premium-custom-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.premium-custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.4) transparent transparent transparent;
}

.premium-list-badge-group:hover .premium-custom-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hud-pass-badge {
  position: absolute;
  width: 55px;
  top: -28px;
  right: -15px;
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
  z-index: 20;
}

@media (max-width: 1279.98px) {}

@keyframes pulse-fog {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.sidebar-loot-duo-container {
  position: relative;
  height: 70px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.sidebar-loot-gift-wrapper {
  position: relative;
  transform: translateX(15px) scale(0.9);
  z-index: 1;
  transition: transform 0.3s ease;
}

.sidebar-loot-gift-icon {
  font-size: 3.5rem;
  color: #4b5563;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.sidebar-loot-lock {
  position: absolute;
  bottom: -2px;
  right: -5px;
  background-color: #111827;
  color: #ef4444;
  border: 2px solid #7f1d1d;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sidebar-pass-inactive-mini {
  position: absolute;
  left: 50%;
  margin-left: -65px;
  width: 80px;
  height: auto;
  z-index: 10;
  filter: grayscale(1) brightness(0.6) drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
  animation: levitate-mini 4s ease-in-out infinite;
  transition: filter 0.3s ease, transform 0.3s ease;
}

@keyframes levitate-mini {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-6px) rotate(-5deg);
  }
}

.group:hover .sidebar-pass-inactive-mini {
  filter: grayscale(0) brightness(1) drop-shadow(0 8px 12px rgba(108, 99, 255, 0.4));
  transform: translateY(-3px) scale(1.1) rotate(0deg);
}

.group:hover .sidebar-loot-gift-wrapper {
  transform: translateX(20px) scale(0.95);
}

/* --- Icônes de la Piste de Saison (HUD) --- */
.hud-track-icon {
  font-size: 0.75rem;
  margin: 0 6px;
  flex-shrink: 0;
  opacity: 0.7;
}

.hud-track-icon.start {
  color: #6b7280;
}

/* Gris */
.hud-track-icon.finish {
  color: #eab308;
}

/* --- STRUCTURE COMMUNE DES SWITCHERS (Dashboard / Rankings) --- */
.tactical-switcher,
.jgtr-universal-switcher {
  display: flex;
  gap: 10px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: fit-content;
  min-width: 360px;
}

.tactical-switcher .switcher-btn,
.jgtr-universal-switcher .switcher-btn {
  flex: 1;
  min-width: 140px;
  /* GARANTIT QUE LE BOUTON NE SE CONTRACTE PAS TROP */
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  font-size: 0.80rem;
  /* Taille équilibrée */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: visible;
  /* Pour laisser briller la barre plasma */
}

/* La barre de lumière (Plasma Bar) */
.tactical-switcher .switcher-btn.active::after,
.jgtr-universal-switcher .switcher-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  /* Positionnée pile sur le bord bas */
  left: 8px;
  right: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--switcher-accent-color, #22d3ee);
  box-shadow: 0 0 10px var(--switcher-accent-color, #22d3ee);
  z-index: 10;
}

.tactical-switcher .switcher-btn.active,
.jgtr-universal-switcher .switcher-btn.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.tactical-switcher .switcher-icon-img,
.jgtr-universal-switcher .switcher-icon-img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {

  .tactical-switcher .switcher-btn,
  .jgtr-universal-switcher .switcher-btn {
    min-width: 100px;
    /* Plus souple sur petit mobile */
    padding: 8px 12px;
  }
}

/* --- TACTICAL NAV HEADER V6.3 --- */
/* Centrage Absolu pour le conteneur du bouton JOUER */
.header-play-button-container-absolute {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 100;
  /* Priorité suprême pour le clic et visuel */
  width: 220px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  /* Le conteneur ne bloque pas, seul le bouton 'a' bloque */
}

/* Bouton Jouer PNG */
.header-play-png-action-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  /* Hitbox */
  height: 85px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: visible;
}

/* Images du bouton (Base et Hover) */
.header-play-png-action-button img.play-png-base,
.header-play-png-action-button img.play-png-hover {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 276px;
  /* Dépassement large */
  max-width: none;
  height: auto;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.header-play-png-action-button img.play-png-hover {
  opacity: 0;
}

.header-play-png-action-button:hover img.play-png-base {
  opacity: 0;
}

.header-play-png-action-button:hover img.play-png-hover {
  opacity: 1;
}

.header-play-png-action-button:hover {
  transform: translateY(3px);
}

/* Correction taille icône Gamepad */
.game-pad-icon-header {
  width: 40px !important;
  /* Force la taille réduite */
  height: auto !important;
  max-width: 100%;
  margin-top: -3px;
}

.play-button-custom-content-header-tactical {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.play-button-text-header {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.8);
  margin-top: -8px;
}

/* --- TACTICAL NAV HEADER V6.5 --- */
/* (0) EFFET IMMERSION : OPACITÉ RÉDUITE PAR DÉFAUT */
header.hidden.xl\:block {
  background-color: rgba(18, 20, 32, 0) !important;
  /* Fond transparent par défaut (#121420) */
  box-shadow: none !important;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.hidden.xl\:block:hover {
  background-color: rgba(18, 20, 32, 1) !important;
  /* Fond opaque au hover */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* État d'allumage global piloté par le hover du header */
header.hidden.xl\:block:hover~.nav-segment,
.nav-segment:hover {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.8));
}

/* On réduit l'opacité uniquement de la navigation tactique */
.header-tactical-nav-absolute {
  opacity: 1;
  /* OPACITY:CHILD-INDEPENDANT */
}

.tactical-item {
  opacity: 0.28;
  filter: saturate(0.7) brightness(0.9);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.3s ease;
}

/* EXCEPTION : L'item actif reste allumé à 100% */
.tactical-item.active {
  opacity: 1 !important;
  filter: saturate(1) brightness(1.1) !important;
}

header.hidden.xl\:block:hover .tactical-item {
  opacity: 1;
  filter: saturate(1) brightness(1);
}

/* Les ailes (background) suivent aussi l'immersion */
.wing-background {
  opacity: 0.15;
  transition: opacity 0.4s ease;
}

header.hidden.xl\:block:hover .wing-background {
  opacity: 1;
}

/* EXCLUSIONS : Toujours visibles à 100% */
.header-left-group,
.header-play-button-container-absolute,
.header-right-group {
  opacity: 1 !important;
  transition: none !important;
  /* Pas de transition pour ces éléments vitaux */
}

/* (1) ESPACEMENT & PADDING DES AILES */
.tactical-wing {
  height: 100%;
  z-index: 51;
  display: flex;
  align-items: center;
}

/* --- TACTICAL CONTENT FADER (VFX: Smooth content exit) --- */
.tactical-content-fader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--primary-bg, #13141f) 0px, var(--primary-bg, #13141f) 66px, rgba(19, 20, 31, 0) 120px);
  z-index: 45;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@media (max-width: 1279.98px) {
  .tactical-content-fader {
    display: none;
  }
}

/* [V9.0] Seamless Transition Fader */
.seamless-fader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #13141f;
  /* Fond identique au site */
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity;
}

.seamless-fader.active {
  opacity: 1;
  pointer-events: auto;
}

.tactical-item {
  width: 100% !important;
  /* Force l'occupation de l'espace pour centrer par rapport au bloc */
  justify-content: center !important;
  /* Centre verticalement si besoin */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  min-width: 60px !important;
}

/* Grandes marges pour l'aile GAUCHE */
.tactical-wing--left {
  padding-left: 75px !important;
  /* Grande marge côté Logo */
  padding-right: 60px !important;
  /* Marge côté Bouton Jouer */
}

/* Grandes marges pour l'aile DROITE */
.tactical-wing--right {
  padding-left: 60px !important;
  /* Marge côté Bouton Jouer */
  padding-right: 75px !important;
  /* Grande marge côté Logo */
}

.tactical-wing .group>div[class*="absolute"] {
  background-image: url('../images/jeguesstonrank_submenu-play3.png') !important;
  background-size: 200% 200% !important;
  background-repeat: no-repeat !important;
  background-position: center;
  background-color: rgba(26, 27, 46, 0.58) !important;
  /* Assure la lisibilité sur le fond sombre */
}

/* (2) INVERSION PARFAITE DU BACKGROUND */
.wing-background {
  position: absolute;
  inset: 0;
  background-image: var(--jgtr-wing-bg);
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

/* AILE GAUCHE : Calée en bas à gauche */
.tactical-wing--left .wing-background {
  clip-path: polygon(-3% 0%, 79.7% 0%, 101% 100%, 16% 103%);
  background-position: bottom left !important;
}

/* AILE DROITE : Inversion et calage en bas à droite */
.tactical-wing--right .wing-background {
  transform: scaleX(-1);
  clip-path: polygon(-3% 0%, 77.5% 0%, 98% 100%, 16% 103%);
  background-position: bottom left !important;
}

/* (3) HARMONISATION DU RESTE */
.tactical-center-spacer {
  width: 120px !important;
}

/* PRESERVE:CONTENT-ORIENTATION */
.tactical-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  transform: translateY(-6px) !important;
}

.tactical-icon {
  height: 44px !important;
  width: auto;
  margin-bottom: 0px !important;
  filter: grayscale(1) contrast(1.3)
    /*brightness(0.7) sepia(1) hue-rotate(200deg) saturate(5)*/
    drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3)) !important;
  opacity: 0.5 !important;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.3s ease !important;
}

.tactical-item:hover .tactical-icon {
  filter: grayscale(0) brightness(1) drop-shadow(0 0 8px rgba(108, 99, 255, 1)) !important;
  opacity: 1 !important;
  transform: scale(1.05);
}

/* État actif avec révélation fluide */
.tactical-item.active .tactical-icon {
  filter: grayscale(1) contrast(1.3) drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3)) !important;
  opacity: 0.5 !important;
  transform: scale(1) !important;
  transition: none !important;
  will-change: filter, transform, opacity;
  /* Prépare le navigateur */
}

.tactical-item.active.is-revealed .tactical-icon {
  filter: grayscale(0) brightness(1) drop-shadow(0 0 8px rgba(108, 99, 255, 1)) !important;
  opacity: 1 !important;
  transform: scale(1.05) !important;
  transition: filter 0.6s ease-out, opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.tactical-label {
  position: relative;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap !important;
  width: max-content !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Spot lumineux sous le label actif */
.tactical-label::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 60px;
  /* Plus large */
  height: 12px;
  /* Plus haut */
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.6) 45%, transparent 85%);
  border-radius: 50%;
  filter: blur(5px);
  /* Flou légèrement augmenté pour la taille */
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: -1;
}

.tactical-item.active.is-revealed .tactical-label::after {
  opacity: 1;
  box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.4);
  /* Puissance supplémentaire */
}

/* --- JGTR TACTICAL HUD BLUEPRINT (UNIFIED) --- */
.jgtr-hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: relative;
  z-index: 9;
  height: 56px;
}

.jgtr-hud-topbar__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -65%);
  z-index: 10;
}

.jgtr-hud-topbar .tactical-switcher {
  background: rgba(37, 38, 67, 0.9);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 4px;
  padding: 0.25rem 1.2rem;
  display: flex;
  gap: 0.25rem;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
  position: relative;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, calc(100% - 18px) 100%, 18px 100%, 0 6px);
  animation: jgtr-hud-switcher-load 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- TACTICAL SWITCHER "WINGS" DESIGN (UNIVERSAL) --- */
.jgtr-hud-topbar .tactical-switcher.rankings-mode-switcher,
.jgtr-hud-topbar .jgtr-universal-switcher {
  background: none !important;
  border: none !important;
  clip-path: none !important;
  padding: 0 !important;
  gap: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
}

/* Le pivot central (Séparateur Image) */
.jgtr-hud-topbar .tactical-switcher.rankings-mode-switcher::before,
.jgtr-hud-topbar .jgtr-universal-switcher::before {
  content: '';
  order: 2;
  /* Entre les deux boutons */
  width: 40px;
  /* Largeur réduite */
  height: 40px;
  /* Hauteur réduite */
  background-image: url('../images/header/jeguesstonrank_header_wing-switcher_bg-sep.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 20;
  filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.4));
  transform: translate3d(0, 0, 0);
  transform: rotate(90deg);
  margin-top: 10px;
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn {
  position: relative;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.6rem 2rem 1rem 2rem !important;
  /* Padding réduit */
  min-width: 140px;
  /* Min-width réduit */
  font-size: 0.85rem !important;
  /* Typo réduite */
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  box-shadow: none !important;
  color: #9ca3af !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px rgba(108, 99, 255, 0.4);
}

/* Neutralisation spécifique du background active pour le design wings */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn.active,
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:hover,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn.active,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:hover {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Nouveau pseudo-élément pour le fond des wings */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn::before,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/header/jeguesstonrank_header_wing-switcher_bg-off.png') !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-image 0.4s ease !important;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  filter: brightness(0.7) grayscale(0.2);
  /* Inactif : légèrement assombri */
  opacity: 0.8;
}

/* État Actif : Switch vers l'image ON */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn.active::before,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn.active::before {
  background-image: url('../images/header/jeguesstonrank_header_wing-switcher_bg-on.png') !important;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(34, 211, 238, 0.4));
  opacity: 1;
}

/* Aile Gauche */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:nth-of-type(1),
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:nth-of-type(1) {
  order: 1;
  margin-right: -24px;
  /* Imbrication ajustée à la nouvelle taille */
}

/* Aile Droite */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:nth-of-type(2),
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:nth-of-type(2) {
  order: 3;
  margin-left: -24px;
  /* Imbrication ajustée à la nouvelle taille */
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:nth-of-type(2)::before,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:nth-of-type(2)::before {
  transform: scaleX(-1) translate3d(0, 0, 0) !important;
}

/* Effet Hover Amélioré (Réveil de l'aile) */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:not(.active):hover::before,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:not(.active):hover::before {
  background-image: url('../images/header/jeguesstonrank_header_wing-switcher_bg-on.png') !important;
  filter: brightness(0.9) saturate(0.8) grayscale(0);
  opacity: 0.95;
  transform: scale(1.02) translate3d(0, 0, 0);
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:nth-of-type(2):not(.active):hover::before,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:nth-of-type(2):not(.active):hover::before {
  transform: scaleX(-1) scale(1.02) translate3d(0, 0, 0) !important;
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:hover,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:hover {
  filter: brightness(1.2) !important;
  z-index: 15;
  color: #fff !important;
  text-shadow: 0 0 15px rgba(108, 99, 255, 0.8);
}

/* [V11.2] Décalage du texte vers le centre (except Progression XP) */
.jgtr-hud-topbar .tactical-switcher .switcher-btn:nth-of-type(1) span,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:nth-of-type(1) span {
  transform: translateX(4px);
}

.jgtr-hud-topbar .tactical-switcher .switcher-btn:nth-of-type(2) span:not(.js-no-shift),
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:nth-of-type(2) span:not(.js-no-shift) {
  transform: translateX(-4px);
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:first-child:hover,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:first-child:hover {
  transform: translate3d(-5px, 0, 0);
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:last-child:hover,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn:last-child:hover {
  transform: translate3d(5px, 0, 0);
}

/* Soulignement Néon Cyan (Plasma Bar) - Largeur réduite et épaisseur augmentée */
.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn.active::after,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 45px;
  right: 35px;
  height: 4px;
  background: #b8f6f9;
  box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(34, 211, 238, 0.6);
  border-radius: 4px;
  z-index: 25;
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn.active,
.jgtr-hud-topbar .jgtr-universal-switcher .switcher-btn.active {
  color: #fff !important;
  background: none !important;
  background-color: transparent !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 15px rgba(34, 211, 238, 0.9) !important;
  /* Shadow actif renforcé */
  box-shadow: none !important;
  z-index: 6;
}

.jgtr-hud-topbar .switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
}

.jgtr-hud-topbar .switcher-btn:hover {
  color: #fff;
  background: rgba(108, 99, 255, 0.31);
}

.jgtr-hud-topbar .switcher-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.25), rgba(139, 92, 246, 0.15));
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.3), inset 0 0 8px rgba(108, 99, 255, 0.1);
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-icon-img {
  height: 20px !important;
  width: auto !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4)) !important;
  margin: 0 0.15rem !important;
  /* Distance encore plus réduite avec le texte */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.jgtr-hud-topbar .rankings-mode-switcher .switcher-btn:hover .switcher-icon-img {
  transform: scale(1.1) translate3d(0, 0, 0);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) brightness(1.2);
}

/* --- BOUTONS 3D SUBBAR (Généralisés) --- */
.btn-back-cockpit-subbar {
  --game-select-btn-theme: #6c63ff;
  --game-select-btn-theme-bg: rgba(108, 99, 255, 0.25);
  --game-select-btn-theme-bg-hover: rgba(108, 99, 255, 0.5);
  --game-select-btn-before-offset-x: 4px;
  --game-select-btn-before-offset-y: -4px;
  --game-select-btn-depth-multiplier: 1.1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--game-select-btn-theme-bg);
  border: 2px solid var(--game-select-btn-theme);
  border-radius: 5px 20px;
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-right: 15px;
  box-shadow: 0 0 14px rgba(0, 0, 0, .25), 0 0 7px var(--game-select-btn-theme);
  transform-style: preserve-3d;
  transform: translateZ(calc(2px * var(--game-select-btn-depth-multiplier)));
  transition: all 0.2s ease-out, transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  animation: none !important;
}

.btn-back-cockpit-subbar::before,
.btn-back-cockpit-subbar::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--game-select-btn-theme);
  border-radius: inherit;
  transition: transform .15s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
  opacity: 1;
  transform-style: preserve-3d;
  pointer-events: none;
}

.btn-back-cockpit-subbar::before {
  transform: translate3d(var(--game-select-btn-before-offset-x), var(--game-select-btn-before-offset-y), calc(-20px * var(--game-select-btn-depth-multiplier)));
  opacity: .45;
}

.btn-back-cockpit-subbar::after {
  transform: translateZ(calc(-4px * var(--game-select-btn-depth-multiplier)));
  opacity: .65;
}

.btn-back-cockpit-subbar:hover {
  background-color: var(--game-select-btn-theme-bg-hover);
  transform: translateZ(calc(4px * var(--game-select-btn-depth-multiplier))) translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 0, 0, .3), 0 0 12px var(--game-select-btn-theme);
}

.btn-back-cockpit-subbar:hover::before {
  transform: translate3d(calc(var(--game-select-btn-before-offset-x) * 1.2), calc(var(--game-select-btn-before-offset-y) * 1.2), calc(-3px * var(--game-select-btn-depth-multiplier)));
  opacity: 0.6;
}

.btn-back-cockpit-subbar.theme-emerald {
  --game-select-btn-theme: #34d399;
  --game-select-btn-theme-bg: rgba(52, 211, 153, 0.25);
  --game-select-btn-theme-bg-hover: rgba(52, 211, 153, 0.5);
}

.btn-back-cockpit-subbar i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.btn-back-cockpit-subbar:hover i {
  transform: translateX(-3px);
}

.jgtr-hud-subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(15, 17, 25, 0.4);
  border: 1px solid rgba(115, 104, 254, 0.47);
  border-radius: 8px;
  position: relative;
  overflow: visible;
  min-height: 77px;
  z-index: 5;
  margin-top: 0.5rem;
}

.jgtr-hud-subbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.jgtr-hud-subbar__main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.jgtr-hud-crest {
  position: absolute;
  top: -85px;
  left: 10px;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 101;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.jgtr-hud-subbar__title h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.jgtr-hud-subbar__title h1 .gradient-text {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.jgtr-hud-subtitle {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  color: #a78bfa;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
  vertical-align: middle;
}

.jgtr-hud-subtitle::before {
  content: '>';
  color: #6c63ff;
  font-weight: bold;
}

.jgtr-hud-badge {
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.1);
  text-shadow: 0 0 5px rgba(108, 99, 255, 0.5);
}

.jgtr-hud-title-cursor {
  display: inline-block;
  width: 10px;
  height: 0.7em;
  background-color: #6c63ff;
  margin-left: 10px;
  margin-top: -4px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.8), 0 0 20px rgba(108, 99, 255, 0.4);
  animation: jgtr-hud-cursor-blink 1.2s step-end infinite;
}

@keyframes jgtr-hud-cursor-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes jgtr-hud-switcher-load {
  from {
    transform: translateY(-120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1279.98px) {
  .jgtr-hud-topbar {
    display: none;
  }

  .jgtr-hud-crest {
    display: none;
  }

  .jgtr-hud-switcher.is-mobile-fixed {
    z-index: 1045;
  }

  .jgtr-hud-subbar {
    padding: 0.75rem 1rem;
    flex-direction: column;
    min-height: auto;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .jgtr-hud-subbar__title h1 {
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
  }
}

/* Centrage absolu du menu tactique pour éviter les décalages */
.header-tactical-nav-absolute {
  position: absolute;
  left: 49.6%;
  transform: translateX(-50%);
  top: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  width: auto;
}

/* --- TACTICAL NAVIGATION SEGMENTS (BEVELED SYMMETRY) --- */
.nav-segment {
  position: fixed;
  top: 66px;
  height: 5px;
  background: var(--accent-gradient);
  z-index: 46;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
  opacity: 0.15;
  transition: opacity 0.4s ease, filter 0.4s ease;
  will-change: opacity, filter;
}

/* Segment Gauche : Biseauté en \ (Le haut est plus court que le bas) */
.nav-segment--left {
  left: 0;
  width: 26vw;
  /* Tracé : TL(0,0), TR(calc(100%-5px),0), BR(100%,100%), BL(0,100%) */
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 0 100%);
}

/* Segment Droit : Biseauté en / (Le haut est plus court que le bas) - INCHANGÉ car parfait */
.nav-segment--right {
  right: 0;
  width: 26vw;
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%);
}

/* Lueur aux extrémités biseautées */
.nav-segment::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px;
  height: 100%;
  background: white;
  filter: blur(4px);
  opacity: 0.6;
}

.nav-segment--left::after {
  right: 0;
}

.nav-segment--right::after {
  left: 0;
}

@media (min-width: 1921px) {
  header.hidden.xl\:block {
    height: 94px !important;
  }

  header.hidden.xl\:block .header-main-container {
    padding-left: 4.75rem !important;
    padding-right: 4.75rem !important;
  }

  header.hidden.xl\:block .header-left-group>a {
    font-size: 1.52rem !important;
  }

  header.hidden.xl\:block .header-left-group .js-modal-trigger img {
    width: 2.45rem !important;
    height: 2.45rem !important;
  }

  header.hidden.xl\:block .header-left-group .js-modal-trigger span {
    font-size: 10px !important;
  }

  header.hidden.xl\:block .header-right-group {
    gap: 1.08rem !important;
  }

  header.hidden.xl\:block .header-right-group .fa-bell {
    font-size: 1.48rem !important;
  }

  header.hidden.xl\:block .header-right-group .neu-button {
    width: 3rem !important;
    height: 3rem !important;
  }

  header.hidden.xl\:block .widget-myrank-display {
    height: 94px !important;
  }

  header.hidden.xl\:block .myrank-avatar-container {
    height: 94px !important;
    border-radius: 1.05rem !important;
  }

  header.hidden.xl\:block .myrank-avatar-container .text-\[11px\] {
    font-size: 14px !important;
  }

  header.hidden.xl\:block .myrank-avatar-container .text-\[9px\] {
    font-size: 11px !important;
  }

  header.hidden.xl\:block .myrank-avatar-container .text-\[8px\] {
    font-size: 10px !important;
  }

  header.hidden.xl\:block .myrank-avatar-container .text-\[7px\] {
    font-size: 9px !important;
  }

  header.hidden.xl\:block .myrank-avatar-container .w-8.h-8 {
    width: 2.65rem !important;
    height: 2.65rem !important;
  }

  header.hidden.xl\:block .jmkoins-trigger-button {
    padding: 0.36rem 0.68rem !important;
  }

  header.hidden.xl\:block .header-tactical-nav-absolute {
    height: 100px;
    transform: translateX(-50%) scale(1.18);
    transform-origin: top center;
  }

  header.hidden.xl\:block .header-play-button-container-absolute {
    width: 312px;
    height: 126px;
  }

  header.hidden.xl\:block .header-play-png-action-button {
    width: 255px;
    height: 120px;
  }

  header.hidden.xl\:block .header-play-png-action-button img.play-png-base,
  header.hidden.xl\:block .header-play-png-action-button img.play-png-hover {
    width: 391px;
  }

  header.hidden.xl\:block .play-button-custom-content-header-tactical {
    padding-top: 14px;
  }

  header.hidden.xl\:block .play-button-text-header {
    font-size: 2.22rem;
    margin-top: -11px;
  }

  header.hidden.xl\:block .game-pad-icon-header {
    width: 56px !important;
  }

  header.hidden.xl\:block .play-button-icon-header {
    width: 56px !important;
    height: auto !important;
  }

  header.hidden.xl\:block .tactical-center-spacer {
    width: 162px !important;
  }

  .nav-segment {
    top: 94px;
  }

  .tactical-content-fader {
    height: 162px;
    background: linear-gradient(to bottom, var(--primary-bg, #13141f) 0px, var(--primary-bg, #13141f) 94px, rgba(19, 20, 31, 0) 162px);
  }
}

@media (min-width: 1921px) {
  header.hidden.xl\:block .header-right-group .admin-cog-button--stacked {
    width: 2.25rem !important;
    min-width: 2.25rem !important;
    max-width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 !important;
  }
}

/* --- ANIMATION CLOCHE NOTIFICATIONS --- */
@keyframes bell-ring {
  0% {
    transform: rotate(0);
  }

  5% {
    transform: rotate(15deg);
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  }

  10% {
    transform: rotate(-15deg);
  }

  15% {
    transform: rotate(15deg);
  }

  20% {
    transform: rotate(-15deg);
  }

  25% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-15deg);
  }

  35% {
    transform: rotate(15deg);
  }

  40% {
    transform: rotate(-15deg);
  }

  45% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0);
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  }

  50.1%,
  100% {
    transform: rotate(0);
  }
}

.animate-bell-ring {
  display: inline-block !important;
  animation: bell-ring 2s ease-in-out 2;
  transform-origin: top center;
}

/* Animation Cloche Notifications */
@keyframes bell-vibrate {

  0%,
  50%,
  100% {
    transform: rotate(0);
    color: inherit;
    text-shadow: none;
  }

  5%,
  15%,
  25%,
  35%,
  45% {
    transform: rotate(15deg);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
  }

  10%,
  20%,
  30%,
  40% {
    transform: rotate(-15deg);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6);
  }
}

@keyframes bell-sonar {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    transform: scale(2.2);
    opacity: 0;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.bell-vibrate-active {
  display: inline-block;
  transform-origin: top center;
  animation: bell-vibrate 2s ease-in-out 2;
}

.bell-sonar-active {
  position: relative;
}

.bell-sonar-active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: bell-sonar 2s ease-out 2;
  opacity: 0;
}

/* --- [JGTR] GLUED WINDOW SYSTEM (Golden Standard) --- */
.jgtr-window-glued {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  overflow: hidden;
}

.jgtr-glued-scroll {
  height: 540px;
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
  /* Zone persistante réservée à côté du contenu */
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  transform: translate3d(0, 0, 0);
}

/* Scrollbar Paliers Standardisée (Persistance Absolue) */
.jgtr-glued-scroll::-webkit-scrollbar {
  width: 10px !important;
  display: block !important;
}

.jgtr-glued-scroll::-webkit-scrollbar-track {
  background-color: #0f111a !important;
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.jgtr-glued-scroll::-webkit-scrollbar-thumb {
  background-color: var(--glued-accent, #6c63ff) !important;
  border-radius: 6px !important;
  border: 3px solid #0f111a !important;
  min-height: 30px;
}

.jgtr-glued-footer {
  width: 100%;
  background: rgba(15, 17, 26, 0.6) !important;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.3rem 1rem;
  /* Ultra Compact */
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  position: relative;
  margin-top: 0;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.jgtr-scroll-hint {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 35px;
  background: linear-gradient(to bottom, transparent 0%, rgba(13, 17, 34, 0.8) 100%);
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 5px;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jgtr-scroll-hint.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.jgtr-scroll-hint i {
  font-size: 0.75rem;
  color: var(--glued-accent, #6c63ff);
  animation: jgtr-bounce-hint 2s infinite;
  filter: drop-shadow(0 0 5px var(--glued-accent, #6c63ff));
}

@keyframes jgtr-bounce-hint {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-5px);
  }

  60% {
    transform: translateY(-2.5px);
  }
}

/* Pagination Tactique */
.jgtr-glued-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.jgtr-pagination-left,
.jgtr-pagination-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jgtr-pagination-right {
  margin-left: auto;
}

.jgtr-page-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jgtr-page-indicator span {
  color: var(--glued-accent, #6c63ff);
}

/* --- ANIMATIONS SYSTÈME JGTR --- */
@keyframes switcher-desktop-load-in {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- GLUED SYSTEM : SCROLL HINT --- */
@media (min-width: 1024px) {

  .hud-deck-content,
  .hud-deck-content * {
    font-size: 16px !important;
  }

  .hud-deck-content i {
    font-size: 1.1em;
    vertical-align: middle;
    margin-right: 8px;
    color: #00f0ff;
  }
}

@media (min-width: 1024px) {
  .hud-deck-content .reward-tooltip__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }
}

/* --- BATTLE PASS REVEAL ORNAMENT --- */
.bp-reveal-ornament {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}

.bp-reveal-ornament::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/jeguesstonrank_pass-de-combat_activate.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  z-index: 2;
  pointer-events: none;
}

.bp-reveal-ornament::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.4);
  pointer-events: none;
  opacity: 0;
  animation: bp-pulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes bp-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    transform: scale(2.2);
    opacity: 0;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --- CACHE MOBILE DOCK PANELS SUR DESKTOP --- */
@media (min-width: 1280px) {

  .mobile-dock-panel,
  .mobile-dock-panel--pass,
  .mobile-dock-panel--dashboard,
  .mobile-dock-panel--shop {
    display: none !important;
  }
}