/* ==========================================================================
   JEU DE L'OIE DE LA CONJUGAISON - FEUILLE DE STYLES
   Fichier : css/oie.css
   École de l'Enfant-Jésus Morlanwelz
   ========================================================================== */

:root {
  --oie-primary: #3b82f6;
  --oie-primary-dark: #1d4ed8;
  --oie-gold: #f59e0b;
  --oie-gold-light: #fef3c7;
  --oie-green: #10b981;
  --oie-green-light: #d1fae5;
  --oie-pink: #ec4899;
  --oie-purple: #8b5cf6;
  --oie-bg: #f8fafc;
  --oie-card-bg: #ffffff;
  --oie-border: #e2e8f0;
  --oie-text: #1e293b;
  --oie-radius: 18px;
  --oie-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Conteneur Global */
.oie-container {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  color: var(--oie-text);
}

/* Barre supérieure de statistiques et outils */
.oie-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: white;
  padding: 14px 20px;
  border-radius: var(--oie-radius);
  box-shadow: var(--oie-shadow);
  border: 3px solid #ffde59;
  margin-bottom: 22px;
}

.oie-stats-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.oie-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}

.oie-stat-pill.gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.oie-stat-pill.streak {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.oie-stat-pill.tile {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.oie-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oie-btn-action {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.oie-btn-action:hover {
  background: #f0f7ff;
  border-color: var(--oie-primary);
  color: var(--oie-primary);
  transform: translateY(-2px);
}

.oie-btn-action.highlight {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}

/* Zone principale de jeu (Plateau + Colonne Dé/Contrôles) */
.oie-game-arena {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
}

@media (max-width: 960px) {
  .oie-game-arena {
    grid-template-columns: 1fr;
  }
}

/* Wrapper du Plateau */
.oie-board-wrapper {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fefce8 100%);
  border: 4px solid #86efac;
  border-radius: 24px;
  padding: 24px;
  position: relative;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.12);
  min-height: 520px;
  overflow: hidden;
}

/* Grille du plateau (style serpentine / serpentin) */
.oie-board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .oie-board-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .oie-board-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

/* Carte Case */
.oie-tile {
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 8px 6px;
  min-height: 86px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04);
}

.oie-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.oie-tile.active-pawn-here {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 8px 20px rgba(245, 158, 11, 0.25);
  background: #fffbeb;
}

/* Numéro de la case */
.tile-number {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  background: #f8fafc;
  padding: 2px 5px;
  border-radius: 8px;
}

.oie-tile.active-pawn-here .tile-number {
  background: #f59e0b;
  color: white;
}

/* Contenu intérieur de case */
.tile-inner-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  gap: 2px;
}

.tile-pronoun {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  text-transform: capitalize;
}

.tile-verb {
  font-size: 13px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.1;
  word-break: break-word;
}

.tile-tense-pill {
  font-size: 9px;
  font-weight: 800;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Variantes spéciales des cases */
.oie-tile.tile-start {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #4ade80;
}

.oie-tile.tile-finish {
  background: linear-gradient(135deg, #fef3c7, #fde047);
  border-color: #eab308;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.35);
}

.oie-tile.tile-oie {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: #38bdf8;
}

.oie-tile.tile-pont {
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  border-color: #fb923c;
}

.oie-tile.tile-etoile {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  border-color: #e879f9;
}

.oie-tile.tile-pause {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #f87171;
}

.tile-icon {
  font-size: 26px;
  margin-bottom: 2px;
  display: inline-block;
}

.tile-label {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.pulse-anim {
  animation: pulseOie 1.8s infinite;
}

@keyframes pulseOie {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}

.star-anim {
  animation: starRotate 3s infinite linear;
}

@keyframes starRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Pion Oie */
#oie-pawn {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.28));
  will-change: transform;
}

.pawn-svg {
  width: 100%;
  height: 100%;
}

.pawn-hopping {
  animation: hopBounce 0.28s ease-in-out;
}

@keyframes hopBounce {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.18) translateY(-14px); }
  100% { transform: scale(1) translateY(0); }
}

