/* public/assets/css/custom.css */
/* V2.1 - Ajout styles Premium Avatar (Header & Mobile) */

@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-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;
}

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;}

html.modal-open {
  overflow: hidden !important;
}

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: var(--primary-gradient); 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: all 0.3s ease; position: relative; overflow: hidden; }
.neu-button:hover{ transform: translateY(-2px); 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-box-inset { background: var(--primary-gradient); box-shadow: inset 6px 6px 12px var(--neu-shadow-dark), inset -6px -6px 12px var(--neu-shadow-light); }
.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 { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.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: var(--primary-light); 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-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 .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 (min-width: 1280px) { .mobile-bottom-nav { display: none !important; } }
@media (min-width: 1024px) { .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; }

html.game-active-background, body.game-active-background { overflow: hidden; }
.tv-background-overlay { position: fixed; inset: 0; z-index: -15; 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; } }
.game-progress-bar-fill { box-shadow: 0 0 5px rgba(0, 204, 255, 0.5); transition: width 0.5s ease-out; }

: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;
}
.game-select-play-button {
    appearance: none; outline: none; border: 2px solid var(--game-select-btn-theme); background-color: var(--game-select-btn-theme-bg);
    color: var(--game-select-btn-theme-text); text-shadow: 0 1px 1px var(--game-select-btn-theme-shadow); font-family: 'Kanit', sans-serif;
    font-weight: 500; font-size: clamp(0.9rem, 2.5vw, 1.1rem); padding: 0.8em 1.6em; border-radius: 5px 20px; cursor: pointer;
    box-shadow: 0 0 14px rgba(0,0,0,.25),0 0 7px var(--game-select-btn-theme); position: relative; z-index: 1; transform-style: preserve-3d;
    transform: translateZ(calc(3px * var(--game-select-btn-depth-multiplier)));
    transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease-out;
    display: inline-flex; align-items: center; justify-content: center; text-align: center; min-width: 160px;
}
.game-select-play-button::before, .game-select-play-button::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;
}
.game-select-play-button::before { transform: translate3d( var(--game-select-btn-before-offset-x), var(--game-select-btn-before-offset-y), calc(-40px * var(--game-select-btn-depth-multiplier)) ); opacity: .45; border-color: hsla(var(--game-select-btn-theme-H, 210), calc(var(--game-select-btn-theme-S, 80) * 1.1), calc(var(--game-select-btn-theme-L, 60) * 1.2), 0.7); }
.game-select-play-button::after { transform: translateZ(calc(-6px * var(--game-select-btn-depth-multiplier))); opacity: .65; }
.game-select-play-button:hover:not(:disabled):not(.is-loading):not(.is-disabled-style), .game-select-play-button:focus-visible:not(:disabled):not(.is-loading):not(.is-disabled-style) { background-color: var(--game-select-btn-theme-bg-hover); transform: translateZ(calc(6px * var(--game-select-btn-depth-multiplier))) translateY(-3px); box-shadow: 0 0 20px rgba(0,0,0,.3),0 0 12px var(--game-select-btn-theme); }
.game-select-play-button:hover:not(:disabled):not(.is-loading):not(.is-disabled-style)::before, .game-select-play-button:focus-visible:not(:disabled):not(.is-loading):not(.is-disabled-style)::before { transform: translate3d( calc(var(--game-select-btn-before-offset-x) * 1.3), calc(var(--game-select-btn-before-offset-y) * 1.3), calc(-5px * var(--game-select-btn-depth-multiplier)) ); opacity: 0.6; }
.game-select-play-button:hover:not(:disabled):not(.is-loading):not(.is-disabled-style)::after, .game-select-play-button:focus-visible:not(:disabled):not(.is-loading):not(.is-disabled-style)::after { transform: translateZ(calc(-3px * var(--game-select-btn-depth-multiplier))); opacity: 0.85; }
.game-select-play-button.theme-fast-clip { --game-select-btn-theme-H: 190; --game-select-btn-theme-S: 85%; --game-select-btn-theme-L: 50%; --game-select-btn-theme: hsl(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L)); --game-select-btn-theme-bg: hsla(var(--game-select-btn-theme-H), calc(var(--game-select-btn-theme-S) - 5%), calc(var(--game-select-btn-theme-L) - 5%), 0.3); --game-select-btn-theme-bg-hover: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L), 0.45); --game-select-btn-theme-shadow: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), calc(var(--game-select-btn-theme-L) - 30%), 0.4); }
.game-select-play-button.theme-normal-game { --game-select-btn-theme-H: 140; --game-select-btn-theme-S: 60%; --game-select-btn-theme-L: 45%; --game-select-btn-theme: hsl(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L)); --game-select-btn-theme-bg: hsla(var(--game-select-btn-theme-H), calc(var(--game-select-btn-theme-S) - 5%), calc(var(--game-select-btn-theme-L) - 5%), 0.3); --game-select-btn-theme-bg-hover: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L), 0.45); --game-select-btn-theme-shadow: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), calc(var(--game-select-btn-theme-L) - 30%), 0.4); }
.game-select-play-button.theme-try-hard { --game-select-btn-theme-H: 20;  --game-select-btn-theme-S: 90%; --game-select-btn-theme-L: 55%; --game-select-btn-theme: hsl(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L)); --game-select-btn-theme-bg: hsla(var(--game-select-btn-theme-H), calc(var(--game-select-btn-theme-S) - 5%), calc(var(--game-select-btn-theme-L) - 5%), 0.3); --game-select-btn-theme-bg-hover: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L), 0.45); --game-select-btn-theme-shadow: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), calc(var(--game-select-btn-theme-L) - 30%), 0.4); }
.game-select-play-button.continue-theme { --game-select-btn-theme-H: 180; --game-select-btn-theme-S: 75%; --game-select-btn-theme-L: 48%; --game-select-btn-theme: hsl(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L)); --game-select-btn-theme-bg: hsla(var(--game-select-btn-theme-H), calc(var(--game-select-btn-theme-S) - 5%), calc(var(--game-select-btn-theme-L) - 5%), 0.35); --game-select-btn-theme-bg-hover: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), var(--game-select-btn-theme-L), 0.5); --game-select-btn-theme-shadow: hsla(var(--game-select-btn-theme-H), var(--game-select-btn-theme-S), calc(var(--game-select-btn-theme-L) - 30%), 0.4); }
.game-select-play-button.is-disabled-style { background-color: hsla(220, 15%, 25%, 0.4) !important; color: hsla(220, 10%, 55%, 0.8) !important; text-shadow: none !important; box-shadow: 0 0 5px rgba(0,0,0,.3), inset 0 0 3px rgba(0,0,0,0.2) !important; cursor: not-allowed !important; opacity: 0.55 !important; transform: translateZ(0) translateY(0) !important; }
.game-select-play-button.is-disabled-style::before, .game-select-play-button.is-disabled-style::after { border-color: hsla(220, 10%, 40%, 0.5) !important; opacity: 0.15 !important; transform: translateZ(-0.5px) !important; }
.game-select-play-button .button-loading-spinner { display: none; }
.game-select-play-button.is-loading .button-text-wrapper { opacity: 0; }
.game-select-play-button.is-loading .button-loading-spinner { display: inline-block; animation: spin 1s linear infinite; }


