/* G6M_BUNDLE_21 — 8 feuilles, ordre du document preserve */
/* ==== g6m-site-footer-canonical-v375.css ==== */
/* G6M_SITE_FOOTER_CANONICAL_V375 — extracted from site theme.css (SSoT) */
:root {
	--color-bg: #090909;
	--color-pink: #ff0b8b;
	--color-violet: #8d38ff;
	--color-cyan: #00d7ff;
	--color-yellow: #ffd500;
}
html#XF body .p-footer.g6m-p-footer--site-native {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
html#XF body .p-footer.g6m-p-footer--site-native > .p-footer-inner,
html#XF body .p-footer.g6m-p-footer--site-native .uix_extendedFooter {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
}
html#XF body .g6m-site-footer {
	display: block !important;
	visibility: visible !important;
	width: 100% !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
	-webkit-font-smoothing: antialiased !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal,
html#XF body .g6m-site-footer .g6m-footer-legal--premium,
html#XF body .g6m-site-footer .g6m-footer-legal__line,
html#XF body .g6m-site-footer .g6m-footer-heading,
html#XF body .g6m-site-footer .g6m-footer-link,
html#XF body .g6m-site-footer .g6m-site-footer__cookies,
html#XF body .g6m-site-footer .g6m-site-footer__cookies-link {
	font-family: Inter, Rajdhani, system-ui, sans-serif !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line--primary,
html#XF body .g6m-site-footer .g6m-footer-legal__version-badge,
html#XF body .g6m-site-footer .g6m-footer-heading {
	font-family: Rajdhani, Orbitron, Inter, system-ui, sans-serif !important;
}

/* Cookies pill — mirror g6m-site-fix-v315 with XF-safe specificity */
html#XF body .g6m-site-footer .g6m-site-footer__bottom > .mx-auto,
html#XF body .g6m-site-footer .g6m-site-footer__bottom > .max-w-7xl {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1rem !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__cookies {
	order: 2 !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 18px !important;
	width: fit-content !important;
	max-width: calc(100% - 1.5rem) !important;
	align-self: center !important;
	box-sizing: border-box !important;
	margin: 25px auto 0 !important;
	padding: 10px 22px !important;
	text-align: center !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	min-height: 39px !important;
	height: 39px !important;
	background: rgba(10, 10, 20, 0.45) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}
@media (max-width: 420px) {
	html#XF body .g6m-site-footer .g6m-site-footer__cookies {
		padding: 10px 16px !important;
		gap: 12px !important;
		height: 39px !important;
		min-height: 39px !important;
	}
}
html#XF body .g6m-site-footer .g6m-footer-legal {
	order: 1 !important;
	width: 100% !important;
	max-width: min(56rem, 100%) !important;
	font-size: 16px !important;
}
html#XF body .g6m-site-footer .site-logo {
	display: block !important;
	width: 200px !important;
	height: auto !important;
	max-width: 200px !important;
}

/* —— Tailwind utility polyfill (site footer.php uses these; forum has no Tailwind) —— */
html#XF body .g6m-site-footer.relative,
html#XF body .g6m-site-footer .relative { position: relative !important; }
html#XF body .g6m-site-footer.mt-auto { margin-top: auto !important; }
html#XF body .g6m-site-footer .z-\[2\] { z-index: 2 !important; }
html#XF body .g6m-site-footer .z-\[3\] { z-index: 3 !important; }
html#XF body .g6m-site-footer .mx-auto { margin-left: auto !important; margin-right: auto !important; }
html#XF body .g6m-site-footer .max-w-7xl { max-width: 80rem !important; width: 100% !important; box-sizing: border-box !important; }
html#XF body .g6m-site-footer .max-w-xs { max-width: 20rem !important; }
html#XF body .g6m-site-footer .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
html#XF body .g6m-site-footer .py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
html#XF body .g6m-site-footer .py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
html#XF body .g6m-site-footer .mb-4 { margin-bottom: 1rem !important; }
html#XF body .g6m-site-footer .text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
html#XF body .g6m-site-footer .leading-relaxed { line-height: 1.625 !important; }
html#XF body .g6m-site-footer .text-white\/85 { color: rgba(255, 255, 255, 0.85) !important; }
html#XF body .g6m-site-footer .grid { display: grid !important; }
html#XF body .g6m-site-footer .gap-10 { gap: 2.5rem !important; }
html#XF body .g6m-site-footer .space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem !important; }
html#XF body .g6m-site-footer .site-logo { display: block !important; height: auto !important; max-width: 200px !important; }

@media (min-width: 768px) {
	html#XF body .g6m-site-footer .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
	html#XF body .g6m-site-footer .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	html#XF body .g6m-site-footer .lg\:gap-8 { gap: 2rem !important; }
	html#XF body .g6m-site-footer .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
	html#XF body .g6m-site-footer .lg\:py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

/* Force scene metrics = site homepage (beat any forum leftover !important) */
html#XF body .g6m-site-footer .g6m-site-footer__body {
	min-height: clamp(300px, 36vw, 380px) !important;
	height: auto !important;
	max-height: none !important;
	overflow: hidden !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__scene {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	height: clamp(300px, 36vw, 380px) !important;
	min-height: clamp(300px, 36vw, 380px) !important;
	max-height: 380px !important;
	overflow: hidden !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__scene-img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: 72% 0% !important;
}
@media (min-width: 1280px) {
	html#XF body .g6m-site-footer .g6m-site-footer__body {
		min-height: 380px !important;
	}
	html#XF body .g6m-site-footer .g6m-site-footer__scene {
		height: 380px !important;
		min-height: 380px !important;
		max-height: 380px !important;
	}
}

/* ——— Site footer (mockup) ——— */
.g6m-site-footer {
    background-color: var(--color-bg);
}

.g6m-site-footer__border {
    height: 2px;
    background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-violet) 45%, var(--color-cyan) 100%);
    box-shadow: 0 0 14px rgba(255, 11, 139, 0.45), 0 0 24px rgba(0, 215, 255, 0.25);
}

.g6m-site-footer__body {
    position: relative;
    overflow: hidden;
    /* Must be >= scene height so bottom-anchored scene is not clipped */
    min-height: clamp(300px, 36vw, 380px);
}

.g6m-site-footer__scene {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(300px, 36vw, 380px);
    overflow: hidden;
    pointer-events: none;
}

/* G6M_FOOTER_SKYLINE_SOFTEN_V34 — calmer neon skyline */
.g6m-site-footer__scene::after {
    content: none;
    display: none;
}

.g6m-site-footer__scene-img {
    display: block;
    width: 100%;
    height: 100%;
    /* Fit existing footer box: slight de-zoom vs aggressive cover when possible,
       keep faces (top-right) fully inside the crop — image adapts, box does not. */
    object-fit: cover;
    object-position: 72% 0%;
    filter: none;
}

.g6m-site-footer__scene-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* ~40% black overlay for text readability — skyline/palms still visible */
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        linear-gradient(
            90deg,
            rgba(5, 4, 10, 0.35) 0%,
            rgba(5, 4, 10, 0.12) 22%,
            rgba(5, 4, 10, 0.05) 50%,
            rgba(5, 4, 10, 0.12) 78%,
            rgba(5, 4, 10, 0.35) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 4, 10, 0.45) 0%,
            rgba(5, 4, 10, 0.2) 28%,
            rgba(5, 4, 10, 0.18) 52%,
            rgba(5, 4, 10, 0.42) 78%,
            rgba(5, 4, 10, 0.88) 100%
        );
}

.g6m-site-footer__bottom {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    /* Solid black behind legal credits (no skyline under this strip) */
    background-color: #05060c;
    background-image: none;
}

.g6m-site-footer__bottom > .mx-auto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.g6m-site-footer__bottom > .mx-auto > p {
    width: 100%;
    margin: 0;
    text-align: center;
}

/* Legal panel HUD styles: g6m-footer-legal-premium-v241.css (linked from layout).
   Minimal fallbacks keep layout readable if the premium sheet fails to load. */
