/* ==========================================================================
   BACKLOG RADAR · THÈMES 2026
   1. Aurora Prism   (html.theme-aurora / data-theme="aurora")
   2. Radar HUD      (html.theme-radar  / data-theme="radar")
   3. Spatial Glass  (html.theme-spatial / data-theme="spatial")
   Palette commune : #06070A · émeraude #10B981 · cyan #06B6D4 · violet #8B5CF6
   Chargé après style.css : surcharge les jetons et l'habillage visuel.
   ========================================================================== */

@property --br-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes brSpin { to { transform: rotate(360deg); } }
@keyframes brFlow { to { background-position: 300% 0; } }
@keyframes brBob { 50% { transform: translateY(-12px); } }
@keyframes brSheen { 55%, 100% { transform: translateX(120%); } }
@keyframes brAng { to { --br-ang: 360deg; } }
@keyframes brPing { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
@keyframes brDrift1 { to { transform: translate(18vw, 12vh) scale(1.2); } }
@keyframes brDrift2 { to { transform: translate(-16vw, 16vh) scale(.9); } }
@keyframes brDrift3 { to { transform: translate(-12vw, -12vh) scale(1.15); } }
@keyframes brFloor { to { background-position: 0 56px, 0 0; } }
@keyframes brTwinkle { to { opacity: .4; } }
@keyframes brSweepX { from { left: -45%; } to { left: 110%; } }
@keyframes brMarquee { to { transform: translateX(-50%); } }
@keyframes brBlink { 50% { opacity: .2; } }
@keyframes brBlip { 0% { opacity: 1; transform: scale(1.8); } 25% { opacity: .9; transform: scale(1); } 100% { opacity: .3; transform: scale(1); } }
@keyframes brRing { 0% { opacity: .9; transform: scale(.4); } 40% { opacity: 0; transform: scale(2.6); } 100% { opacity: 0; } }
@keyframes brLabel { 0%, 30% { opacity: 1; } 100% { opacity: .4; } }
@keyframes brGlitchA { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 89% { clip-path: inset(12% 0 58% 0); transform: translate(-5px, 0); } 92% { clip-path: inset(62% 0 8% 0); transform: translate(4px, 0); } 95% { clip-path: inset(30% 0 40% 0); transform: translate(-3px, 0); } }
@keyframes brGlitchB { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 90% { clip-path: inset(48% 0 22% 0); transform: translate(5px, 0); } 93% { clip-path: inset(5% 0 75% 0); transform: translate(-4px, 0); } 96% { clip-path: inset(70% 0 2% 0); transform: translate(3px, 0); } }
@keyframes brFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   1. JETONS DE THÈME
   -------------------------------------------------------------------------- */
html.theme-aurora, [data-theme="aurora"] {
  --bg-app: #06070A;
  --bg-card: #0C0F17;
  --bg-surface: #06070A;
  --bg-surface-glass: rgba(12, 16, 24, .62);
  --bg-surface-elevated: rgba(20, 26, 40, .88);
  --bg-surface-subtle: rgba(255, 255, 255, .04);
  --border-subtle: rgba(255, 255, 255, .08);
  --card-border: rgba(255, 255, 255, .08);
  --card-hover-border: rgba(52, 211, 153, .5);
  --accent-primary: #10B981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-rgb: 16, 185, 129;
  --accent-secondary: #06B6D4;
  --accent-tertiary: #8B5CF6;
  --accent-glow: rgba(16, 185, 129, .3);
  --radius-card: 22px;
  --radius-badge: 999px;
  --status-bar-bg: rgba(12, 15, 22, .6);
  --status-bar-border: rgba(255, 255, 255, .08);
  --chip-active: #10B981;
  --btn-active: linear-gradient(135deg, #34D399 0%, #10B981 45%, #22D3EE 100%);
  --text-accent: #34D399;
  --hero-badge-bg: linear-gradient(135deg, #10B981, #8B5CF6);
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html.theme-radar, [data-theme="radar"] {
  --bg-app: #04060A;
  --bg-card: #070B12;
  --bg-surface: #04060A;
  --bg-surface-glass: rgba(5, 11, 16, .82);
  --bg-surface-elevated: rgba(8, 18, 26, .94);
  --bg-surface-subtle: rgba(34, 211, 238, .05);
  --border-subtle: rgba(34, 211, 238, .16);
  --card-border: rgba(34, 211, 238, .16);
  --card-hover-border: rgba(34, 211, 238, .65);
  --accent-primary: #10B981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-rgb: 16, 185, 129;
  --accent-secondary: #06B6D4;
  --accent-tertiary: #8B5CF6;
  --accent-glow: rgba(34, 211, 238, .3);
  --radius-card: 6px;
  --radius-badge: 3px;
  --status-bar-bg: rgba(4, 8, 12, .9);
  --status-bar-border: rgba(34, 211, 238, .25);
  --chip-active: #10B981;
  --btn-active: linear-gradient(90deg, #10B981, #06B6D4);
  --text-accent: #34D399;
  --hero-badge-bg: linear-gradient(90deg, #10B981, #06B6D4);
  --font-display: 'JetBrains Mono', ui-monospace, monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html.theme-spatial, [data-theme="spatial"] {
  --bg-app: #06070A;
  --bg-card: rgba(255, 255, 255, .06);
  --bg-surface: #06070A;
  --bg-surface-glass: rgba(255, 255, 255, .07);
  --bg-surface-elevated: rgba(28, 32, 42, .82);
  --bg-surface-subtle: rgba(255, 255, 255, .06);
  --border-subtle: rgba(255, 255, 255, .12);
  --card-border: rgba(255, 255, 255, .13);
  --card-hover-border: rgba(255, 255, 255, .34);
  --accent-primary: #10B981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-rgb: 16, 185, 129;
  --accent-secondary: #06B6D4;
  --accent-tertiary: #8B5CF6;
  --accent-glow: rgba(52, 211, 153, .28);
  --radius-card: 28px;
  --radius-badge: 999px;
  --status-bar-bg: rgba(255, 255, 255, .08);
  --status-bar-border: rgba(255, 255, 255, .16);
  --chip-active: #10B981;
  --btn-active: linear-gradient(135deg, #34D399, #10B981 50%, #22D3EE);
  --text-accent: #6EE7B7;
  --hero-badge-bg: linear-gradient(135deg, #34D399, #22D3EE);
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* --------------------------------------------------------------------------
   2. RÈGLES COMMUNES AUX 3 THÈMES
   -------------------------------------------------------------------------- */
html.theme-aurora .glass-card:not(.game-poster-card):hover,
html.theme-radar .glass-card:not(.game-poster-card):hover,
html.theme-spatial .glass-card:not(.game-poster-card):hover {
  transform: none !important;
}

html.theme-aurora .theme-btn-active,
html.theme-spatial .theme-btn-active {
  color: #03130D !important;
  font-weight: 700;
}

#theme-hero:empty { display: none; }
#theme-hero { animation: brFadeUp .5s cubic-bezier(.16, 1, .3, 1) both; }

/* Couche d'effets de fond (injectée par js/themefx.js) */
#theme-fx { position: fixed; inset: 0; z-index: -5; pointer-events: none; overflow: hidden; }
#theme-fx > div { display: none; position: absolute; inset: 0; }
#theme-fx-top { position: fixed; inset: 0; z-index: 45; pointer-events: none; display: none; }
html.theme-aurora #theme-fx .fx-aurora,
html.theme-radar #theme-fx .fx-radar,
html.theme-spatial #theme-fx .fx-spatial { display: block; }
html.theme-radar #theme-fx-top { display: block; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }

/* ==========================================================================
   3. THÈME 1 · AURORA PRISM
   ========================================================================== */
html.theme-aurora #bg-wallpaper { opacity: .35; }
html.theme-aurora #bg-overlay {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(6, 7, 10, .2) 0%, rgba(6, 7, 10, .85) 70%),
    linear-gradient(180deg, rgba(6, 7, 10, .55), rgba(6, 7, 10, .92));
}

.fx-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; will-change: transform; }
.fx-aurora i:nth-child(1) { width: 46vw; height: 46vw; min-width: 380px; min-height: 380px; background: #10B981; top: -18vw; left: -10vw; animation: brDrift1 22s ease-in-out infinite alternate; }
.fx-aurora i:nth-child(2) { width: 40vw; height: 40vw; min-width: 340px; min-height: 340px; background: #06B6D4; top: -12vw; right: -12vw; opacity: .34; animation: brDrift2 26s ease-in-out infinite alternate; }
.fx-aurora i:nth-child(3) { width: 38vw; height: 38vw; min-width: 320px; min-height: 320px; background: #8B5CF6; bottom: -16vw; left: 32%; opacity: .26; animation: brDrift3 28s ease-in-out infinite alternate; }
.fx-aurora .fx-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }

/* En-tête : pilule de verre flottante */
html.theme-aurora #main-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding-top: 10px !important;
  padding-bottom: 6px !important;
}
html.theme-aurora #main-header > div {
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: rgba(12, 15, 22, .58);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 12px 40px -14px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
}
html.theme-aurora .nav-pill-dock { background: rgba(255, 255, 255, .03) !important; border: 0 !important; box-shadow: none !important; border-radius: 999px !important; }
html.theme-aurora .nav-tab { border-radius: 999px !important; border-color: transparent !important; }
html.theme-aurora .nav-tab.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)) !important;
  border-color: transparent !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 24px -4px rgba(16, 185, 129, .6) !important;
}
html.theme-aurora .cmdk-pill-btn,
html.theme-aurora #user-profile-badge,
html.theme-aurora #steam-login-btn,
html.theme-aurora #btn-mobile-quick-menu { border-radius: 999px !important; }
html.theme-aurora .sticky-toolbar,
html.theme-aurora .calendar-controls-sticky { top: 72px !important; }
@media (min-width: 640px) {
  html.theme-aurora .sticky-toolbar,
  html.theme-aurora .calendar-controls-sticky { top: 76px !important; }
}

/* Surfaces de verre + bordure lumineuse qui suit la souris */
html.theme-aurora .glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)), rgba(10, 13, 20, .58) !important;
  border: 1px solid rgba(255, 255, 255, .075) !important;
  border-radius: 22px;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}
html.theme-aurora .glass-card:not(.fixed):not(.absolute):not(.sticky-toolbar):not(.calendar-controls-sticky) { position: relative; }
html.theme-aurora .glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(340px circle at var(--mx, -999px) var(--my, -999px), rgba(52, 211, 153, .9), rgba(34, 211, 238, .4) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
}
html.theme-aurora .glass-card:hover::after { opacity: 1; }
html.theme-aurora .bento-kpi-card::before { left: 8%; right: 8%; background: linear-gradient(90deg, transparent, rgba(52, 211, 153, .45), rgba(34, 211, 238, .35), transparent); }

/* Cartes de jeux : inclinaison 3D (js) + reflet holographique */
html.theme-aurora .game-poster-card {
  border-radius: 20px !important;
  transition: transform .18s ease-out, box-shadow .3s ease, border-color .3s ease !important;
}
html.theme-aurora .game-poster-card div:has(> .game-poster-img)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(52, 211, 153, .5) 38%, rgba(34, 211, 238, .5) 48%, rgba(167, 139, 250, .5) 58%, transparent 72%);
  background-size: 220% 220%;
  background-position: var(--hx, 50%) var(--hy, 50%);
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity .3s ease;
}
@media (hover: hover) {
  html.theme-aurora .game-poster-card:hover div:has(> .game-poster-img)::before { opacity: .7; }
  html.theme-aurora .game-poster-card:hover {
    border-color: rgba(52, 211, 153, .45) !important;
    box-shadow: 0 30px 60px -22px rgba(16, 185, 129, .45), 0 0 0 1px rgba(255, 255, 255, .06) !important;
  }
}

