/* assets/css/advent.css */
/* =========================================
   Calendrier de l'Avent — Arcane's Cookie
   ========================================= */

.page-advent {
    /* On laisse ton background global faire le boulot si tu veux,
       mais on ajoute une légère couche "Noël magique" */
    padding: 3rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
}

.advent-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 2.5rem 2rem 3rem;
    background: radial-gradient(circle at top, rgba(214, 180, 106, 0.12), transparent 60%),
                linear-gradient(135deg, #121326 0%, #161633 40%, #0c1227 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    color: #f8f3e7;
    position: relative;
    overflow: hidden;
}

/* Liseré léger doré autour */
.advent-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(214, 180, 106, 0.5);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* =======================
   Header
   ======================= */

.advent-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.advent-title {
    margin: 0 0 0.5rem 0;
    font-size: clamp(2.1rem, 2.6vw + 1rem, 2.9rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5e3be;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
}

.advent-subtitle {
    margin: 0;
    font-size: 0.98rem;
    max-width: 580px;
    margin-inline: auto;
    color: rgba(248, 243, 231, 0.85);
}

/* =======================
   Grille
   ======================= */

.advent-calendar {
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.advent-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1024px) {
    .advent-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .advent-container {
        padding: 2rem 1.25rem 2.5rem;
    }

    .advent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
    }
}

@media (max-width: 480px) {
    .advent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }
}

/* =======================
   Cartes jour
   ======================= */

.advent-day-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid rgba(236, 223, 197, 0.25);
    background: radial-gradient(circle at top left, rgba(214, 180, 106, 0.35), transparent 60%),
                radial-gradient(circle at bottom right, rgba(136, 96, 196, 0.3), transparent 55%),
                linear-gradient(145deg, #222447, #151529);
    color: #f8f3e7;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    outline: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        opacity 0.25s ease;
}

.advent-day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    border-color: rgba(214, 180, 106, 0.9);
}

/* Locked = jour pas encore arrivé */

.advent-day-card.is-locked {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    border-color: rgba(150, 150, 180, 0.5);
    background: linear-gradient(145deg, #141529, #090a16);
}

.advent-day-card.is-locked:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Ouvert = fond doré */

.advent-day-card.is-open {
    background: radial-gradient(circle at top, #f0dfb4 0%, #e0c67c 35%, #c29839 70%, #7d541d 100%);
    border-color: #f9f2d9;
    color: #1a1323;
}

/* =======================
   Faces avant / arrière
   ======================= */

.advent-day-front,
.advent-day-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
    text-align: center;
    transition: opacity 0.24s ease;
    backface-visibility: hidden;
}

.advent-day-front {
    opacity: 1;
}

.advent-day-back {
    opacity: 0;
}

/* Crossfade à l’ouverture */
.advent-day-card.is-open .advent-day-front {
    opacity: 0;
    pointer-events: none;
}

.advent-day-card.is-open .advent-day-back {
    opacity: 1;
}

/* Contenu avant */

.advent-day-number {
    font-size: clamp(1.8rem, 2.1vw + 0.8rem, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #f5e0aa;
    text-shadow:
        0 0 12px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(214, 180, 106, 0.5);
    margin-bottom: 0.25rem;
}

.advent-day-card.is-open .advent-day-number {
    color: #2b1d0c;
    text-shadow: none;
}

.advent-day-lock {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Contenu arrière */

.advent-day-emoji {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.advent-day-text {
    font-size: 0.8rem;
    line-height: 1.3;
    max-width: 90%;
}

/* Ajustement de couleur de texte sur fond doré */
.advent-day-card.is-open .advent-day-text {
    color: #2b1908;
}

/* =======================
   Texte aide
   ======================= */

.advent-helper-text {
    margin-top: 1.75rem;
    font-size: 0.85rem;
    text-align: center;
    color: rgba(248, 243, 231, 0.75);
}
/* =========================================
   Page Surprise Avent
   ========================================= */

.page-advent-surprise {
    padding: 3rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
}

.advent-surprise-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 2.5rem 2rem 3rem;
    background: radial-gradient(circle at top, rgba(214, 180, 106, 0.14), transparent 60%),
                linear-gradient(145deg, #151529 0%, #0d0f20 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #f8f3e7;
    position: relative;
    overflow: hidden;
}

.advent-surprise-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(214, 180, 106, 0.5);
    pointer-events: none;
}

.advent-surprise-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(245, 227, 190, 0.9);
    text-decoration: none;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.advent-surprise-back-btn:hover {
    opacity: 1;
    transform: translateX(-2px);
}

.advent-surprise-header {
    text-align: center;
    margin-bottom: 2rem;
}

.advent-surprise-day {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 227, 190, 0.78);
    margin-bottom: 0.6rem;
}

.advent-surprise-title {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.7rem, 2vw + 0.8rem, 2.2rem);
    color: #f5e3be;
}

.advent-surprise-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(248, 243, 231, 0.8);
}