.g6m-footer-legal {
    max-width: min(44rem, 100%);
    margin: 0 auto;
    padding: 1.45rem 1.55rem 1.35rem;
    text-align: center;
    border-radius: 28px;
    border: 1px solid rgba(255, 11, 139, 0.28);
    background: #0b0b12;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.g6m-footer-legal__line {
    margin: 0.55rem auto 0;
    max-width: 36rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(198, 202, 216, 0.92);
}

.g6m-footer-legal__line--primary {
    font-family: Rajdhani, Orbitron, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.g6m-footer-legal__brand {
    background: linear-gradient(95deg, #ff0b8b, #8d38ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.g6m-footer-legal__line--muted {
    font-size: 0.74rem;
    color: rgba(168, 172, 188, 0.9);
}

.g6m-footer-legal__signature,
.g6m-footer-legal__credit,
.g6m-footer-legal__star {
    display: none !important;
}

.g6m-footer-legal__version {
    margin: 1.05rem 0 0;
    padding-top: 1.05rem;
}

.g6m-footer-legal__version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-family: Rajdhani, Orbitron, system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(10, 12, 18, 0.92);
    border: 1px solid rgba(0, 215, 255, 0.55);
}

.g6m-footer-legal__version-year {
    color: #ff4fa8;
}

.g6m-footer-legal--maintenance {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    max-width: none;
}

.g6m-footer-legal--minimal {
    max-width: 36rem;
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
}

.g6m-footer-heading {
    font-family: Rajdhani, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.g6m-footer-heading--pink {
    color: var(--color-pink);
    text-shadow: 0 0 16px rgba(255, 11, 139, 0.45);
}

.g6m-footer-heading--cyan {
    color: var(--color-cyan);
    text-shadow: 0 0 16px rgba(0, 215, 255, 0.4);
}

.g6m-footer-heading--yellow {
    color: var(--color-yellow);
    text-shadow: 0 0 16px rgba(255, 213, 0, 0.35);
}

.g6m-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    /* WCAG 2.2 SC 2.5.8 (Target Size Minimum, 24x24px) : ces liens de navigation
       mesuraient 19px de haut, mesure Playwright sur iPhone 13/Pixel 7/Galaxy S24.
       min-height seul, sans padding vertical : la hauteur de la boite cliquable
       augmente sans decaler la typographie ni l'espacement visuel du footer. */
    min-height: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.g6m-footer-link::after {
    content: '\203A';
    flex: 0 0 auto;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
    opacity: 1;
    transform: translateY(-0.02em);
    transition: transform 0.18s ease, opacity 0.18s ease;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.9);
}

.g6m-footer-link:hover,
.g6m-footer-link:focus {
    color: #fff;
    transform: translateX(3px);
}

.g6m-footer-link:hover::after,
.g6m-footer-link:focus::after {
    opacity: 1;
    transform: translate(2px, -0.02em);
}

.g6m-footer-links--pink .g6m-footer-link::after {
    color: #ff6eb8;
    text-shadow:
        0 0 8px rgba(255, 11, 139, 0.75),
        0 0 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.95);
}

.g6m-footer-links--cyan .g6m-footer-link::after {
    color: #5cefff;
    text-shadow:
        0 0 8px rgba(0, 215, 255, 0.7),
        0 0 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.95);
}

.g6m-footer-link__chevron {
    display: none;
}

.g6m-site-credit {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(160, 160, 176, 0.85);
}

.g6m-site-footer__bottom .g6m-site-credit {
    padding-top: 0;
}