/* Colonne Dé et Contrôles */
.oie-controls-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oie-dice-box {
  background: white;
  border: 3px solid #ffde59;
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--oie-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dice-box-title {
  font-size: 16px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 16px;
}

/* Dé 3D Interactif */
.dice-stage {
  width: 84px;
  height: 84px;
  perspective: 400px;
  margin: 10px auto 18px auto;
  cursor: pointer;
}

.dice-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.85, 0.4, 1.2);
}

.dice-face {
  position: absolute;
  width: 80px;
  height: 80px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.12);
  display: grid;
  padding: 10px;
  box-sizing: border-box;
}

/* Positions 3D des faces */
.face-1 { transform: translateZ(40px); grid-template: 1fr / 1fr; align-items: center; justify-items: center; }
.face-2 { transform: rotateX(90deg) translateZ(40px); grid-template: repeat(2, 1fr) / repeat(2, 1fr); justify-items: center; align-items: center; }
.face-3 { transform: rotateY(-90deg) translateZ(40px); grid-template: repeat(3, 1fr) / repeat(3, 1fr); }
.face-4 { transform: rotateY(90deg) translateZ(40px); grid-template: repeat(2, 1fr) / repeat(2, 1fr); justify-items: center; align-items: center; }
.face-5 { transform: rotateX(-90deg) translateZ(40px); grid-template: repeat(3, 1fr) / repeat(3, 1fr); align-items: center; justify-items: center; }
.face-6 { transform: rotateX(180deg) translateZ(40px); grid-template: repeat(3, 1fr) / repeat(2, 1fr); justify-items: center; align-items: center; }

/* Points du dé (pips) */
.pip {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
}

.face-3 .pip:nth-child(1) { grid-area: 1 / 1; }
.face-3 .pip:nth-child(2) { grid-area: 2 / 2; }
.face-3 .pip:nth-child(3) { grid-area: 3 / 3; }

.face-5 .pip:nth-child(1) { grid-area: 1 / 1; }
.face-5 .pip:nth-child(2) { grid-area: 1 / 3; }
.face-5 .pip:nth-child(3) { grid-area: 2 / 2; }
.face-5 .pip:nth-child(4) { grid-area: 3 / 1; }
.face-5 .pip:nth-child(5) { grid-area: 3 / 3; }

/* Animation roulement de dé */
.dice-cube.rolling-animation {
  animation: roll3d 0.85s ease-in-out infinite;
}

@keyframes roll3d {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  25% { transform: rotateX(180deg) rotateY(90deg) rotateZ(45deg); }
  50% { transform: rotateX(270deg) rotateY(270deg) rotateZ(180deg); }
  75% { transform: rotateX(450deg) rotateY(180deg) rotateZ(270deg); }
  100% { transform: rotateX(720deg) rotateY(360deg) rotateZ(360deg); }
}