.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;
}

@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; }


.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: 100px;
  bottom: 6px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 767px) {
  .dashboard-profile-xp-card .avatar-level-container {
    margin-left: 25px !important;
  }
  .neu-box::before { animation: none !important; }
  .neu-box::after { animation: none !important; }
  .control-beta-toolkit-container:not(.is-expanded) { bottom: 150px; }
}

.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: 100%;
  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;
}
.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);
  box-shadow: inset -2px 0px 6px rgba(0,0,0,0.25), 3px 0px 7px rgba(0,0,0,0.15);
}
.beta-toolkit-toggle-bar::before {
  content: "\f491";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 8px;
  transition: color 0.2s ease, transform 0.2s ease-out;
}
.beta-toolkit-toggle-bar:hover::before {
  color: color-mix(in srgb, var(--accent-color) 80%, white);
  transform: scale(1.1);
}

.beta-toolkit-toggle-bar .beta-toolkit-toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
  line-height: 1.1;
  transition: color 0.2s ease;
}
.beta-toolkit-toggle-bar:hover .beta-toolkit-toggle-text {
  color: #d1d5db;
}

#beta-toolkit-collapse-trigger.debug-info {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#beta-toolkit-collapse-trigger.debug-info:hover {
  background-color: rgba(75, 85, 99, 0.9);
}