.g6m-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(9, 9, 9, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.g6m-footer-social:hover {
    transform: translateY(-2px);
}

.g6m-footer-social--discord {
    border-color: rgba(141, 56, 255, 0.55);
    box-shadow: 0 0 14px rgba(141, 56, 255, 0.25);
}

.g6m-footer-social--twitter {
    border-color: rgba(255, 11, 139, 0.55);
    box-shadow: 0 0 14px rgba(255, 11, 139, 0.22);
}

.g6m-footer-social--youtube {
    border-color: rgba(255, 11, 139, 0.45);
    box-shadow: 0 0 14px rgba(255, 11, 139, 0.2);
}

.g6m-footer-social--instagram {
    border-color: rgba(255, 138, 0, 0.55);
    box-shadow: 0 0 14px rgba(255, 138, 0, 0.22);
}

.g6m-footer-newsletter__input {
    box-shadow: inset 0 0 12px rgba(141, 56, 255, 0.08);
}

.g6m-footer-newsletter__btn {
    box-shadow: 0 0 22px rgba(255, 11, 139, 0.45), 0 0 40px rgba(141, 56, 255, 0.2);
}

@media (min-width: 1280px) {
    .g6m-site-footer__body {
        min-height: 380px;
    }

    .g6m-site-footer__scene {
        height: 380px;
    }
}

/* —— Neutralize g6m-footer-credits-balance-v348 login overrides inside site footer —— */
html#XF body .g6m-site-footer .g6m-footer-legal,
html#XF body .g6m-site-footer .g6m-footer-legal--premium,
html#XF body[data-template="login"] .g6m-site-footer .g6m-footer-legal,
html#XF body[data-template="login"] .g6m-site-footer .g6m-footer-legal--premium,
html#XF body.template-login .g6m-site-footer .g6m-footer-legal {
	max-width: min(44rem, 100%) !important;
	width: 100% !important;
	padding: 28px 28px 24px !important;
	gap: 0 !important;
	justify-content: center !important;
	margin: 0 auto !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal,
html#XF body .g6m-site-footer .g6m-footer-legal--premium {
	font-size: 16px !important;
	line-height: 1.5 !important;
	padding: 28px 28px 24px !important;
	max-width: min(56rem, 100%) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	gap: 0 !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line {
	margin: 8.8px auto 0 !important;
	max-width: 36rem !important;
	font-size: 12.8px !important;
	line-height: 1.7 !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line--primary {
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: 0.1em !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line--muted {
	font-size: 11.84px !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__version {
	margin: 16.8px 0 0 !important;
	padding-top: 16.8px !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__version-badge {
	padding: 6.4px 17.6px !important;
	font-size: 11.2px !important;
	letter-spacing: 0.18em !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__cookies {
	margin: 25px auto 0 !important;
	padding: 10px 22px !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	min-height: 39px !important;
	box-sizing: border-box !important;
}

/* Rockstar Games — brand yellow (#ffd500) */
.g6m-footer-legal__rockstar,
html body .g6m-footer-legal__rockstar,
html#XF body .g6m-footer-legal__rockstar {
	color: var(--color-yellow, #ffd500) !important;
	font-weight: 700 !important;
	text-shadow: 0 0 10px rgba(255, 213, 0, 0.28) !important;
}

/* ==== g6m-footer-legal-premium-v241.css ==== */
/* G6M Footer Legal Premium V257
   Credits panel: Vice City skyline + dark glass overlay.
   Strip behind (.g6m-site-footer__bottom) stays solid black. */

.g6m-footer-legal,
.g6m-footer-legal--premium {
  --g6m-fl-pink: #ff0b8b;
  --g6m-fl-violet: #8d38ff;
  --g6m-fl-cyan: #00d7ff;
  --g6m-fl-bg: #05060c;
  --g6m-fl-skyline: url("/site/public/assets/img/footer/gta6modding-footer-legal-skyline.png");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(56rem, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 1.5rem;
  box-sizing: border-box;
  text-align: center;
  border-radius: 28px;
  border: 1px solid transparent;
  color: rgba(230, 232, 240, 0.94);
  background-color: var(--g6m-fl-bg);
  /* Skyline fond + ~40–55% black glass overlay (readable text) */
  background-image:
    linear-gradient(
      180deg,
      rgba(5, 6, 12, 0.72) 0%,
      rgba(5, 6, 12, 0.48) 42%,
      rgba(5, 6, 12, 0.78) 100%
    ),
    radial-gradient(120% 80% at 50% 110%, rgba(255, 11, 139, 0.18) 0%, transparent 55%),
    radial-gradient(90% 70% at 12% 85%, rgba(141, 56, 255, 0.12) 0%, transparent 50%),
    radial-gradient(90% 70% at 88% 85%, rgba(0, 215, 255, 0.12) 0%, transparent 50%),
    var(--g6m-fl-skyline);
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center bottom;
  background-repeat: no-repeat;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 11, 139, 0.1),
    0 0 32px rgba(0, 215, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Neon border pink → cyan */
.g6m-footer-legal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(110deg, var(--g6m-fl-pink) 0%, var(--g6m-fl-violet) 50%, var(--g6m-fl-cyan) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* Soft bottom veil so skyline stays atmospheric under text */
.g6m-footer-legal::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 11, 139, 0.22) 0%, transparent 70%);
}

.g6m-footer-legal > * {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.g6m-footer-legal__line {
  margin: 0.5rem auto 0;
  padding: 0;
  width: 100%;
  max-width: 38rem;
  font-size: 0.8rem;
  line-height: 1.65;
  text-align: center;
  color: rgba(210, 214, 228, 0.92);
}

.g6m-footer-legal__line:first-of-type,
.g6m-footer-legal__line--primary {
  margin-top: 0;
}

.g6m-footer-legal__line--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0;
  row-gap: 0.35em;
  width: 100%;
  max-width: 100%;
  font-family: Rajdhani, Orbitron, system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.g6m-footer-legal__line--primary .g6m-footer-legal__copy,
.g6m-footer-legal__line--primary .g6m-footer-legal__brand,
.g6m-footer-legal__line--primary .g6m-footer-legal__rights {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.g6m-footer-legal__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0 10px 0 0;
  border: 0;
  border-radius: 0;
  font-size: 1em;
  line-height: 0;
  color: #ffffff;
  filter:
    drop-shadow(0 0 6px rgba(0, 215, 255, 0.55))
    drop-shadow(0 0 10px rgba(255, 46, 166, 0.28));
  transition: color 220ms ease, filter 220ms ease, transform 220ms ease;
}

.g6m-footer-legal__copy-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none !important;
  stroke: currentColor !important;
}
.g6m-footer-legal__copy-icon *,
.g6m-footer-legal__copy svg * {
  fill: none !important;
  stroke: currentColor !important;
}

.g6m-footer-legal__line--primary .g6m-footer-legal__brand {
  margin-inline-end: 0.45em;
}

.g6m-footer-legal__gta {
  font-weight: 700;
  color: inherit;
}

.g6m-footer-legal__rockstar {
  color: #ffd500;
  font-weight: 700;
  background: none;
  border: none;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 213, 0, 0.28);
}

.g6m-footer-legal__line--primary:hover .g6m-footer-legal__copy,
.g6m-footer-legal__copy:hover {
  color: #7ef0ff;
  filter:
    drop-shadow(0 0 8px rgba(0, 215, 255, 0.85))
    drop-shadow(0 0 14px rgba(255, 46, 166, 0.45));
  transform: translateY(-0.5px);
}

@media (min-width: 640px) {
  .g6m-footer-legal__copy-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

.g6m-footer-legal__brand {
  color: #ff2ea6;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
  text-shadow:
    0 0 10px rgba(255, 11, 139, 0.85),
    0 0 20px rgba(255, 11, 139, 0.4);
}

.g6m-footer-legal__rights {
  color: #ffffff;
}

.g6m-footer-legal__line--muted {
  font-size: 0.74rem;
  color: rgba(188, 192, 208, 0.9);
}

/* Legacy signature/credit removed — keep hidden if any stale markup remains */
.g6m-footer-legal__signature,
.g6m-footer-legal__credit,
.g6m-footer-legal__star {
  display: none !important;
}

/* Separator: ──── 🌴 ──── (equal lines) */
.g6m-footer-legal__version {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 1.05rem auto 0;
  padding: 0;
  text-align: center;
}

.g6m-footer-legal__sep {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: min(18rem, 78%);
  margin: 0 auto 0.95rem;
  gap: 0.65rem;
}

.g6m-footer-legal__sep-line {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--g6m-fl-pink) 20%,
    var(--g6m-fl-violet) 50%,
    var(--g6m-fl-cyan) 80%,
    transparent 100%
  );
  opacity: 0.8;
}

.g6m-footer-legal__sep-line:first-child {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--g6m-fl-pink) 35%,
    var(--g6m-fl-violet) 100%
  );
}

.g6m-footer-legal__sep-line:last-child {
  background: linear-gradient(
    90deg,
    var(--g6m-fl-violet) 0%,
    var(--g6m-fl-cyan) 65%,
    transparent 100%
  );
}

.g6m-footer-legal__sep-palm {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 22V11M12 13c-4-2.5-7.5-2-10-.8C5 11.5 8 12.5 10.5 15M12 12c4-2.5 7.5-2 10-.8C19 11.5 16 12.5 13.5 15M12 10.5C8.5 6.5 9 2.5 10.2.8 9.6 4 11 7.5 13.5 10M12 10C15.5 6.5 15 2.5 13.8.8 14.4 4 13 7.5 10.5 10' stroke='%2300d7ff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(0, 215, 255, 0.7));
}

/* Version badge */
.g6m-footer-legal__version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto;
  padding: 0.42rem 1.2rem;
  min-height: 2rem;
  box-sizing: border-box;
  border-radius: 999px;
  font-family: Rajdhani, Orbitron, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  background: rgba(8, 9, 14, 0.92);
  border: 1px solid rgba(0, 215, 255, 0.4);
  box-shadow:
    0 0 12px rgba(0, 215, 255, 0.1),
    0 0 12px rgba(255, 11, 139, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.g6m-footer-legal__version-badge::before {
  content: none !important;
  display: none !important;
}

.g6m-footer-legal__version-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--g6m-fl-cyan);
  box-shadow: 0 0 6px rgba(0, 215, 255, 0.75);
}

.g6m-footer-legal__version-text {
  color: #ffffff;
  line-height: 1;
}

.g6m-footer-legal__version-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.g6m-footer-legal__version-year {
  color: #ff4fa8;
  line-height: 1;
}

/* Variants */
.g6m-footer-legal--maintenance {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: none;
}

.g6m-footer-legal--maintenance::before {
  display: none;
}

