:root {
  --bg-1: #060b17;
  --bg-2: #0c1326;
  --card: rgba(255,255,255,0.04);
  --muted: #a4b1c9;
  --text: #eaf1fb;
  --accent: #06b6d4;
  --accent-2: #6366f1;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0,0,0,0.55);
}

body {
  margin:0;
  padding:28px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  line-height:1.4;
  background:#0a0c18;
  position:relative;
  min-height:100vh;
  overflow-x:hidden;
}

.logo {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
  pointer-events:none;
}
.logo img {
  width:60px;
  height:60px;
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 4px 12px rgba(0,0,0,0.4);
}
.logo h1 {
  margin:0;
  font-size:22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.liquid-bg { position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.liquid-blob {
  position:absolute;
  width:900px; height:900px; border-radius:50%;
  filter:blur(220px);
  opacity:0.25;
  mix-blend-mode: lighten;
  background: radial-gradient(circle, rgba(99,102,241,0.9)0%, rgba(99,102,241,0.5)30%, rgba(99,102,241,0.15)70%, transparent 100%);
  animation: liquidMove 55s ease-in-out infinite;
}
.liquid-blob:nth-child(1){top:-10%; left:10%; animation-delay:0s;}
.liquid-blob:nth-child(2){top:40%; left:60%; animation-duration:70s; animation-delay:-15s; background: radial-gradient(circle, rgba(79,70,229,0.85)0%, rgba(79,70,229,0.45)35%, rgba(79,70,229,0.12)75%, transparent 100%);}
.liquid-blob:nth-child(3){top:65%; left:20%; animation-duration:90s; animation-delay:-30s; background: radial-gradient(circle, rgba(124,58,237,0.85)0%, rgba(124,58,237,0.45)35%, rgba(124,58,237,0.12)75%, transparent 100%);}
.liquid-blob:nth-child(4){top:20%; left:80%; animation-duration:100s; animation-delay:-45s; background: radial-gradient(circle, rgba(67,56,202,0.9)0%, rgba(67,56,202,0.5)30%, rgba(67,56,202,0.15)70%, transparent 100%);}

@keyframes liquidMove {
  0%{transform:translate(0,0) scale(1);}
  25%{transform:translate(-180px,120px) scale(1.2,0.9);}
  50%{transform:translate(140px,-160px) scale(0.9,1.2);}
  75%{transform:translate(-120px,-100px) scale(1.15,1.05);}
  100%{transform:translate(0,0) scale(1);}
}

.container { max-width:1200px; margin:0 auto; }
.muted { color: var(--muted); font-size:14px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px) saturate(130%);
  margin-bottom: 20px;
}

.tabs{display:flex; gap:8px; margin:12px 0;}
.tab {
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: var(--text);
  transition: all 0.25s ease;
}
.tab:hover {
  background: rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 0 6px rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.tab.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.55), rgba(99, 102, 241,0.35));
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  color: #ffffff;
}

.list{margin-top:12px; display:flex; flex-direction:column; gap:12px;}
.notif {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  transition: all .15s ease;
  flex-wrap: wrap; /* <-- IMPORTANT pour que top-row et stats se déplacent sur plusieurs lignes si besoin */
}
.notif:hover { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }

.meta {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0; /* pour éviter overflow sur mobile */
}
.meta .top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.meta .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.meta strong{font-size:15px;}
.meta span{margin-right:8px; cursor:default;}

.no-items{padding:18px; text-align:center; color:#98a0b3;}

/* Trophées top 3 */
.notif:nth-child(1) canvas { border:3px solid gold; box-shadow:0 0 12px rgba(255,215,0,0.7); border-radius:50%; }
.notif:nth-child(2) canvas { border:3px solid silver; box-shadow:0 0 12px rgba(192,192,192,0.7); border-radius:50%; }
.notif:nth-child(3) canvas { border:3px solid #cd7f32; box-shadow:0 0 12px rgba(205,127,50,0.7); border-radius:50%; }
.notif:nth-child(n+4) canvas { box-shadow:0 0 10px 3px rgba(99,102,241,0.55); border:2px solid rgba(99,102,241,0.3); border-radius:50%; }
.notif canvas {
  width: 64px;
  height: 64px;
  flex-shrink: 0; /* empêche le canvas de rétrécir */
}

/* Désactiver toute sélection ou interaction de sélection */
* {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Empêcher le glisser d’images, de canvas, etc. */
img, canvas {
  pointer-events: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
}

/* Optionnel : bloquer le clic droit (visuel uniquement) */
body {
  -webkit-touch-callout: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .logo { flex-direction:row; align-items:center; gap:12px; }
  .logo img { width:48px; height:48px; }
  .logo h1 { font-size:18px; }

  .tabs { flex-wrap:nowrap; justify-content:space-between; gap:6px; }
    .tab {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 12px;

    /* Ajout pour centrer parfaitement le texte horizontalement */
    justify-content: center;
  }

  .card { padding:12px; }
  .list { gap:10px; }

  .notif { flex-direction:row; align-items:center; gap:12px; padding:10px; width:100%; box-sizing:border-box; }
  .notif canvas { width: 48px; height: 48px; }

  .meta strong { font-size:14px; }
  .meta span { margin:0; }
}

@media (max-width: 480px) {
  .logo img { width:40px; height:40px; }
  .logo h1 { font-size:16px; }
  .tab { font-size:0.8rem; padding:6px 8px; }
  .notif canvas { width: 40px; height: 40px; }
  .meta strong { font-size:13px; }
}