.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);
}

.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);
}

.dashboard-profile-xp-card .avatar-level-container {
  position: relative;
  width: 130px;
  height: 120px;
  margin-bottom: 1rem;
  margin-left: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-profile-xp-card .level-circle-container {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--primary-light);
  border: 5px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(var(--color-accent-rgb, 108, 99, 255), 0.4),
              inset 0 0 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  top: 0;
  left: calc(50% - 60px);
}

.dashboard-profile-xp-card .myxp-title-superposed {
  font-size: 0.7rem;
  font-weight: 500;
  color: #a0aec0;
  line-height: 1;
  text-transform: lowercase;
  margin-bottom: 0px;
  position: relative;
  z-index: 6;
}
.dashboard-profile-xp-card .myxp-title-superposed strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.5px;
}

.dashboard-profile-xp-card .level-text-container {
  font-size: 3.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-top: 0px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(var(--color-accent-rgb, 108, 99, 255), 0.5);
  position: relative;
  z-index: 5;
}

.dashboard-profile-xp-card .avatar-overlay-container {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 10;
  top: -13px;
  left: -50px;
}

.dashboard-profile-xp-card .myxp-total-score-display {
  margin-top: -0.55rem;
  text-align: center;
}
.dashboard-profile-xp-card .myxp-total-score-display .score-label {
  font-size: 0.65rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: -2px;
}
.dashboard-profile-xp-card .myxp-total-score-display .score-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.dashboard-profile-xp-card .myxp-total-score-display .score-value i {
  font-size: 0.7em;
  margin-right: 0.3rem;
  opacity: 0.8;
}
.dashboard-profile-xp-card .myxp-total-score-display .score-unit {
  font-size: 0.7rem;
  color: var(--accent-color);
  opacity: 0.8;
  margin-left: 0.2rem;
}

.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)); }
.progress-section-dashboard .progress-bar-fill { box-shadow: 0 0 8px rgba(var(--color-accent-rgb, 108, 99, 255), 0.5); }
@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); } }

.dashboard-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

#dashboard-bg-foster-img {
    position: absolute;
    left: 0;
    top: 9vh;
    height: 66vh;
    max-height: 800px;
    width: auto;
    opacity: 0;
    transform: translateX(-100%) scaleX(-1);
    animation: slideInFoster 3.5s ease-out -0.5s forwards;
}

@keyframes slideInFoster {
    0% {
        transform: translateX(-100%) scaleX(-1);
        opacity: 0;
    }
    100% {
        transform: translateX(-25%) scaleX(-1);
        opacity: 0.25;
    }
}

@media (max-width: 1024px) {
    #dashboard-bg-foster-img {
        height: 50vh;
        top: 13vh;
        max-height: 600px;
    }
    @keyframes slideInFoster {
        0% {
            transform: translateX(-100%) scaleX(-1);
            opacity: 0;
        }
        100% {
            transform: translateX(-35%) scaleX(-1);
            opacity: 0.2;
        }
    }
}