.g6m-footer-legal--maintenance .g6m-footer-legal__line--primary {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.g6m-footer-legal--maintenance .g6m-footer-legal__line {
  font-size: 0.66rem;
  line-height: 1.55;
}

.g6m-footer-legal--maintenance .g6m-footer-legal__version {
  margin-top: 0.65rem;
}

.g6m-footer-legal--maintenance .g6m-footer-legal__version-badge {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.8rem;
  min-height: 1.6rem;
}

.g6m-footer-legal--minimal {
  max-width: 36rem;
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 22px;
}

@media (max-width: 640px) {
  .g6m-footer-legal,
  .g6m-footer-legal--premium {
    border-radius: 22px;
    padding: 1.25rem 1rem 1.15rem;
  }

  .g6m-footer-legal__line--primary {
    letter-spacing: 0.06em;
  }

  .g6m-footer-legal__line {
    font-size: 0.74rem;
  }

  .g6m-footer-legal__sep {
    width: min(14rem, 86%);
    gap: 0.5rem;
  }

  .g6m-footer-legal__version-badge {
    letter-spacing: 0.12em;
    padding: 0.4rem 1rem;
  }
}

/* G6M_FOOTER_VERSION_DOT_V299
   Kill duplicate cyan ::before on version badge — keep only .version-dot */

html body .g6m-footer-legal__version-badge::before,
html body .g6m-forum-footer--v48 .g6m-footer-legal__version-badge::before,
html body .g6m-forum-footer .g6m-footer-legal__version-badge::before,
html body .p-footer .g6m-footer-legal__version-badge::before,
html body .g6m-footer-legal--premium .g6m-footer-legal__version-badge::before {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

/* Keep a single intentional status dot */
html body .g6m-footer-legal__version-dot {
	display: inline-block !important;
	width: 0.38rem !important;
	height: 0.38rem !important;
	border-radius: 999px !important;
	flex-shrink: 0 !important;
	background: #00d7ff !important;
	box-shadow: 0 0 6px rgba(0, 215, 255, 0.75) !important;
}

/* END G6M_FOOTER_VERSION_DOT_V299 */

/* ==== g6m-site-fix-v315.css ==== */
/* G6M_SITE_FIX_V315 — footer cookies + home stats (dist/app.css may be stale) */

.g6m-site-footer__bottom > .mx-auto {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
}

.g6m-site-footer__bottom > .mx-auto > p,
.g6m-site-footer__bottom > .mx-auto > .g6m-site-footer__cookies {
    order: 2;
}

/* Premium cookies pill — parity with forum footer */
.g6m-site-footer__cookies {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: fit-content !important;
    max-width: calc(100% - 1.5rem) !important;
    align-self: center !important;
    box-sizing: border-box !important;
    margin: 25px auto 0 !important;
    padding: 10px 22px !important;
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    background: rgba(10, 10, 20, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.g6m-site-footer__cookies-link {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease !important;
}

.g6m-site-footer__cookies-link:hover,
.g6m-site-footer__cookies-link:focus-visible {
    color: #00e5ff !important;
    text-decoration: none !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.45) !important;
    transform: translateY(-1px) !important;
}

.g6m-site-footer__cookies-sep {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 1px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden !important;
    background: linear-gradient(#ff2ea6, #00e5ff) !important;
    opacity: 0.6 !important;
    border-radius: 1px !important;
}

@media (max-width: 420px) {
    .g6m-site-footer__cookies {
        padding: 10px 16px !important;
        gap: 12px 18px !important;
    }
}

.g6m-site-footer__bottom > .mx-auto > .g6m-footer-legal,
.g6m-site-footer__bottom > .mx-auto > .g6m-footer-legal-wrap {
    order: 1;
    width: 100%;
    max-width: min(44rem, 100%);
}

@media (min-width: 1024px) {
    .g6m-stats-bar--unified {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
        align-items: stretch !important;
    }

    .g6m-stats-bar--unified .g6m-stat-bar {
        min-width: 0 !important;
        margin: 0 !important;
    }
}

.g6m-stats-bar--unified .g6m-stat-bar__row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
}

.g6m-stats-bar--unified .g6m-stat-bar__icon {
    flex: 0 0 auto !important;
}

.g6m-stats-bar--unified .g6m-stat-bar__text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* ==== g6m-login-layout-parity-v375.css ==== */
/* G6M_LOGIN_LAYOUT_PARITY_V375
   Login page must share the SAME page chrome as the site homepage.
   Strips auth-only overrides on footer / background / shell spacing.
   Form block styles remain in g6m-login-polish-v374.css (form.block only).
*/

/* —— Page shell: match site dark ground (no auth-only palm fill) —— */
html#XF[data-template="login"],
html#XF.template-login,
html body[data-template="login"],
html body.template-login,
html#XF[data-template="login_password"],
html#XF[data-template="login_two_step"] {
	--g6m375-parity: V375;
	background-color: #090909 !important;
}

html#XF body[data-template="login"],
html#XF body.template-login {
	background-color: #090909 !important;
	color: inherit;
}

html#XF body[data-template="login"] .p-pageWrapper,
html#XF body.template-login .p-pageWrapper,
html#XF body[data-template="login_password"] .p-pageWrapper,
html#XF body[data-template="login_two_step"] .p-pageWrapper {
	background-color: #090909 !important;
	background-image: none !important;
	background-attachment: scroll !important;
	filter: none !important;
	isolation: auto !important;
}

html#XF body[data-template="login"] .p-pageWrapper::before,
html#XF body[data-template="login"] .p-pageWrapper::after,
html#XF body.template-login .p-pageWrapper::before,
html#XF body.template-login .p-pageWrapper::after {
	content: none !important;
	display: none !important;
	background: none !important;
	opacity: 0 !important;
}

/* —— Body / main: do NOT invent auth-only margins/paddings on chrome —— */
html#XF body[data-template="login"] .p-body,
html#XF body.template-login .p-body {
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
	/* keep flex grow for sticky footer without changing footer metrics */
	flex: 1 0 auto !important;
}

html#XF body[data-template="login"] .p-body-inner,
html#XF body.template-login .p-body-inner {
	/* Form column only — do not touch footer widths */
	max-width: min(800px, calc(100vw - 24px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: transparent !important;
}

/* —— Footer: NEVER restyle site-native footer on login —— */
html#XF body[data-template="login"] .p-footer,
html#XF body.template-login .p-footer,
html#XF body[data-template="login"] .g6m-site-footer,
html#XF body.template-login .g6m-site-footer,
html#XF body[data-template="login"] .g6m-forum-footer,
html#XF body[data-template="login"] .g6m-p-footer--site-native {
	/* Kill auth overrides: let site footer CSS own metrics */
	background: unset !important;
	background-color: unset !important;
	background-image: unset !important;
	margin-top: unset !important;
	margin-bottom: unset !important;
	padding-top: unset !important;
	padding-bottom: unset !important;
	padding-left: unset !important;
	padding-right: unset !important;
	max-width: 100% !important;
	width: 100% !important;
	box-shadow: none !important;
	border: 0 !important;
	position: relative !important;
	z-index: 2 !important;
	flex: 0 0 auto !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

html#XF body[data-template="login"] .g6m-site-footer,
html#XF body.template-login .g6m-site-footer {
	background-color: var(--color-bg, #090909) !important;
}

html#XF body[data-template="login"] .g6m-site-footer__body,
html#XF body[data-template="login"] .g6m-site-footer__scene,
html#XF body[data-template="login"] .g6m-site-footer__scene-img,
html#XF body[data-template="login"] .g6m-site-footer__bottom,
html#XF body[data-template="login"] .g6m-site-footer__cookies,
html#XF body[data-template="login"] .g6m-footer-legal,
html#XF body[data-template="login"] .g6m-footer-heading,
html#XF body[data-template="login"] .g6m-footer-links,
html#XF body[data-template="login"] .g6m-footer-link {
	/* Do not override site metrics — visibility only */
	visibility: visible !important;
	opacity: 1 !important;
}

/* Hide stock XF footer chrome when site-native is present */
html#XF body .p-footer.g6m-p-footer--site-native > .p-footer-inner,
html#XF body .p-footer.g6m-p-footer--site-native .uix_extendedFooter {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* Guest CTA never on login */
html#XF body[data-template="login"] .g6m-forum-cta,
html#XF body.template-login .g6m-forum-cta {
	display: none !important;
}

/* END G6M_LOGIN_LAYOUT_PARITY_V375 */

/* ==== g6m-inline-p2-28-v701.css ==== */
/* Externalise (passe 2) — bloc inline #28 — position inchangee */
/* G6M_LOGIN_LAYOUT_PARITY_V375
   Login page must share the SAME page chrome as the site homepage.
   Strips auth-only overrides on footer / background / shell spacing.
   Form block styles remain in g6m-login-polish-v374.css (form.block only).
*/

/* —— Page shell: match site dark ground (no auth-only palm fill) —— */
html#XF[data-template="login"],
html#XF.template-login,
html body[data-template="login"],
html body.template-login,
html#XF[data-template="login_password"],
html#XF[data-template="login_two_step"] {
	--g6m375-parity: V375;
	background-color: #090909 !important;
}

html#XF body[data-template="login"],
html#XF body.template-login {
	background-color: #090909 !important;
	color: inherit;
}

html#XF body[data-template="login"] .p-pageWrapper,
html#XF body.template-login .p-pageWrapper,
html#XF body[data-template="login_password"] .p-pageWrapper,
html#XF body[data-template="login_two_step"] .p-pageWrapper {
	background-color: #090909 !important;
	background-image: none !important;
	background-attachment: scroll !important;
	filter: none !important;
	isolation: auto !important;
}

