body {
  margin: 0;
  background: radial-gradient(circle at top, #1a1a1a, #000);
  font-family: 'Roboto', sans-serif;
  color: #fff;
}

.draw-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
}

/* cellules */
.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
  font-size: 25px;
  text-align: left;
}

/* header */
.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  font-size: 25px;
}

/* body + footer séparation */
.table tbody + tbody {
  border-top: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-premium {
  background: rgba(20,20,20,0.9);
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.table-premium th {
  background: rgba(255,255,255,0.05);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.table-premium tr:hover {
  background: rgba(255,255,255,0.08);
}

.table-animated tbody tr {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: rowEnter 0.5s ease forwards;
}

/* délai en cascade */
.table-animated tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table-animated tbody tr:nth-child(2) { animation-delay: 0.2s; }
.table-animated tbody tr:nth-child(3) { animation-delay: 0.3s; }
.table-animated tbody tr:nth-child(4) { animation-delay: 0.4s; }
.table-animated tbody tr:nth-child(5) { animation-delay: 0.5s; }

@keyframes rowEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.table-animated tbody tr {
  transition: all 0.25s ease;
}

.table-animated tbody tr:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.05);

  box-shadow: 0 0 15px var(--glow-color);
}
.table-animated tbody tr:active {
  transform: scale(0.98);
}

.table-animated thead th {
  opacity: 0;
  transform: translateY(-10px);
  animation: headerEnter 0.5s ease forwards;
}

@keyframes headerEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.level-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.level-cell svg {
  width: 20px;
  height: 20px;
}

.level-cell.bronze svg {
  fill: #cd7f32;
  filter: drop-shadow(0 0 6px rgba(205,127,50,0.8));
}

.level-cell.argent svg {
  fill: #c0c0c0;
  filter: drop-shadow(0 0 6px rgba(192,192,192,0.9));
}

.level-cell.or svg {
  fill: gold;
  filter: drop-shadow(0 0 8px rgba(255,215,0,1));
}

.level-cell.diamant svg {
  fill: #00eaff;
  filter: drop-shadow(0 0 10px rgba(0,234,255,1));
}

/* container */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-family: 'Segoe UI', sans-serif;
}

/* box */
.time-box {
  background: rgba(20,20,20,0.9);
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  min-width: 70px;

  box-shadow: 0 0 15px var(--glow-color);
}

/* numbers */
.num {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);

  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* animation */
.num.animate {
  transform: translateY(-10px) scale(1.2);
  opacity: 0.5;
}

/* labels */
.label {
  font-size: 12px;
  opacity: 0.6;
}

.card {
  min-width: 420px;
  width: auto;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  background: rgba(20,20,20,0.9);
  transition: 0.4s;
}

/* Glow dynamique */
.card::before {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: 20px;
  opacity: 0.3;
  z-index: -1;
}

/* Counter */
.counter {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.counter span {
  padding: 15px 12px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: bold;
}

/* Button */
.btn {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: bold;
  font-size: 25px;
  cursor: pointer;
  overflow: hidden;
  margin-top: 35px;

  background: var(--btn-gradient);
  color: #000;

  animation: pulse 2s infinite ease-in-out;
}

/* 🔥 pulse dynamique */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--glow-color);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--glow-color);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--glow-color);
  }
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    var(--shine-color),
    transparent
  );

  transform: skewX(-20deg);
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 140%; }
}

.level{
    font-size: 30px;
    margin-bottom: 20px;
}
.name{
    font-size: 50px;
}
.trophy{
    font-size: 30px;
}
.sub{
    opacity: 0.5;
}
.phone, .reward{
    font-size: 20px;
    opacity: 0.5;
}

.particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;

  background: var(--glow-color);

  animation: explode 0.8s ease-out forwards;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.3);
    opacity: 0;
  }
}

.btn.flash {
  animation: flash 0.4s ease;
}