@media (max-width: 767px) {
    #dashboard-bg-foster-img {
        height: 30vh;
        top: 13vh;
        max-height: 400px;
    }
    @keyframes slideInFoster {
        0% {
            transform: translateX(-100%) scaleX(-1);
            opacity: 0;
        }
        100% {
            transform: translateX(-30%) scaleX(-1);
            opacity: 0.2;
        }
    }
}

.dashboard-welcome-panel {
  border: 1px solid rgba(108, 99, 255, 0.3);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.15), inset 0 0 10px rgba(108, 99, 255, 0.05);
  position: relative;
  overflow: visible;
}

.dashboard-welcome-center-panel {
  background: rgba(26, 27, 46, 0.65);
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(108, 99, 255, 0.25);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25), 0 0 25px rgba(108, 99, 255, 0.25);
  transform: translateY(-8px) scale(1.03);
  transition: all 0.3s ease-out;
  position: relative;
  z-index: 10;
}

.dashboard-icon-wrapper {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  transition: transform 0.3s ease-out;
  z-index: 20;
}

.dashboard-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.4));
}

.dashboard-center-image-glow {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7))
          drop-shadow(0 0 30px rgba(108, 99, 255, 0.8))
          drop-shadow(0 0 40px rgba(176, 102, 255, 0.6))
          drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.4));
}

.dashboard-mission-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease-out;
}

.dashboard-mission-icon-bis {
  width: 160px;
  height: auto;
  position: absolute;
  left: 50%;
  bottom: -35%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.5));
}

.dashboard-mission-icon-wrapper i {
  font-size: 33px;
}

.dashboard-gamepad-glow {
  text-shadow: 0 0 15px rgba(108, 99, 255, 0.6), 0 0 5px rgba(172, 168, 255, 0.5);
}
.dashboard-upload-glow {
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.5), 0 0 5px rgba(167, 243, 208, 0.4);
}

@media (max-width: 767px) {
  .dashboard-welcome-panel .grid {
      grid-template-columns: 1fr;
  }

  .dashboard-welcome-center-panel {
      transform: scale(1);
      border: none;
      box-shadow: none;
      background-color: transparent;
      padding-bottom: 0;
      margin-bottom: -1rem;
  }

  .dashboard-icon-wrapper {
      top: -12px;
      width: 120px;
      height: 80px;
      left: 36%;
  }
  .dashboard-icon-wrapper i {
      font-size: 64px;
  }
  .dashboard-welcome-center-panel h3,
  .dashboard-welcome-center-panel p {
      margin-top: 40px;
  }

  .dashboard-mission-icon-bis {
    left: 85%;
    bottom: -23%;
  }

  .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;
}

.game-results-actions-gains-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.game-result-action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  min-width: 120px;
  height: auto;
  line-height: 1.2;
}

.game-result-action-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.game-result-action-text-line1,
.game-result-action-text-line2 {
  display: block;
  font-size: 0.7rem;
  line-height: 1.1;
}
.game-result-action-text-line2 {
  font-size: 0.65rem;
  opacity: 0.85;
}

.game-result-action-button.other-game-button {
  background-color: #4B5563;
}
.game-result-action-button.other-game-button:hover {
  background-color: #374151;
}
.game-result-action-button.replay-button {
  background-color: #2563EB;
}
.game-result-action-button.replay-button:hover {
  background-color: #1D4ED8;
}

.game-results-gains-block {
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 200px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-results-gains-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #D1D5DB;
  margin-bottom: 0.25rem;
}
.game-results-gains-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
}
.game-results-gains-values span > i {
  margin-right: 0.25rem;
}

@media (min-width: 640px) {
  .game-results-actions-gains-wrapper {
      flex-direction: row;
      align-items: stretch;
      justify-content: center;
      gap: 1.5rem;
  }
}

.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);
}