html#XF body[data-template="login"] .p-pageWrapper::before,
html#XF body[data-template="login"] .p-pageWrapper::after,
html#XF body.template-login .p-pageWrapper::before,
html#XF body.template-login .p-pageWrapper::after {
	content: none !important;
	display: none !important;
	background: none !important;
	opacity: 0 !important;
}

/* —— Body / main: do NOT invent auth-only margins/paddings on chrome —— */
html#XF body[data-template="login"] .p-body,
html#XF body.template-login .p-body {
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
	/* keep flex grow for sticky footer without changing footer metrics */
	flex: 1 0 auto !important;
}

html#XF body[data-template="login"] .p-body-inner,
html#XF body.template-login .p-body-inner {
	/* Form column only — do not touch footer widths */
	max-width: min(800px, calc(100vw - 24px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	background: transparent !important;
}

/* —— Footer: NEVER restyle site-native footer on login —— */
html#XF body[data-template="login"] .p-footer,
html#XF body.template-login .p-footer,
html#XF body[data-template="login"] .g6m-site-footer,
html#XF body.template-login .g6m-site-footer,
html#XF body[data-template="login"] .g6m-forum-footer,
html#XF body[data-template="login"] .g6m-p-footer--site-native {
	/* Kill auth overrides: let site footer CSS own metrics */
	background: unset !important;
	background-color: unset !important;
	background-image: unset !important;
	margin-top: unset !important;
	margin-bottom: unset !important;
	padding-top: unset !important;
	padding-bottom: unset !important;
	padding-left: unset !important;
	padding-right: unset !important;
	max-width: 100% !important;
	width: 100% !important;
	box-shadow: none !important;
	border: 0 !important;
	position: relative !important;
	z-index: 2 !important;
	flex: 0 0 auto !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

html#XF body[data-template="login"] .g6m-site-footer,
html#XF body.template-login .g6m-site-footer {
	background-color: var(--color-bg, #090909) !important;
}

html#XF body[data-template="login"] .g6m-site-footer__body,
html#XF body[data-template="login"] .g6m-site-footer__scene,
html#XF body[data-template="login"] .g6m-site-footer__scene-img,
html#XF body[data-template="login"] .g6m-site-footer__bottom,
html#XF body[data-template="login"] .g6m-site-footer__cookies,
html#XF body[data-template="login"] .g6m-footer-legal,
html#XF body[data-template="login"] .g6m-footer-heading,
html#XF body[data-template="login"] .g6m-footer-links,
html#XF body[data-template="login"] .g6m-footer-link {
	/* Do not override site metrics — visibility only */
	visibility: visible !important;
	opacity: 1 !important;
}

/* Hide stock XF footer chrome when site-native is present */
html#XF body .p-footer.g6m-p-footer--site-native > .p-footer-inner,
html#XF body .p-footer.g6m-p-footer--site-native .uix_extendedFooter {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
}

/* Guest CTA never on login */
html#XF body[data-template="login"] .g6m-forum-cta,
html#XF body.template-login .g6m-forum-cta {
	display: none !important;
}

/* END G6M_LOGIN_LAYOUT_PARITY_V375 */

/* ==== g6m-inline-37-v700.css ==== */
/* Externalise depuis la modification #56, bloc inline #37 — position et ordre de cascade inchanges */
/* G6M_SITE_FOOTER_CANONICAL_V375 — extracted from site theme.css (SSoT) */
:root {
	--color-bg: #090909;
	--color-pink: #ff0b8b;
	--color-violet: #8d38ff;
	--color-cyan: #00d7ff;
	--color-yellow: #ffd500;
}
html#XF body .p-footer.g6m-p-footer--site-native {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
html#XF body .p-footer.g6m-p-footer--site-native > .p-footer-inner,
html#XF body .p-footer.g6m-p-footer--site-native .uix_extendedFooter {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
}
html#XF body .g6m-site-footer {
	display: block !important;
	visibility: visible !important;
	width: 100% !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
	-webkit-font-smoothing: antialiased !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal,
html#XF body .g6m-site-footer .g6m-footer-legal--premium,
html#XF body .g6m-site-footer .g6m-footer-legal__line,
html#XF body .g6m-site-footer .g6m-footer-heading,
html#XF body .g6m-site-footer .g6m-footer-link,
html#XF body .g6m-site-footer .g6m-site-footer__cookies,
html#XF body .g6m-site-footer .g6m-site-footer__cookies-link {
	font-family: Inter, Rajdhani, system-ui, sans-serif !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line--primary,
html#XF body .g6m-site-footer .g6m-footer-legal__version-badge,
html#XF body .g6m-site-footer .g6m-footer-heading {
	font-family: Rajdhani, Orbitron, Inter, system-ui, sans-serif !important;
}

/* Cookies pill — mirror g6m-site-fix-v315 with XF-safe specificity */
html#XF body .g6m-site-footer .g6m-site-footer__bottom > .mx-auto,
html#XF body .g6m-site-footer .g6m-site-footer__bottom > .max-w-7xl {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1rem !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__cookies {
	order: 2 !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 18px !important;
	width: fit-content !important;
	max-width: calc(100% - 1.5rem) !important;
	align-self: center !important;
	box-sizing: border-box !important;
	margin: 25px auto 0 !important;
	padding: 10px 22px !important;
	text-align: center !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	min-height: 39px !important;
	height: 39px !important;
	background: rgba(10, 10, 20, 0.45) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}
@media (max-width: 420px) {
	html#XF body .g6m-site-footer .g6m-site-footer__cookies {
		padding: 10px 16px !important;
		gap: 12px !important;
		height: 39px !important;
		min-height: 39px !important;
	}
}
html#XF body .g6m-site-footer .g6m-footer-legal {
	order: 1 !important;
	width: 100% !important;
	max-width: min(56rem, 100%) !important;
	font-size: 16px !important;
}
html#XF body .g6m-site-footer .site-logo {
	display: block !important;
	width: 200px !important;
	height: auto !important;
	max-width: 200px !important;
}

/* —— Tailwind utility polyfill (site footer.php uses these; forum has no Tailwind) —— */
html#XF body .g6m-site-footer.relative,
html#XF body .g6m-site-footer .relative { position: relative !important; }
html#XF body .g6m-site-footer.mt-auto { margin-top: auto !important; }
html#XF body .g6m-site-footer .z-\[2\] { z-index: 2 !important; }
html#XF body .g6m-site-footer .z-\[3\] { z-index: 3 !important; }
html#XF body .g6m-site-footer .mx-auto { margin-left: auto !important; margin-right: auto !important; }
html#XF body .g6m-site-footer .max-w-7xl { max-width: 80rem !important; width: 100% !important; box-sizing: border-box !important; }
html#XF body .g6m-site-footer .max-w-xs { max-width: 20rem !important; }
html#XF body .g6m-site-footer .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
html#XF body .g6m-site-footer .py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
html#XF body .g6m-site-footer .py-6 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
html#XF body .g6m-site-footer .mb-4 { margin-bottom: 1rem !important; }
html#XF body .g6m-site-footer .text-sm { font-size: 0.875rem !important; line-height: 1.25rem !important; }
html#XF body .g6m-site-footer .leading-relaxed { line-height: 1.625 !important; }
html#XF body .g6m-site-footer .text-white\/85 { color: rgba(255, 255, 255, 0.85) !important; }
html#XF body .g6m-site-footer .grid { display: grid !important; }
html#XF body .g6m-site-footer .gap-10 { gap: 2.5rem !important; }
html#XF body .g6m-site-footer .space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem !important; }
html#XF body .g6m-site-footer .site-logo { display: block !important; height: auto !important; max-width: 200px !important; }