@keyframes flash {
  0% {
    box-shadow: 0 0 10px var(--glow-color);
  }
  50% {
    box-shadow: 0 0 80px var(--glow-color),
                0 0 120px var(--glow-color);
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.level-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.level-content svg {
  width: 22px;
  height: 22px;

  /* 🔥 glow dynamique */
  filter: drop-shadow(0 0 6px var(--glow-color));
}

.level-label {
  font-weight: bold;
}

.level-content svg {
  animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}


.odometer {
    font-size: 80px;
    color: #111;
}

.odometer {
    letter-spacing: 5px;
    font-weight: bold;
    /* text-shadow: 0 0 10px rgba(0,0,0,0.2); */
}

.odometer,
.odometer .odometer-digit,
.odometer .odometer-digit-inner,
.odometer .odometer-ribbon,
.odometer .odometer-ribbon-inner,
.odometer .odometer-value {
    color: #ffffff !important;
    text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
}

/* 🔥 enlever le fond blanc du dernier chiffre */
.odometer .odometer-digit:last-child {
    background: transparent !important;
}

/* 🔥 enlever effet "highlight" */
.odometer .odometer-digit {
    background: linear-gradient(180deg, #111, #222) !important;
    border-radius: 10px;
}
.winner{
    margin-top: 20px;
}

/* BRONZE */
.card.bronze {
  border: 1px solid #cd7f32;
  box-shadow: 0 0 20px rgba(205,127,50,0.4);
  --glow-color: rgba(205,127,50,0.7);
  --btn-gradient: linear-gradient(45deg, #cd7f32, #e0a96d);
  --shine-color: rgba(255, 220, 180, 0.6);
}

.card.bronze::before {
  background: linear-gradient(45deg, #cd7f32, transparent);
}

.card.bronze .counter span {
  background: #1a0f08;
  color: #cd7f32;
  box-shadow: 0 0 10px rgba(205,127,50,0.5);
}

.card.bronze .btn {
  background: linear-gradient(45deg, #cd7f32, #e0a96d);
  color: #000;
}

/* ARGENT */
.card.silver {
  border: 1px solid #c0c0c0;
  box-shadow: 0 0 25px rgba(192,192,192,0.5);
  --glow-color: rgba(192,192,192,0.8);
  --btn-gradient: linear-gradient(45deg, #c0c0c0, #f5f5f5);
  --shine-color: rgba(255,255,255,0.7);
}

.card.silver::before {
  background: linear-gradient(45deg, #c0c0c0, transparent);
}

.card.silver .counter span {
  background: #111;
  color: #e5e5e5;
  box-shadow: 0 0 12px rgba(192,192,192,0.6);
}

.card.silver .btn {
  background: linear-gradient(45deg, #c0c0c0, #f5f5f5);
  color: #000;
}

/* OR */
.card.gold {
  border: 1px solid gold;
  box-shadow: 0 0 35px rgba(255,215,0,0.7);
  --glow-color: rgba(255,215,0,0.9);
  --btn-gradient: linear-gradient(45deg, #d4af37, #ffd700);
  --shine-color: rgba(255,255,200,0.8);
}

.card.gold::before {
  background: linear-gradient(45deg, gold, transparent);
}

.card.gold .counter span {
  background: #000;
  color: gold;
  box-shadow: 0 0 15px rgba(255,215,0,0.8);
}

.card.gold .btn {
  background: linear-gradient(45deg, #d4af37, #ffd700);
  color: #000;
}

/* DIAMANT */
.card.diamond {
  border: 1px solid #00eaff;
  box-shadow: 0 0 40px rgba(0,234,255,0.8);
  --glow-color: rgba(0,234,255,0.9);
  --btn-gradient: linear-gradient(45deg, #00eaff, #ffffff);
  --shine-color: rgba(255,255,255,0.9);
}

.card.diamond::before {
  background: linear-gradient(45deg, #00eaff, #ffffff, #00eaff);
}

.card.diamond .counter span {
  background: #001418;
  color: #00eaff;
  box-shadow: 0 0 20px rgba(0,234,255,1);
}

.card.diamond .btn {
  background: linear-gradient(45deg, #00eaff, #ffffff);
  color: #000;
}

.card {
  animation: pop 0.4s ease;
  animation: cardGlow 4s infinite alternate;
}

@keyframes cardGlow {
  from { box-shadow: 0 0 20px var(--glow-color); }
  to { box-shadow: 0 0 50px var(--glow-color); }
}

@keyframes pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}