.play-submenu {
    position: fixed;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    margin: 0;
    padding: 0;
    width: 560px;
    height: 200px;
    pointer-events: none;
    perspective: 1200px;
    z-index: 1059;
}

.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: 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: 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;
    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: url('../images/jeguesstonrank_submenu-play3.png');
    -webkit-mask-image: url('../images/jeguesstonrank_submenu-play3.png');
    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: 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;
}

.play-submenu-mobile {
    position: fixed;
    bottom: 53px;
    left: 50%;
    transform: translateX(-50%);
    list-style: none; margin: 0; padding: 0;
    width: 300px;
    height: 145px;
    pointer-events: none; perspective: 800px;
    z-index: 39;
    overflow: hidden;
}

.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: 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: 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: 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: 100px;
}

.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: 9px;
    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: 6px;
    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: 9px;
    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: 9px;
    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;
}

.ranking-mode-selector-fixed {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 40;
    width: auto; 
    display: inline-flex;
    
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.6);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    padding: 4px;
}

@media (max-width: 1024px) {
    .ranking-mode-selector-fixed {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 1.5rem auto; 
        display: flex;
        justify-content: center;
        
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%; 
        pointer-events: none; 
    }
    
    .ranking-mode-selector-fixed .mode-selector-container {
        pointer-events: auto;
        background-color: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(75, 85, 99, 0.5);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
}

.fog-war-badge-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(76, 29, 149, 0.8) 0%, rgba(109, 40, 217, 0.6) 100%);
    border: 1px solid rgba(139, 92, 246, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(4px);
}

.fog-war-icon {
    font-size: 1.5rem;
    color: #c4b5fd;
    filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.8));
    animation: pulse-fog 3s infinite ease-in-out;
}

.fog-war-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.fog-war-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ddd6fe;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fog-war-date {
    font-size: 0.75rem;
    color: #a78bfa;
    font-weight: 500;
}

@keyframes pulse-fog {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 1024px) {
    .ranking-mode-selector-fixed {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 1.5rem auto;
        display: inline-flex;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .ranking-mode-selector-fixed .mode-selector-container {
        background-color: rgba(31, 41, 55, 0.8);
        border: 1px solid rgba(75, 85, 99, 0.5);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    }
}

.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); 
}

@media (max-width: 1024px) {
    .ranking-mode-selector-fixed {
        position: fixed;
        bottom: 66px;
        z-index: 20;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        background: none;
        border: none;
        box-shadow: none;
        pointer-events: none;
    }
    
    .ranking-mode-selector-fixed .mode-selector-container {
        background-color: rgba(31, 41, 55, 0.95); 
        border: 1px solid rgba(75, 85, 99, 0.5);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
    }
}


.community-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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);
    border-radius: 8px; 
    padding: 15px 0; 
    margin-top: 1rem;
    position: relative; 
}

.community-hud-bar::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;
}

.community-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 1;
    position: relative;
    padding: 0 5px;
    z-index: 1; 
}

.community-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 1px 0 0 rgba(0,0,0,0.2); 
}

.community-stat-value {
    font-size: 1.8rem; 
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.community-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.2;
}

.fog-tooltip-wrapper {
    display: inline-flex;
    align-items: stretch;
    height: 100%;
    vertical-align: middle;
    position: relative; 
    overflow: visible; 
    z-index: 50; 
}

.fog-custom-tooltip {
    position: absolute;
    top: calc(100% + 10px); 
    left: 50%;
    transform: translateX(-50%); 
    width: 280px; 
    background-color: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
    z-index: 1000; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-out;
    pointer-events: none;
}

.fog-custom-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(139, 92, 246, 0.5) transparent;
}

.fog-tooltip-wrapper:hover .fog-custom-tooltip,
.fog-tooltip-wrapper:focus .fog-custom-tooltip,
.fog-tooltip-wrapper:focus-within .fog-custom-tooltip { 
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}


/* --- 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; } /* Jaune */