@media (min-width: 768px) {
	html#XF body .g6m-site-footer .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
	html#XF body .g6m-site-footer .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	html#XF body .g6m-site-footer .lg\:gap-8 { gap: 2rem !important; }
	html#XF body .g6m-site-footer .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
	html#XF body .g6m-site-footer .lg\:py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

/* Force scene metrics = site homepage (beat any forum leftover !important) */
html#XF body .g6m-site-footer .g6m-site-footer__body {
	min-height: clamp(300px, 36vw, 380px) !important;
	height: auto !important;
	max-height: none !important;
	overflow: hidden !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__scene {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	height: clamp(300px, 36vw, 380px) !important;
	min-height: clamp(300px, 36vw, 380px) !important;
	max-height: 380px !important;
	overflow: hidden !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__scene-img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: 72% 0% !important;
}
@media (min-width: 1280px) {
	html#XF body .g6m-site-footer .g6m-site-footer__body {
		min-height: 380px !important;
	}
	html#XF body .g6m-site-footer .g6m-site-footer__scene {
		height: 380px !important;
		min-height: 380px !important;
		max-height: 380px !important;
	}
}

/* ——— Site footer (mockup) ——— */
.g6m-site-footer {
    background-color: var(--color-bg);
}

.g6m-site-footer__border {
    height: 2px;
    background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-violet) 45%, var(--color-cyan) 100%);
    box-shadow: 0 0 14px rgba(255, 11, 139, 0.45), 0 0 24px rgba(0, 215, 255, 0.25);
}

.g6m-site-footer__body {
    position: relative;
    overflow: hidden;
    /* Must be >= scene height so bottom-anchored scene is not clipped */
    min-height: clamp(300px, 36vw, 380px);
}

.g6m-site-footer__scene {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(300px, 36vw, 380px);
    overflow: hidden;
    pointer-events: none;
}

/* G6M_FOOTER_SKYLINE_SOFTEN_V34 — calmer neon skyline */
.g6m-site-footer__scene::after {
    content: none;
    display: none;
}

.g6m-site-footer__scene-img {
    display: block;
    width: 100%;
    height: 100%;
    /* Fit existing footer box: slight de-zoom vs aggressive cover when possible,
       keep faces (top-right) fully inside the crop — image adapts, box does not. */
    object-fit: cover;
    object-position: 72% 0%;
    filter: none;
}

.g6m-site-footer__scene-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    /* ~40% black overlay for text readability — skyline/palms still visible */
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        linear-gradient(
            90deg,
            rgba(5, 4, 10, 0.35) 0%,
            rgba(5, 4, 10, 0.12) 22%,
            rgba(5, 4, 10, 0.05) 50%,
            rgba(5, 4, 10, 0.12) 78%,
            rgba(5, 4, 10, 0.35) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 4, 10, 0.45) 0%,
            rgba(5, 4, 10, 0.2) 28%,
            rgba(5, 4, 10, 0.18) 52%,
            rgba(5, 4, 10, 0.42) 78%,
            rgba(5, 4, 10, 0.88) 100%
        );
}

.g6m-site-footer__bottom {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    /* Solid black behind legal credits (no skyline under this strip) */
    background-color: #05060c;
    background-image: none;
}

.g6m-site-footer__bottom > .mx-auto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.g6m-site-footer__bottom > .mx-auto > p {
    width: 100%;
    margin: 0;
    text-align: center;
}

/* Legal panel HUD styles: g6m-footer-legal-premium-v241.css (linked from layout).
   Minimal fallbacks keep layout readable if the premium sheet fails to load. */
.g6m-footer-legal {
    max-width: min(44rem, 100%);
    margin: 0 auto;
    padding: 1.45rem 1.55rem 1.35rem;
    text-align: center;
    border-radius: 28px;
    border: 1px solid rgba(255, 11, 139, 0.28);
    background: #0b0b12;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.g6m-footer-legal__line {
    margin: 0.55rem auto 0;
    max-width: 36rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(198, 202, 216, 0.92);
}

.g6m-footer-legal__line--primary {
    font-family: Rajdhani, Orbitron, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
}

.g6m-footer-legal__brand {
    background: linear-gradient(95deg, #ff0b8b, #8d38ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.g6m-footer-legal__line--muted {
    font-size: 0.74rem;
    color: rgba(168, 172, 188, 0.9);
}

.g6m-footer-legal__signature,
.g6m-footer-legal__credit,
.g6m-footer-legal__star {
    display: none !important;
}

.g6m-footer-legal__version {
    margin: 1.05rem 0 0;
    padding-top: 1.05rem;
}

.g6m-footer-legal__version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    font-family: Rajdhani, Orbitron, system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(10, 12, 18, 0.92);
    border: 1px solid rgba(0, 215, 255, 0.55);
}

.g6m-footer-legal__version-year {
    color: #ff4fa8;
}

.g6m-footer-legal--maintenance {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    max-width: none;
}

.g6m-footer-legal--minimal {
    max-width: 36rem;
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
}

.g6m-footer-heading {
    font-family: Rajdhani, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.g6m-footer-heading--pink {
    color: var(--color-pink);
    text-shadow: 0 0 16px rgba(255, 11, 139, 0.45);
}

.g6m-footer-heading--cyan {
    color: var(--color-cyan);
    text-shadow: 0 0 16px rgba(0, 215, 255, 0.4);
}

.g6m-footer-heading--yellow {
    color: var(--color-yellow);
    text-shadow: 0 0 16px rgba(255, 213, 0, 0.35);
}

.g6m-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.g6m-footer-link::after {
    content: '\203A';
    flex: 0 0 auto;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1;
    opacity: 1;
    transform: translateY(-0.02em);
    transition: transform 0.18s ease, opacity 0.18s ease;
    text-shadow:
        0 0 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.9);
}

.g6m-footer-link:hover,
.g6m-footer-link:focus {
    color: #fff;
    transform: translateX(3px);
}

.g6m-footer-link:hover::after,
.g6m-footer-link:focus::after {
    opacity: 1;
    transform: translate(2px, -0.02em);
}

.g6m-footer-links--pink .g6m-footer-link::after {
    color: #ff6eb8;
    text-shadow:
        0 0 8px rgba(255, 11, 139, 0.75),
        0 0 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.95);
}

.g6m-footer-links--cyan .g6m-footer-link::after {
    color: #5cefff;
    text-shadow:
        0 0 8px rgba(0, 215, 255, 0.7),
        0 0 6px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.95);
}

.g6m-footer-link__chevron {
    display: none;
}

.g6m-site-credit {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(160, 160, 176, 0.85);
}

.g6m-site-footer__bottom .g6m-site-credit {
    padding-top: 0;
}