/* Boutons et filtres */
html.theme-aurora .theme-btn-active:not(.fixed) { position: relative; }
html.theme-aurora .theme-btn-active { overflow: hidden; box-shadow: 0 12px 30px -12px rgba(16, 185, 129, .8), inset 0 1px 0 rgba(255, 255, 255, .45) !important; }
html.theme-aurora .theme-btn-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
@media (hover: hover) { html.theme-aurora .theme-btn-active:hover::after { animation: brSheen 1.1s ease-out; } }
html.theme-aurora .chip,
html.theme-aurora .steam-chip,
html.theme-aurora .cal-chip,
html.theme-aurora .cal-plat,
html.theme-aurora .sagas-filter-btn,
html.theme-aurora .news-chip { border-radius: 999px !important; }
html.theme-aurora .chip.active,
html.theme-aurora .steam-chip.active,
html.theme-aurora .cal-chip.active,
html.theme-aurora .sagas-filter-btn.active,
html.theme-aurora .news-chip.active {
  background: linear-gradient(135deg, rgba(52, 211, 153, .22), rgba(34, 211, 238, .14)) !important;
  color: #A7F3D0 !important;
  border-color: rgba(52, 211, 153, .5) !important;
  box-shadow: 0 0 22px -6px rgba(16, 185, 129, .7) !important;
}