.dice-result-badge {
  font-size: 15px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pop-badge {
  animation: popBadge 0.35s ease;
}

@keyframes popBadge {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Bouton Grand Lancer */
.btn-roll-dice {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-roll-dice:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-roll-dice:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spacebar-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 600;
}

/* Carte Légende Rapide */
.oie-legend-card {
  background: white;
  border: 2px solid var(--oie-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--oie-shadow);
}

.legend-title {
  font-size: 14px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   MODALE POP-UP DE CONJUGAISON
   ========================================================================== */
.oie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.oie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.oie-modal-card {
  background: white;
  border: 4px solid #ffde59;
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.oie-modal-overlay.visible .oie-modal-card {
  transform: scale(1);
}

.conj-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.conj-modal-title {
  font-size: 20px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 6px;
}

.conj-tense-badge {
  display: inline-block;
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
}

/* Défi : Pronom et Verbe */
.conj-challenge-box {
  background: #f8fafc;
  border: 2px dashed #93c5fd;
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}

.conj-challenge-pronoun {
  font-size: 28px;
  font-weight: 900;
  color: #0284c7;
  margin-bottom: 4px;
}

.conj-challenge-verb {
  font-size: 15px;
  font-weight: 700;
  color: #64748b;
}

/* Zone de saisie */
.conj-input-wrapper {
  margin-bottom: 14px;
}

.conj-input-text {
  width: 100%;
  padding: 14px 18px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  border: 3px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.conj-input-text:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.conj-input-text.answer-correct {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}

.conj-input-text.answer-wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

/* Clavier d'accents rapides */
.accents-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.accent-key-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 15px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.accent-key-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
}

/* Feedback Box */
.conj-feedback-box {
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.conj-feedback-box.feedback-success {
  background: #d1fae5;
  border: 2px solid #34d399;
  color: #065f46;
}

.conj-feedback-box.feedback-error {
  background: #fee2e2;
  border: 2px solid #f87171;
  color: #991b1b;
}

.feedback-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}

.feedback-hint {
  font-size: 13px;
  margin-top: 4px;
  font-style: italic;
}

/* Actions modale */
.conj-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-conj-submit, .btn-conj-continue {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.2s ease;
}

.btn-conj-submit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-conj-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-conj-continue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Modale Événement Spécial (Oie, Pont, Étoile) */
.special-modal-card {
  max-width: 440px;
  text-align: center;
}

.special-modal-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.special-modal-title {
  font-size: 22px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 10px;
}

.special-modal-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Modale Réglages & Règles */
.modal-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.modal-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}

.modal-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  color: #1e293b;
  background: white;
  outline: none;
}

.modal-select:focus {
  border-color: #3b82f6;
}

/* Modale de Victoire */
.victory-modal-card {
  max-width: 580px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.victory-trophy {
  font-size: 52px;
  margin-bottom: 4px;
  animation: bounceTrophy 1.2s infinite alternate;
}

@keyframes bounceTrophy {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.1); }
}

.victory-title {
  font-size: 24px;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 4px;
}

.victory-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .victory-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.v-stat-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 6px;
}

.v-stat-num {
  font-size: 20px;
  font-weight: 900;
  color: #0284c7;
}

.v-stat-desc {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* Section Enregistrement du Nom & Score */
.victory-name-section {
  background: linear-gradient(135deg, #fefce8, #fef08a);
  border: 2px dashed #facc15;
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
  text-align: center;
}

.name-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 10px;
}

.name-input-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.player-name-input {
  flex: 1;
  max-width: 320px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  color: #1e293b;
  outline: none;
  background: white;
  transition: all 0.2s ease;
}

.player-name-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-save-score {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  transition: all 0.2s ease;
  font-family: 'Fredoka', sans-serif;
}

.btn-save-score:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4);
}

.btn-save-score:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.save-score-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.save-score-feedback.feedback-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

/* Tableau d'honneur (Hall of Fame) */
.victory-hall-section {
  margin-top: 16px;
  text-align: left;
}

.hall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hall-title {
  font-size: 15px;
  font-weight: 800;
  color: #334155;
}

.btn-clear-scores {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  transition: all 0.15s ease;
}

.btn-clear-scores:hover {
  background: #fecaca;
}

.hall-table-wrapper {
  max-height: 220px;
  overflow-y: auto;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: white;
}

.hall-scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.hall-scores-table th {
  background: #f8fafc;
  padding: 8px 10px;
  color: #64748b;
  font-weight: 800;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.hall-scores-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.hall-scores-table tr:last-child td {
  border-bottom: none;
}

.score-rank {
  font-weight: 900;
  color: #b45309;
}

.score-name {
  font-weight: 700;
  color: #1e293b;
}

.score-points {
  color: #0284c7;
  font-weight: 800;
}

.score-mode {
  font-size: 11px;
  color: #64748b;
}

.score-date {
  font-size: 11px;
  color: #94a3b8;
}

.score-row-highlight {
  background: #fefce8 !important;
  box-shadow: inset 0 0 0 2px #facc15;
}

.new-score-badge {
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Toast Notifications */
.oie-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 100000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.oie-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Canvas Confettis */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

.hidden {
  display: none !important;
}