.g6m-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(9, 9, 9, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.g6m-footer-social:hover {
    transform: translateY(-2px);
}

.g6m-footer-social--discord {
    border-color: rgba(141, 56, 255, 0.55);
    box-shadow: 0 0 14px rgba(141, 56, 255, 0.25);
}

.g6m-footer-social--twitter {
    border-color: rgba(255, 11, 139, 0.55);
    box-shadow: 0 0 14px rgba(255, 11, 139, 0.22);
}

.g6m-footer-social--youtube {
    border-color: rgba(255, 11, 139, 0.45);
    box-shadow: 0 0 14px rgba(255, 11, 139, 0.2);
}

.g6m-footer-social--instagram {
    border-color: rgba(255, 138, 0, 0.55);
    box-shadow: 0 0 14px rgba(255, 138, 0, 0.22);
}

.g6m-footer-newsletter__input {
    box-shadow: inset 0 0 12px rgba(141, 56, 255, 0.08);
}

.g6m-footer-newsletter__btn {
    box-shadow: 0 0 22px rgba(255, 11, 139, 0.45), 0 0 40px rgba(141, 56, 255, 0.2);
}

@media (min-width: 1280px) {
    .g6m-site-footer__body {
        min-height: 380px;
    }

    .g6m-site-footer__scene {
        height: 380px;
    }
}

/* —— Neutralize g6m-footer-credits-balance-v348 login overrides inside site footer —— */
html#XF body .g6m-site-footer .g6m-footer-legal,
html#XF body .g6m-site-footer .g6m-footer-legal--premium,
html#XF body[data-template="login"] .g6m-site-footer .g6m-footer-legal,
html#XF body[data-template="login"] .g6m-site-footer .g6m-footer-legal--premium,
html#XF body.template-login .g6m-site-footer .g6m-footer-legal {
	max-width: min(44rem, 100%) !important;
	width: 100% !important;
	padding: 28px 28px 24px !important;
	gap: 0 !important;
	justify-content: center !important;
	margin: 0 auto !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal,
html#XF body .g6m-site-footer .g6m-footer-legal--premium {
	font-size: 16px !important;
	line-height: 1.5 !important;
	padding: 28px 28px 24px !important;
	max-width: min(56rem, 100%) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	gap: 0 !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line {
	margin: 8.8px auto 0 !important;
	max-width: 36rem !important;
	font-size: 12.8px !important;
	line-height: 1.7 !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line--primary {
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: 0.1em !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__line--muted {
	font-size: 11.84px !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__version {
	margin: 16.8px 0 0 !important;
	padding-top: 16.8px !important;
}
html#XF body .g6m-site-footer .g6m-footer-legal__version-badge {
	padding: 6.4px 17.6px !important;
	font-size: 11.2px !important;
	letter-spacing: 0.18em !important;
}
html#XF body .g6m-site-footer .g6m-site-footer__cookies {
	margin: 25px auto 0 !important;
	padding: 10px 22px !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	min-height: 39px !important;
	box-sizing: border-box !important;
}

/* ==== g6m-chat-discord-v377.css ==== */
/* G6M_CHAT_DISCORD_V377
   Discord-like Siropu Chat: fixed pane height, internal message scroll,
   sticky editor, equal-height members column. Keeps GTA6Modding look.
   Does NOT touch addon PHP core.
*/

:root {
	--g6m-chat-discord: V377;
	--g6m-chat-pane-h: min(560px, 58vh);
	--g6m-chat-msg-h: min(420px, 46vh);
	--g6m-chat-users-h: var(--g6m-chat-msg-h);
}

/* Shell: do not let the whole chat grow with message count */
html body #siropuChat,
html body .siropuChatAboveForumList,
html body .block[data-widget-key="siropu_chat"],
html body .block[data-widget-definition="siropu_chat"],
html[data-logged-in="true"] #siropuChat,
html[data-logged-in="true"] .siropuChatAboveForumList {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: none !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

html body #siropuChat > .block-container,
html body .siropuChatAboveForumList > .block-container,
html body .block[data-widget-key="siropu_chat"] > .block-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: calc(var(--g6m-chat-pane-h) + 180px) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

html body #siropuChat #siropuChatHeader,
html body #siropuChat #siropuChatTabs,
html body #siropuChat #siropuChatEditor,
html body #siropuChat .block-footer {
	flex: 0 0 auto !important;
}

/* Content row: messages + users — fixed height, independent scroll */
html body #siropuChat #siropuChatContent,
html body #siropuChat .siropuChatContent {
	display: block !important;
	position: relative !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	height: var(--g6m-chat-msg-h) !important;
	min-height: var(--g6m-chat-msg-h) !important;
	max-height: var(--g6m-chat-msg-h) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	clear: both !important;
}

/* Messages pane — Discord scroll
   CRITICAL: must be display:block (NOT flex). Flex+fixed height makes
   scrollHeight === clientHeight so the pane never scrolls internally.
   Also beat premium [style*="display: block"] flex override. */
html body #siropuChat .siropuChatMessages,
html body #siropuChat .siropuChatRoom.siropuChatMessages,
html body #siropuChat .siropuChatConversation.siropuChatMessages,
html body #siropuChat ul.siropuChatMessages,
html body #siropuChat .siropuChatMessages[style*="display: block"],
html body #siropuChat .siropuChatMessages[style*="display:block"],
html body #siropuChat .siropuChatRoom.siropuChatMessages[style*="display: block"],
html body #siropuChat .siropuChatRoom.siropuChatMessages[style*="display:block"],
html body #siropuChat .siropuChatConversation.siropuChatMessages[style*="display: block"],
html body #siropuChat .siropuChatConversation.siropuChatMessages[style*="display:block"],
html[data-logged-in="true"] #siropuChat .siropuChatMessages,
html[data-logged-in="true"] #siropuChat .siropuChatMessages[style*="display: block"],
html[data-logged-in="true"] #siropuChat .siropuChatMessages[style*="display:block"] {
	display: block !important;
	flex-direction: unset !important;
	flex-wrap: unset !important;
	align-items: unset !important;
	justify-content: unset !important;
	box-sizing: border-box !important;
	height: var(--g6m-chat-msg-h) !important;
	min-height: var(--g6m-chat-msg-h) !important;
	max-height: var(--g6m-chat-msg-h) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
	-webkit-overflow-scrolling: touch !important;
	/* instant scroll — smooth breaks programmatic scrollTop in some engines */
	scroll-behavior: auto !important;
	scrollbar-gutter: stable !important;
	scrollbar-width: thin !important;
	scrollbar-color: rgba(255, 11, 139, 0.55) rgba(255, 255, 255, 0.06) !important;
}

/* Keep each message in normal flow so scrollHeight grows */
html body #siropuChat .siropuChatMessages > li,
html body #siropuChat .siropuChatMessages > .siropuChatMessageRow,
html body #siropuChat ul.siropuChatMessages > li {
	flex: none !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	position: relative !important;
	float: none !important;
}

html body #siropuChat .siropuChatMessages::-webkit-scrollbar,
html body #siropuChat .siropuChatUsers::-webkit-scrollbar {
	width: 8px !important;
}
html body #siropuChat .siropuChatMessages::-webkit-scrollbar-thumb,
html body #siropuChat .siropuChatUsers::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #ff0b8b, #8d38ff) !important;
	border-radius: 999px !important;
}
html body #siropuChat .siropuChatMessages::-webkit-scrollbar-track,
html body #siropuChat .siropuChatUsers::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04) !important;
}

/* Users column — same height as messages */
html body #siropuChat .siropuChatUsers,
html[data-logged-in="true"] #siropuChat .siropuChatUsers {
	box-sizing: border-box !important;
	height: var(--g6m-chat-users-h) !important;
	min-height: var(--g6m-chat-users-h) !important;
	max-height: var(--g6m-chat-users-h) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
}

/* Editor always visible under the fixed pane */
html body #siropuChat #siropuChatEditor,
html body #siropuChat .siropuChatEditor,
html body #siropuChat .block-footer {
	position: relative !important;
	z-index: 3 !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
	float: none !important;
	margin-top: 0 !important;
}

/* ——— Toolbar: show ALL native buttons (undo g6m-chat-tool-hide) ——— */
html body #siropuChat #siropuChatEditor .fr-toolbar,
html body #siropuChat #siropuChatEditor .fr-toolbar.fr-top,
html body #siropuChat #siropuChatEditor .editorToolbar {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 4px !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	max-height: none !important;
	height: auto !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn,
html body #siropuChat #siropuChatEditor .fr-btn-grp,
html body #siropuChat #siropuChatEditor .fr-btn-grp > button,
html body #siropuChat #siropuChatEditor .editorToolbar .button,
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn.g6m-chat-tool-hide,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn.g6m-chat-tool-hide {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	width: auto !important;
	min-width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
}

/* Kill any rule that collapses toolbar groups */
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn-grp {
	display: inline-flex !important;
	flex-wrap: wrap !important;
	visibility: visible !important;
}

@media (max-width: 900px) {
	:root {
		--g6m-chat-pane-h: min(640px, 70vh);
		--g6m-chat-msg-h: min(320px, 42vh);
		--g6m-chat-users-h: 140px;
	}
	html body #siropuChat #siropuChatContent,
	html body #siropuChat .siropuChatContent {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}
	html body #siropuChat .siropuChatUsers {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		height: var(--g6m-chat-users-h) !important;
		min-height: var(--g6m-chat-users-h) !important;
		max-height: var(--g6m-chat-users-h) !important;
	}
	html body #siropuChat .siropuChatMessages {
		margin-right: 0 !important;
		width: 100% !important;
		height: var(--g6m-chat-msg-h) !important;
		min-height: var(--g6m-chat-msg-h) !important;
		max-height: var(--g6m-chat-msg-h) !important;
	}
	html body #siropuChat > .block-container {
		max-height: none !important;
	}
}