.advent-surprise-body {
    margin-top: 1rem;
}

.advent-surprise-media {
    text-align: center;
    margin-bottom: 1.5rem;
}

.advent-surprise-cover {
    max-width: 260px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(214, 180, 106, 0.6);
}

.advent-surprise-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(248, 243, 231, 0.9);
    margin-bottom: 1.8rem;
}

.advent-surprise-actions {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
}

.advent-surprise-audio {
    width: 100%;
    max-width: 420px;
}

/* Boutons */

.advent-surprise-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 180, 106, 0.9);
    background: radial-gradient(circle at top, #f0dfb4 0%, #c4983c 60%, #7b4f1c 100%);
    color: #2b1d0c;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.advent-surprise-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 1);
    filter: brightness(1.05);
}

.advent-surprise-btn.secondary {
    background: transparent;
    color: #f5e3be;
    border-color: rgba(214, 180, 106, 0.75);
}

/* Promo code */

.advent-surprise-promo {
    background: rgba(12, 13, 32, 0.7);
    border-radius: 18px;
    border: 1px solid rgba(214, 180, 106, 0.6);
    padding: 1rem 1.3rem;
}

.advent-surprise-promo-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(245, 227, 190, 0.8);
    margin-bottom: 0.35rem;
}

.advent-surprise-promo-code {
    font-family: monospace;
    font-size: 1.1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(8, 9, 22, 0.9);
    border: 1px solid rgba(214, 180, 106, 0.9);
    display: inline-block;
}

.advent-surprise-promo-valid {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: rgba(245, 227, 190, 0.7);
}

@media (max-width: 640px) {
    .advent-surprise-container {
        padding: 2rem 1.4rem 2.5rem;
    }

    .advent-surprise-actions {
        align-items: stretch;
    }

    .advent-surprise-btn {
        width: 100%;
    }

    .advent-surprise-cover {
        max-width: 220px;
    }
}
/* =========================================
   Mini-jeu — Renard Runner
   ========================================= */

.runner-page {
    padding: 3rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
}

.runner-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 2rem 1.5rem 2.5rem;
    background: radial-gradient(circle at top, rgba(214, 180, 106, 0.15), transparent 60%),
                linear-gradient(145deg, #151529 0%, #090a16 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
    color: #f8f3e7;
    position: relative;
    overflow: hidden;
}

.runner-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(214, 180, 106, 0.5);
    pointer-events: none;
}

.runner-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.runner-title {
    margin: 0 0 0.4rem 0;
    font-size: clamp(1.7rem, 2vw + 0.8rem, 2.2rem);
    color: #f5e3be;
}

.runner-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(248, 243, 231, 0.85);
}

.runner-meta {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(248, 243, 231, 0.75);
}

.runner-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr);
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