/* Navigation mobile : dock de verre flottant */
html.theme-aurora .mobile-bottom-nav {
  left: 12px !important;
  right: 12px !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 6px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  background: rgba(12, 15, 22, .62) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1) !important;
}
html.theme-aurora .mobile-tab.active { color: #A7F3D0 !important; }
html.theme-aurora .mobile-tab.active i,
html.theme-aurora .mobile-tab.active svg {
  box-sizing: content-box;
  padding: 4px 12px;
  border-radius: 12px;
  color: #6EE7B7 !important;
  background: linear-gradient(135deg, rgba(52, 211, 153, .25), rgba(34, 211, 238, .18));
  box-shadow: 0 0 20px -2px rgba(16, 185, 129, .6), inset 0 1px 0 rgba(255, 255, 255, .15);
  transform: none !important;
}

/* --- Bandeau d'accueil Aurora --- */
.tha {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)), rgba(10, 13, 20, .45);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.tha::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 70% at 0% 0%, rgba(16, 185, 129, .16), transparent 60%), radial-gradient(50% 60% at 100% 100%, rgba(139, 92, 246, .14), transparent 60%);
}
.tha-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 9px; border-radius: 999px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .25); color: #6EE7B7; font-size: 13px; font-weight: 500; }
.tha-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: brPing 2s infinite; }
.tha-title { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; margin-top: 18px; color: #FFFFFF; }
.tha-grad { background: linear-gradient(90deg, #34D399, #22D3EE, #A78BFA, #34D399); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brFlow 8s linear infinite; }
.tha-lead { font-size: 16px; line-height: 1.6; color: #9AA1B1; max-width: 470px; margin-top: 16px; }
.tha-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tha-btn-main {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #03130D;
  background: linear-gradient(135deg, #34D399 0%, #10B981 45%, #22D3EE 100%);
  box-shadow: 0 14px 40px -12px rgba(16, 185, 129, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.tha-btn-main:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -12px rgba(16, 185, 129, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tha-btn-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); animation: brSheen 3.4s ease-in-out infinite; }
.tha-btn-ghost { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #E9EBF0; background: rgba(255, 255, 255, .04); cursor: pointer; }
.tha-btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--br-ang), rgba(255, 255, 255, .12) 0deg, rgba(255, 255, 255, .12) 230deg, #22D3EE 300deg, #A78BFA 340deg, rgba(255, 255, 255, .12) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: brAng 4s linear infinite;
}
.tha-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
.tha-stats b { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #FFFFFF; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tha-stats span { font-size: 12px; color: #7D8494; }
.tha-fan { position: relative; height: 380px; perspective: 1200px; transition: transform .4s ease-out; }
.tha-fw { position: absolute; top: 50%; left: 50%; width: 190px; cursor: pointer; }
.tha-poster { border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; background: #0B0E14; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12); animation: brBob 7s ease-in-out infinite; }
.tha-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tha-fw.f1 { transform: translate(-118%, -46%) rotateY(22deg) rotate(-9deg) scale(.86); }
.tha-fw.f2 { transform: translate(-50%, -54%); z-index: 2; }
.tha-fw.f3 { transform: translate(18%, -46%) rotateY(-22deg) rotate(9deg) scale(.86); }
.tha-fw.f1 .tha-poster { animation-delay: -2s; }
.tha-fw.f3 .tha-poster { animation-delay: -4s; }
.tha-fw.f2 .tha-poster { box-shadow: 0 50px 100px -20px rgba(16, 185, 129, .5), 0 0 0 1px rgba(255, 255, 255, .16); }
.tha-glass { background: rgba(14, 18, 26, .62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1); border-radius: 18px; }
.tha-tag { position: absolute; z-index: 4; right: 0; bottom: 6%; padding: 13px 15px; min-width: 180px; max-width: 230px; animation: brBob 6s ease-in-out infinite -1s; }
.tha-tag .l { font-size: 13px; color: #9AA1B1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tha-tag .r { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.tha-tag .r b { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #FFFFFF; }
.tha-tag .r span { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: #34D399; }
.tha-tag .s { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: #6EE7B7; }
.tha-tag .s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.tha-tag2 { position: absolute; z-index: 4; left: 0; top: 7%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; max-width: 260px; font-size: 13px; color: #C9CED8; animation: brBob 7s ease-in-out infinite -3s; }
.tha-tag2 svg { color: #34D399; flex-shrink: 0; }
.tha-tag2 b { font-family: var(--font-mono); color: #FFFFFF; }
@media (max-width: 900px) {
  .tha { grid-template-columns: 1fr; padding: 26px 20px 10px; gap: 4px; }
  .tha-fan { height: 300px; }
  .tha-fw { width: 140px; }
  .tha-tag { min-width: 160px; bottom: 2%; }
  .tha-tag2 { display: none; }
}
@media (max-width: 480px) {
  .tha { border-radius: 24px; }
  .tha-lead { font-size: 15px; }
  .tha-stats { gap: 18px; }
  .tha-stats b { font-size: 19px; }
  .tha-btn-main, .tha-btn-ghost { flex: 1; justify-content: center; padding: 0 14px; }
  .fx-aurora i { filter: blur(60px); }
}

/* ==========================================================================
   4. THÈME 2 · RADAR HUD
   ========================================================================== */
html.theme-radar body { background-color: #04060A; }
html.theme-radar #bg-wallpaper { opacity: .16; filter: blur(30px) brightness(.3) saturate(.5) !important; }
html.theme-radar #bg-overlay {
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(16, 185, 129, .1), transparent 60%),
    linear-gradient(180deg, rgba(4, 6, 10, .6), rgba(4, 6, 10, .94));
}
.fx-radar .fx-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 140px 120px, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.5px 1.5px at 230px 60px, rgba(34, 211, 238, .85), transparent),
    radial-gradient(1px 1px at 330px 200px, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.5px 1.5px at 400px 150px, rgba(167, 139, 250, .75), transparent);
  background-size: 440px 260px;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 85%);
  mask-image: linear-gradient(#000 30%, transparent 85%);
  animation: brTwinkle 5s ease-in-out infinite alternate;
}
.fx-radar .fx-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: 0;
  height: 36vh;
  opacity: .55;
  background-image: linear-gradient(rgba(34, 211, 238, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .35) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(65deg);
  transform-origin: 50% 100%;
  animation: brFloor 2.6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}

/* En-tête HUD */
html.theme-radar #main-header {
  background: rgba(4, 6, 10, .82) !important;
  border-bottom: 1px solid rgba(34, 211, 238, .2) !important;
  box-shadow: 0 1px 0 rgba(34, 211, 238, .06), 0 10px 30px -10px rgba(0, 0, 0, .85) !important;
}
html.theme-radar .app-logo { font-family: var(--font-mono); letter-spacing: .14em; }
html.theme-radar .nav-pill-dock { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.theme-radar .nav-tab { position: relative; border-radius: 0 !important; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6B7486; }
html.theme-radar .nav-tab:hover { background: rgba(34, 211, 238, .06); color: #C9F7E6; }
html.theme-radar .nav-tab.active { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: #E6FFF6 !important; text-shadow: 0 0 12px rgba(52, 211, 153, .8); }
html.theme-radar .nav-tab.active::before { content: "["; position: absolute; left: 1px; top: 50%; transform: translateY(-50%); color: #34D399; }
html.theme-radar .nav-tab.active::after { content: "]"; position: absolute; right: 1px; top: 50%; transform: translateY(-50%); color: #34D399; }
@media (max-width: 1279px) { html.theme-radar .nav-tab svg, html.theme-radar .nav-tab i { display: none; } }
html.theme-radar .cmdk-pill-btn { border-radius: 3px !important; border-color: rgba(34, 211, 238, .25) !important; }

/* Panneaux HUD à coins lumineux */
html.theme-radar .glass-card {
  --hc: rgba(34, 211, 238, .85);
  background:
    linear-gradient(var(--hc), var(--hc)) top left / 12px 1px no-repeat,
    linear-gradient(var(--hc), var(--hc)) top left / 1px 12px no-repeat,
    linear-gradient(var(--hc), var(--hc)) top right / 12px 1px no-repeat,
    linear-gradient(var(--hc), var(--hc)) top right / 1px 12px no-repeat,
    linear-gradient(var(--hc), var(--hc)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--hc), var(--hc)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--hc), var(--hc)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--hc), var(--hc)) bottom right / 1px 12px no-repeat,
    linear-gradient(180deg, rgba(34, 211, 238, .05), rgba(34, 211, 238, .012)),
    rgba(5, 10, 15, .82) !important;
  border: 1px solid rgba(34, 211, 238, .14) !important;
  border-radius: 4px !important;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .9) !important;
}
html.theme-radar .glass-card:hover { border-color: rgba(34, 211, 238, .42) !important; box-shadow: 0 0 26px -8px rgba(34, 211, 238, .4) !important; }
html.theme-radar .bento-kpi-card::before { display: none; }
html.theme-radar .rounded-3xl,
html.theme-radar .rounded-2xl { border-radius: 6px !important; }
html.theme-radar .rounded-xl { border-radius: 4px !important; }
html.theme-radar .rounded-lg { border-radius: 3px !important; }
html.theme-radar .tab-content h2,
html.theme-radar .tab-content h3 { text-transform: uppercase; letter-spacing: .1em; }
html.theme-radar .font-mono.text-emerald-400,
html.theme-radar .font-mono.text-emerald-300 { text-shadow: 0 0 12px rgba(52, 211, 153, .45); }
html.theme-radar .font-mono.text-cyan-400 { text-shadow: 0 0 12px rgba(34, 211, 238, .45); }

/* Cartes de jeux : balayage au survol */
html.theme-radar .game-poster-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 40%;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .22), transparent);
}
@media (hover: hover) { html.theme-radar .game-poster-card:hover::after { animation: brSweepX .8s ease-out; } }

/* Boutons et filtres */
html.theme-radar .theme-btn-active {
  color: #021710 !important;
  font-family: var(--font-mono);
  letter-spacing: .06em;
  box-shadow: none !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
html.theme-radar .chip,
html.theme-radar .steam-chip,
html.theme-radar .cal-chip,
html.theme-radar .cal-plat,
html.theme-radar .sagas-filter-btn,
html.theme-radar .news-chip { font-family: var(--font-mono); letter-spacing: .04em; border-radius: 3px !important; }
html.theme-radar .chip.active,
html.theme-radar .steam-chip.active,
html.theme-radar .cal-chip.active,
html.theme-radar .sagas-filter-btn.active,
html.theme-radar .news-chip.active {
  background: rgba(16, 185, 129, .12) !important;
  color: #6EE7B7 !important;
  border-color: #34D399 !important;
  box-shadow: 0 0 14px -2px rgba(52, 211, 153, .6), inset 0 0 12px rgba(16, 185, 129, .15) !important;
}

/* Navigation mobile HUD */
html.theme-radar .mobile-bottom-nav {
  background: rgba(4, 6, 10, .92) !important;
  border-top: 1px solid rgba(34, 211, 238, .28) !important;
  box-shadow: 0 -10px 30px -10px rgba(34, 211, 238, .15) !important;
}
html.theme-radar .mobile-tab { position: relative; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
html.theme-radar .mobile-tab.active { color: #34D399 !important; text-shadow: 0 0 10px rgba(52, 211, 153, .7); }
html.theme-radar .mobile-tab.active::before { content: ""; position: absolute; top: -4px; left: 50%; width: 24px; height: 2px; margin-left: -12px; background: #34D399; box-shadow: 0 0 12px #34D399; }
html.theme-radar .mobile-tab.active i,
html.theme-radar .mobile-tab.active svg { filter: drop-shadow(0 0 6px #10B981); }

/* --- Bandeau d'accueil Radar --- */
.thr { position: relative; overflow: hidden; border: 1px solid rgba(34, 211, 238, .2); border-radius: 6px; background: radial-gradient(900px 420px at 80% 0%, rgba(6, 182, 212, .12), transparent 60%), radial-gradient(700px 400px at 0% 0%, rgba(16, 185, 129, .1), transparent 60%), rgba(4, 7, 11, .75); }
.thr-tick { position: relative; z-index: 2; height: 34px; display: flex; align-items: center; overflow: hidden; background: rgba(6, 182, 212, .06); border-bottom: 1px solid rgba(34, 211, 238, .18); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #9AA3B5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.thr-tick-in { display: flex; flex-shrink: 0; gap: 44px; padding-left: 44px; white-space: nowrap; animation: brMarquee 45s linear infinite; }
.thr-tick b { color: #34D399; font-weight: 700; text-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.thr-tick i { font-style: normal; color: #ECFFF8; }
.thr-body { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; padding: 40px 44px 70px; }
.thr-floor { position: absolute; left: -30%; right: -30%; bottom: -2px; height: 200px; z-index: 0; background-image: linear-gradient(rgba(34, 211, 238, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .4) 1px, transparent 1px); background-size: 56px 56px; transform: perspective(420px) rotateX(65deg); transform-origin: 50% 100%; animation: brFloor 2.4s linear infinite; -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, transparent 85%); }
.thr-text, .thr-rwrap { position: relative; z-index: 1; }
.thr-lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: #22D3EE; }
.thr-title { margin-top: 14px; font-family: var(--font-mono); font-size: clamp(46px, 6.4vw, 86px); line-height: .92; font-weight: 800; letter-spacing: -.02em; }
.thr-glitch { position: relative; display: inline-block; color: #ECFFF8; text-shadow: 0 0 40px rgba(16, 185, 129, .35); }
.thr-glitch.g2 { background: linear-gradient(90deg, #34D399, #22D3EE 60%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 24px rgba(16, 185, 129, .4)); }
.thr-glitch::before, .thr-glitch::after { content: attr(data-t); position: absolute; left: 0; top: 0; width: 100%; background: none; text-shadow: none; clip-path: inset(0 0 100% 0); }
.thr-glitch::before { color: #22D3EE; animation: brGlitchA 4s infinite steps(1); }
.thr-glitch::after { color: #A78BFA; animation: brGlitchB 4s infinite steps(1); }
.thr-glitch.g2::before, .thr-glitch.g2::after { animation-delay: -1.7s; }
.thr-sub { margin-top: 18px; max-width: 470px; font-size: 15px; line-height: 1.6; color: #8C95A7; }
.thr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; margin-top: 24px; }
.thr-hud { position: relative; padding: 12px 14px; --hc: #22D3EE; background: linear-gradient(var(--hc), var(--hc)) top left / 10px 1px no-repeat, linear-gradient(var(--hc), var(--hc)) top left / 1px 10px no-repeat, linear-gradient(var(--hc), var(--hc)) bottom right / 10px 1px no-repeat, linear-gradient(var(--hc), var(--hc)) bottom right / 1px 10px no-repeat, rgba(6, 182, 212, .05); border: 1px solid rgba(6, 182, 212, .12); }
.thr-hud .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: #6B7486; }
.thr-hud .v { margin-top: 4px; font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #E6FFF6; text-shadow: 0 0 18px rgba(34, 211, 238, .5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.thr-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.thr-glow { display: inline-flex; filter: drop-shadow(0 0 16px rgba(16, 185, 129, .55)); }
.thr-bt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform .15s; cursor: pointer; }
.thr-bt:hover { transform: translateY(-1px); }
.thr-bt.p { color: #021710; background: linear-gradient(90deg, #10B981, #06B6D4); }
.thr-bt.g { color: #67E8F9; background: rgba(6, 182, 212, .08); border: 1px solid rgba(34, 211, 238, .45); }
.thr-rwrap { display: grid; place-items: center; }
.thr-radar { position: relative; width: clamp(250px, 30vw, 420px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(16, 185, 129, .12) 0%, rgba(16, 185, 129, .03) 60%, transparent 70%); border: 1px solid rgba(16, 185, 129, .42); box-shadow: 0 0 80px rgba(16, 185, 129, .2), inset 0 0 80px rgba(16, 185, 129, .12); }
.thr-radar::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 1px dashed rgba(34, 211, 238, .3); animation: brSpin 40s linear infinite reverse; }
.thr-radar::after { content: ""; position: absolute; inset: -30px; border-radius: 50%; border: 2px solid transparent; border-top-color: rgba(34, 211, 238, .65); border-right-color: rgba(34, 211, 238, .15); animation: brSpin 9s linear infinite; }
.thr-rg { position: absolute; border-radius: 50%; border: 1px dashed rgba(16, 185, 129, .2); }
.thr-rg.r1 { inset: 16%; }
.thr-rg.r2 { inset: 32%; }
.thr-rg.r3 { inset: 46%; border-style: solid; }
.thr-ax { position: absolute; background: rgba(16, 185, 129, .16); }
.thr-ax.h { left: 0; right: 0; top: 50%; height: 1px; }
.thr-ax.v { top: 0; bottom: 0; left: 50%; width: 1px; }
.thr-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 72%, rgba(16, 185, 129, .02) 72%, rgba(16, 185, 129, .55) 100%); animation: brSpin 4s linear infinite; }
.thr-sweep::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; background: linear-gradient(#A7F3D0, rgba(16, 185, 129, 0)); box-shadow: 0 0 14px #34D399; }
.thr-blip { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--bc); box-shadow: 0 0 12px var(--bc); opacity: .3; animation: brBlip 4s ease-out infinite; animation-delay: var(--d); cursor: pointer; }
.thr-blip::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--bc); opacity: 0; animation: brRing 4s ease-out infinite; animation-delay: var(--d); }
.thr-bl { position: absolute; transform: translate(12px, -50%); white-space: nowrap; padding: 3px 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: #DFFBF1; background: rgba(5, 7, 10, .8); border: 1px solid rgba(255, 255, 255, .1); border-left: 2px solid var(--bc); opacity: .4; animation: brLabel 4s ease-out infinite; animation-delay: var(--d); cursor: pointer; }
.thr-bl.left { transform: translate(calc(-100% - 12px), -50%); border-left: 1px solid rgba(255, 255, 255, .1); border-right: 2px solid var(--bc); }
.thr-bl b { color: var(--bc); }
.thr-center { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #A7F3D0; box-shadow: 0 0 18px #34D399; }
.thr-rt { position: absolute; font-family: var(--font-mono); font-size: 12px; color: rgba(52, 211, 153, .65); }
.thr-rt.n { top: 8px; left: 50%; transform: translateX(-50%); }
.thr-rt.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.thr-rt.e { right: 10px; top: 50%; transform: translateY(-50%); }
.thr-rt.w { left: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) {
  .thr-body { grid-template-columns: 1fr; gap: 34px; padding: 36px 18px 60px; }
  .thr-rwrap { order: -1; }
  .thr-radar { width: min(270px, 72vw); }
  .thr-stats { gap: 8px; }
  .thr-hud { padding: 10px; }
  .thr-hud .v { font-size: 16px; }
  .thr-ctas { flex-direction: column; align-items: stretch; }
  .thr-glow .thr-bt, .thr-ctas > .thr-bt { width: 100%; }
}

/* ==========================================================================
   5. THÈME 3 · SPATIAL GLASS
   ========================================================================== */
html.theme-spatial #bg-wallpaper {
  opacity: 1;
  inset: -60px;
  filter: blur(60px) brightness(.5) saturate(1.7) !important;
  transition: background-image .9s ease, opacity .6s ease;
}
html.theme-spatial #bg-overlay {
  background:
    radial-gradient(60% 50% at 8% 95%, rgba(16, 185, 129, .16), transparent 70%),
    radial-gradient(50% 45% at 96% 55%, rgba(139, 92, 246, .14), transparent 70%),
    linear-gradient(180deg, rgba(6, 7, 10, .2) 0%, rgba(6, 7, 10, .55) 45%, rgba(6, 7, 10, .82) 100%);
}
.fx-spatial { background: radial-gradient(40% 30% at 50% 0%, rgba(255, 255, 255, .06), transparent 70%); }

/* En-tête et navigation en verre liquide */
html.theme-spatial #main-header {
  background: rgba(6, 7, 10, .38) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
}
html.theme-spatial .nav-pill-dock {
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04)) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 999px !important;
  padding: 5px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 12px 30px -12px rgba(0, 0, 0, .6) !important;
}
html.theme-spatial .nav-tab { border-radius: 999px !important; border-color: transparent !important; color: #C3C9D4; }
html.theme-spatial .nav-tab.active {
  background: rgba(255, 255, 255, .17) !important;
  border-color: transparent !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 4px 14px rgba(0, 0, 0, .25) !important;
}
html.theme-spatial .cmdk-pill-btn,
html.theme-spatial #user-profile-badge,
html.theme-spatial #steam-login-btn,
html.theme-spatial #btn-mobile-quick-menu {
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3) !important;
}

/* Surfaces de verre bombé */
html.theme-spatial .glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .035) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 28px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .3), inset 0 -1px 1px rgba(255, 255, 255, .05), 0 24px 60px -24px rgba(0, 0, 0, .7) !important;
}
html.theme-spatial .glass-card:hover { border-color: rgba(255, 255, 255, .26) !important; }
html.theme-spatial .bento-kpi-card::before { left: 6%; right: 6%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
html.theme-spatial .sticky-toolbar,
html.theme-spatial .calendar-controls-sticky {
  background: linear-gradient(135deg, rgba(40, 44, 54, .72), rgba(20, 22, 30, .78)) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25), 0 20px 50px -20px rgba(0, 0, 0, .8) !important;
}
html.theme-spatial .rounded-xl { border-radius: 16px; }
html.theme-spatial .rounded-2xl { border-radius: 24px; }
html.theme-spatial .rounded-3xl { border-radius: 32px; }
html.theme-spatial .game-poster-card { border-radius: 26px !important; }
@media (hover: hover) {
  html.theme-spatial .game-poster-card:hover {
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 34px 70px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .2) !important;
  }
}

/* Boutons et filtres */
html.theme-spatial .theme-btn-active { border-radius: 999px !important; box-shadow: 0 14px 34px -12px rgba(16, 185, 129, .75), inset 0 1px 0 rgba(255, 255, 255, .5) !important; }
html.theme-spatial .chip,
html.theme-spatial .steam-chip,
html.theme-spatial .cal-chip,
html.theme-spatial .cal-plat,
html.theme-spatial .sagas-filter-btn,
html.theme-spatial .news-chip { border-radius: 999px !important; background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .12) !important; }
html.theme-spatial .chip.active,
html.theme-spatial .steam-chip.active,
html.theme-spatial .cal-chip.active,
html.theme-spatial .sagas-filter-btn.active,
html.theme-spatial .news-chip.active {
  background: rgba(255, 255, 255, .2) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, .3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 18px -6px rgba(0, 0, 0, .5) !important;
}

/* Navigation mobile : pilule de verre liquide */
html.theme-spatial .mobile-bottom-nav {
  left: 14px !important;
  right: 14px !important;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .35), 0 20px 50px -14px rgba(0, 0, 0, .75) !important;
}
html.theme-spatial .mobile-tab { border-radius: 999px; color: #C3C9D4 !important; }
html.theme-spatial .mobile-tab.active { color: #6EE7B7 !important; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32); }
html.theme-spatial .mobile-tab.active i,
html.theme-spatial .mobile-tab.active svg { transform: none !important; }

/* --- Bandeau d'accueil Spatial : carrousel 3D --- */
.ths { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 22px; }
.ths-stage { position: relative; min-width: 0; }
.ths-cf { position: relative; height: 430px; perspective: 1500px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ths-it { position: absolute; left: 50%; top: 14px; width: 220px; margin-left: -110px; cursor: pointer; will-change: transform; transition: transform .9s cubic-bezier(.2, .85, .25, 1), opacity .9s, filter .9s; -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(255, 255, 255, .16)); }
.ths-poster { border-radius: 22px; overflow: hidden; aspect-ratio: 2 / 3; background: #0B0E14; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .9s; }
.ths-poster img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ths-it.act .ths-poster { box-shadow: 0 40px 100px -20px rgba(16, 185, 129, .55), 0 0 0 1px rgba(255, 255, 255, .3); }
.ths-ctrl { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: -6px; }
.ths-lg {
  position: relative;
  color: #F2F4F8;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .03) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .42), inset 0 -1px 1px rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -20px rgba(0, 0, 0, .65);
}
.ths-lg::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 70% at 15% -10%, rgba(255, 255, 255, .22), transparent 45%); }
.ths-lg > * { position: relative; }
.ths-arr { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ths-dots { display: flex; gap: 6px; padding: 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.ths-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .4s, background .4s; }
.ths-dots i.on { width: 26px; background: linear-gradient(90deg, #34D399, #22D3EE); }
.ths-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.ths-qbtn { height: 38px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .2s; }
.ths-qbtn:hover { transform: translateY(-1px); }
.ths-qbtn svg { color: #6EE7B7; }
.ths-info { border-radius: 30px; padding: 26px; }
.ths-swap { transition: opacity .25s, transform .25s; }
.ths-swap.out { opacity: 0; transform: translateY(8px); }
.ths-eyb { display: flex; align-items: center; gap: 10px; }
.ths-chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #6EE7B7; background: rgba(16, 185, 129, .16); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .3); }
.ths-mc { font-size: 13px; color: #AEB5C2; }
.ths-title { margin-top: 12px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; color: #FFFFFF; }
.ths-gen { margin-top: 4px; font-size: 14px; color: #AEB5C2; }
.ths-prow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ths-prow b { font-family: var(--font-mono); font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -.03em; color: #FFFFFF; }
.ths-prow s { font-family: var(--font-mono); font-size: 15px; color: #7D8494; }
.ths-dsc { padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #03130D; background: linear-gradient(135deg, #34D399, #22D3EE); }
.ths-cmp { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ths-cmp > div { display: grid; grid-template-columns: 110px 1fr 76px; align-items: center; gap: 12px; font-size: 13px; color: #C3C9D4; }
.ths-cmp i { display: block; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.ths-cmp em { display: block; width: 0; height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.ths-cmp b { text-align: right; font-family: var(--font-mono); font-weight: 600; color: #FFFFFF; }
.ths-hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.ths-hl > div { padding: 11px; border-radius: 18px; text-align: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.ths-hl b { display: block; font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: #FFFFFF; }
.ths-hl span { font-size: 12px; color: #AEB5C2; }
.ths-acts { display: flex; gap: 10px; margin-top: 20px; }
.ths-pbtn { position: relative; overflow: hidden; flex: 1; height: 50px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: #03130D; background: linear-gradient(135deg, #34D399, #10B981 50%, #22D3EE); box-shadow: 0 14px 34px -10px rgba(16, 185, 129, .75), inset 0 1px 0 rgba(255, 255, 255, .5); cursor: pointer; }
.ths-pbtn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); animation: brSheen 3.4s ease-in-out infinite; }
.ths-gbtn { height: 50px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
@media (max-width: 1023px) {
  .ths { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .ths-cf { height: 330px; }
  .ths-it { width: 170px; margin-left: -85px; top: 8px; }
  .ths-info { padding: 20px; border-radius: 26px; }
  .ths-cmp > div { grid-template-columns: 96px 1fr 66px; }
  .ths-gbtn span { display: none; }
}

/* --------------------------------------------------------------------------
   6. ACCESSIBILITÉ : réduction des animations
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #theme-fx *, #theme-hero *, #theme-hero *::before, #theme-hero *::after,
  html.theme-aurora .glass-card::after, html.theme-radar .game-poster-card::after {
    animation: none !important;
    transition: none !important;
  }
}