@media (max-width: 480px) {
	:root {
		--g6m-chat-msg-h: min(280px, 40vh);
		--g6m-chat-users-h: 120px;
	}
}

/* END G6M_CHAT_DISCORD_V377 */

/* ==== g6m-inline-38-v700.css ==== */
/* Externalise depuis la modification #56, bloc inline #38 — position et ordre de cascade inchanges */

/* G6M_CHAT_DISCORD_V377
   Discord-like Siropu Chat: fixed pane height, internal message scroll,
   sticky editor, equal-height members column. Keeps GTA6Modding look.
   Does NOT touch addon PHP core.
*/

:root {
	--g6m-chat-discord: V377;
	--g6m-chat-pane-h: min(560px, 58vh);
	--g6m-chat-msg-h: min(420px, 46vh);
	--g6m-chat-users-h: var(--g6m-chat-msg-h);
}

/* Shell: do not let the whole chat grow with message count */
html body #siropuChat,
html body .siropuChatAboveForumList,
html body .block[data-widget-key="siropu_chat"],
html body .block[data-widget-definition="siropu_chat"],
html[data-logged-in="true"] #siropuChat,
html[data-logged-in="true"] .siropuChatAboveForumList {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: none !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

html body #siropuChat > .block-container,
html body .siropuChatAboveForumList > .block-container,
html body .block[data-widget-key="siropu_chat"] > .block-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	max-height: calc(var(--g6m-chat-pane-h) + 180px) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

html body #siropuChat #siropuChatHeader,
html body #siropuChat #siropuChatTabs,
html body #siropuChat #siropuChatEditor,
html body #siropuChat .block-footer {
	flex: 0 0 auto !important;
}

/* Content row: messages + users — fixed height, independent scroll */
html body #siropuChat #siropuChatContent,
html body #siropuChat .siropuChatContent {
	display: block !important;
	position: relative !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	height: var(--g6m-chat-msg-h) !important;
	min-height: var(--g6m-chat-msg-h) !important;
	max-height: var(--g6m-chat-msg-h) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	clear: both !important;
}

/* Messages pane — Discord scroll
   CRITICAL: must be display:block (NOT flex). Flex+fixed height makes
   scrollHeight === clientHeight so the pane never scrolls internally.
   Also beat premium [style*="display: block"] flex override. */
html body #siropuChat .siropuChatMessages,
html body #siropuChat .siropuChatRoom.siropuChatMessages,
html body #siropuChat .siropuChatConversation.siropuChatMessages,
html body #siropuChat ul.siropuChatMessages,
html body #siropuChat .siropuChatMessages[style*="display: block"],
html body #siropuChat .siropuChatMessages[style*="display:block"],
html body #siropuChat .siropuChatRoom.siropuChatMessages[style*="display: block"],
html body #siropuChat .siropuChatRoom.siropuChatMessages[style*="display:block"],
html body #siropuChat .siropuChatConversation.siropuChatMessages[style*="display: block"],
html body #siropuChat .siropuChatConversation.siropuChatMessages[style*="display:block"],
html[data-logged-in="true"] #siropuChat .siropuChatMessages,
html[data-logged-in="true"] #siropuChat .siropuChatMessages[style*="display: block"],
html[data-logged-in="true"] #siropuChat .siropuChatMessages[style*="display:block"] {
	display: block !important;
	flex-direction: unset !important;
	flex-wrap: unset !important;
	align-items: unset !important;
	justify-content: unset !important;
	box-sizing: border-box !important;
	height: var(--g6m-chat-msg-h) !important;
	min-height: var(--g6m-chat-msg-h) !important;
	max-height: var(--g6m-chat-msg-h) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
	-webkit-overflow-scrolling: touch !important;
	/* instant scroll — smooth breaks programmatic scrollTop in some engines */
	scroll-behavior: auto !important;
	scrollbar-gutter: stable !important;
	scrollbar-width: thin !important;
	scrollbar-color: rgba(255, 11, 139, 0.55) rgba(255, 255, 255, 0.06) !important;
}

/* Keep each message in normal flow so scrollHeight grows */
html body #siropuChat .siropuChatMessages > li,
html body #siropuChat .siropuChatMessages > .siropuChatMessageRow,
html body #siropuChat ul.siropuChatMessages > li {
	flex: none !important;
	flex-shrink: 0 !important;
	flex-grow: 0 !important;
	position: relative !important;
	float: none !important;
}

html body #siropuChat .siropuChatMessages::-webkit-scrollbar,
html body #siropuChat .siropuChatUsers::-webkit-scrollbar {
	width: 8px !important;
}
html body #siropuChat .siropuChatMessages::-webkit-scrollbar-thumb,
html body #siropuChat .siropuChatUsers::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #ff0b8b, #8d38ff) !important;
	border-radius: 999px !important;
}
html body #siropuChat .siropuChatMessages::-webkit-scrollbar-track,
html body #siropuChat .siropuChatUsers::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.04) !important;
}

/* Users column — same height as messages */
html body #siropuChat .siropuChatUsers,
html[data-logged-in="true"] #siropuChat .siropuChatUsers {
	box-sizing: border-box !important;
	height: var(--g6m-chat-users-h) !important;
	min-height: var(--g6m-chat-users-h) !important;
	max-height: var(--g6m-chat-users-h) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
}

/* Editor always visible under the fixed pane */
html body #siropuChat #siropuChatEditor,
html body #siropuChat .siropuChatEditor,
html body #siropuChat .block-footer {
	position: relative !important;
	z-index: 3 !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: both !important;
	float: none !important;
	margin-top: 0 !important;
}

/* ——— Toolbar: show ALL native buttons (undo g6m-chat-tool-hide) ——— */
html body #siropuChat #siropuChatEditor .fr-toolbar,
html body #siropuChat #siropuChatEditor .fr-toolbar.fr-top,
html body #siropuChat #siropuChatEditor .editorToolbar {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 4px !important;
	visibility: visible !important;
	opacity: 1 !important;
	overflow: visible !important;
	max-height: none !important;
	height: auto !important;
}

html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn,
html body #siropuChat #siropuChatEditor .fr-btn-grp,
html body #siropuChat #siropuChatEditor .fr-btn-grp > button,
html body #siropuChat #siropuChatEditor .editorToolbar .button,
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn.g6m-chat-tool-hide,
html body #siropuChat #siropuChatEditor .fr-command.fr-btn.g6m-chat-tool-hide {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	width: auto !important;
	min-width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
}

/* Kill any rule that collapses toolbar groups */
html body #siropuChat #siropuChatEditor .fr-toolbar .fr-btn-grp {
	display: inline-flex !important;
	flex-wrap: wrap !important;
	visibility: visible !important;
}

@media (max-width: 900px) {
	:root {
		--g6m-chat-pane-h: min(640px, 70vh);
		--g6m-chat-msg-h: min(320px, 42vh);
		--g6m-chat-users-h: 140px;
	}
	html body #siropuChat #siropuChatContent,
	html body #siropuChat .siropuChatContent {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}
	html body #siropuChat .siropuChatUsers {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		height: var(--g6m-chat-users-h) !important;
		min-height: var(--g6m-chat-users-h) !important;
		max-height: var(--g6m-chat-users-h) !important;
	}
	html body #siropuChat .siropuChatMessages {
		margin-right: 0 !important;
		width: 100% !important;
		height: var(--g6m-chat-msg-h) !important;
		min-height: var(--g6m-chat-msg-h) !important;
		max-height: var(--g6m-chat-msg-h) !important;
	}
	html body #siropuChat > .block-container {
		max-height: none !important;
	}
}

@media (max-width: 480px) {
	:root {
		--g6m-chat-msg-h: min(280px, 40vh);
		--g6m-chat-users-h: 120px;
	}
}

/* END G6M_CHAT_DISCORD_V377 */