@media (max-width: 800px) {
    .runner-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.runner-canvas-wrap {
    background: linear-gradient(to top, #0b0d19 0%, #14182b 60%, #1d223c 100%);
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(214, 180, 106, 0.4);
}

#runner-canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: transparent;
}

.runner-panel {
    font-size: 0.9rem;
    color: rgba(248, 243, 231, 0.9);
}

.runner-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.runner-stat-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.runner-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: rgba(245, 227, 190, 0.8);
}

.runner-value {
    font-weight: 600;
}

.runner-controls {
    margin-top: 0.5rem;
}

.runner-controls ul {
    padding-left: 1.1rem;
    margin: 0.2rem 0 0.7rem 0;
}

.runner-controls li {
    margin-bottom: 0.15rem;
}

.runner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(214, 180, 106, 0.9);
    background: radial-gradient(circle at top, #f0dfb4 0%, #c4983c 60%, #7b4f1c 100%);
    color: #2b1d0c;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.9);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.runner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 1);
    filter: brightness(1.05);
}

.runner-hint {
    font-size: 0.8rem;
    color: rgba(248, 243, 231, 0.75);
    margin-top: 0.6rem;
}

.runner-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(245, 227, 190, 0.9);
    text-decoration: none;
    margin-bottom: 1.2rem;
    opacity: 0.85;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.runner-back-link:hover {
    opacity: 1;
    transform: translateX(-2px);
}
.runner-badge-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(120%);
  background: rgba(13, 10, 30, 0.95);
  color: #f5e3be;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid #d4af37;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* Champ pseudo invité */
.runner-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 180, 106, 0.45);
  background: rgba(7, 7, 15, 0.7);
  color: #f5e3be;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.runner-input::placeholder {
  color: rgba(245, 227, 190, 0.5);
}

.runner-input:focus {
  border-color: #d6b46a;
  background: rgba(10, 10, 20, 0.95);
  box-shadow: 0 0 0 1px rgba(214, 180, 106, 0.4),
              0 0 12px rgba(214, 180, 106, 0.25);
}
/* Toast badges */
.runner-badge-toast {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%) translateY(20px);
  min-width: 260px;
  max-width: 90vw;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #f8e6b8 0, #d6b46a 38%, #7a4b2f 100%);
  color: #120f1f;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* État affiché */
.runner-badge-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Classement en 2 colonnes */
.runner-leaderboard-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.runner-leaderboard-table--half {
  flex: 1 1 0;
}

/* Layout jeu en colonne */
.runner-layout {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Barre de stats au-dessus du jeu */
.runner-stats-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  background: rgba(6, 8, 20, 0.9);
  border: 1px solid rgba(248, 222, 160, 0.25);
}

.runner-stats-line {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

/* Bouton rejouer dans la barre */
.runner-btn-inline {
  margin-left: auto;
}

/* Canvas plus gros */
.runner-canvas-large {
  max-width: 100%;
}

.runner-canvas-large canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Bloc instructions sous le jeu */
.runner-controls-bottom {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(6, 8, 20, 0.9);
  border: 1px solid rgba(248, 222, 160, 0.18);
}

/* Responsive : pile tout propre sur mobile */
@media (max-width: 768px) {
  .runner-leaderboard-columns {
    flex-direction: column;
  }

  .runner-stats-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .runner-btn-inline {
    margin-left: 0;
    align-self: stretch;
    text-align: center;
  }
}
.runner-leaderboard-summary {
  display: flex;
  justify-content: center; /* centré sous le titre */
  margin-top: 0.5rem;
}
.runner-leaderboard-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center; /* centre le bloc 2 x 5 */
}
/* ===== Skins panel ===== */

.runner-skins-panel {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, #26213b 0%, #141523 40%, #090a12 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.runner-skins-panel .runner-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

/* grille de skins */

.runner-skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.runner-skin-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.3));
  color: #f9f6ff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out,
    background 0.15s ease-out;
  font-size: 0.85rem;
}

.runner-skin-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
}

.runner-skin-item--active {
  border-color: #facc6b;
  box-shadow: 0 0 0 1px rgba(250, 204, 107, 0.6), 0 10px 25px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at top left, rgba(250, 204, 107, 0.20), rgba(0, 0, 0, 0.45));
}

.runner-skin-item--active::before {
  content: "★";
  position: absolute;
  top: 4px;
  right: 7px;
  font-size: 0.8rem;
  color: #facc6b;
}

.runner-skin-item--locked {
  cursor: default;
  opacity: 0.5;
}

.runner-skin-item--locked::after {
  content: "🔒";
  position: absolute;
  top: 4px;
  right: 7px;
  font-size: 0.75rem;
  opacity: 0.85;
}

.runner-skin-label {
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runner-skin-meta {
  font-size: 0.75rem;
  opacity: 0.86;
}

/* petit ajustement du hint */

.runner-skins-panel .runner-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.85;
}
/* ===== Avatar de skin dans le tableau ===== */

.runner-leaderboard-table .runner-skin-cell {
  text-align: center;
  width: 48px;
}

.runner-skin-avatar {
  --skin-body: #c8662b;
  --skin-ear: #5a2a10;
  --skin-muzzle: #f3f2f0;

  position: relative;
  display: inline-block;
  width: 30px;
  height: 22px;
  border-radius: 12px 18px 16px 14px;
  background: var(--skin-body);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* oreille */
.runner-skin-avatar::before {
  content: "";
  position: absolute;
  right: -3px;
  top: -6px;
  border-style: solid;
  border-width: 0 5px 9px 5px;
  border-color: transparent transparent var(--skin-ear) transparent;
}

/* museau */
.runner-skin-avatar::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 7px;
  width: 12px;
  height: 9px;
  border-radius: 999px;
  background: var(--skin-muzzle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* oeil */
.runner-skin-avatar-eye {
  position: absolute;
  right: 3px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #05050a;
}
/* ===== Skins mini-menu ===== */

.runner-skins-panel {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.runner-skins-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.runner-skin-item {
  position: relative;
  min-width: 160px;
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.runner-skin-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.65);
  border-color: rgba(249, 250, 251, 0.7);
}

.runner-skin-item--active {
  border-color: #facc15;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.65);
  background: radial-gradient(circle at top, rgba(250, 204, 21, 0.16), rgba(15, 23, 42, 0.96));
}

.runner-skin-item--locked {
  cursor: not-allowed;
  opacity: 0.55;
  border-style: dashed;
}

.runner-skin-label {
  font-weight: 600;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runner-skin-meta {
  font-size: 0.72rem;
  color: #cbd5f5;
}

/* ===== Avatar de skin dans le classement ===== */

.runner-leaderboard-table td.runner-skin-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.runner-skin-avatar {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 8px rgba(15, 23, 42, 0.7);
  flex-shrink: 0;
}

.runner-skin-avatar-name {
  font-size: 0.72rem;
  color: #e5e7eb;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.runner-skins-section {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
}

.runner-skins-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.runner-skins-col h3 {
  margin-bottom: .5rem;
  font-family: var(--font-title);
}

.runner-skins-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.runner-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center;
}

.runner-stats-controls {
  align-items: stretch;
}

.runner-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1.8rem;
  border-radius: 16px;
  flex: 1;
  min-width: 0;
}

.runner-stats .runner-stats-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}

.runner-audio-options {
  margin: 1rem 0;
}

.runner-controls h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.runner-controls ul {
  padding-left: 1.2rem;
}

.runner-canvas-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.runner-badge-toast {
  position: fixed;          /* plus dans le flux du canvas */
  left: 50%;
  bottom: 1.5rem;           /* en bas de l’écran */
  transform: translateX(-50%);
  z-index: 9999;

  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.95rem;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform-origin: center bottom;
}

.runner-badge-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}
