@font-face {
  font-family: 'KarmaFuture'; 
  src:  url('../polices/KarmaFuture.woff2') format('woff2'),
        url('../polices/KarmaFuture.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Gameshow'; 
  src:  url('../polices/Gameshow.woff2') format('woff2'),
        url('../polices/Gameshow.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'orangeki'; 
  src:  url('../polices/orangeki.woff2') format('woff2'),
        url('../polices/orangeki.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ---- BASE ---- */
body {
  font-family: 'orangeki', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(45deg, #ffcc00, #ff6600, #ff0000);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.scoreboard-container {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  width: 800px;
  overflow-x: auto;
}

.title {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px #000;
  color: #ffcc00;
  margin-bottom: 20px;
  font-family: 'KarmaFuture', 'Arial', sans-serif;
}

.icon {
  width: 40px;
  height: 40px;
}

/* ---- TITRES H2 ET H3 ---- */
h2 {
  font-size: 2rem;
  text-shadow: 2px 2px 3px #000;
  color: #ffcc00;
  margin-bottom: 15px;
  font-family: 'KarmaFuture', 'Arial', sans-serif;
}

h3 {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px #000;
  color: #ffcc00;
  margin-bottom: 10px;
  font-family: 'KarmaFuture', 'Arial', sans-serif;
}

/* ---- TABLEAU ---- */
table.scoreboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  color: #fff;
}

table.scoreboard thead {
  background: linear-gradient(45deg, #ff0000, #ff6600);
}

table.scoreboard th {
  padding: 10px;
  text-transform: uppercase;
  font-size: 1.1em;
  border: 3px solid #fff;
  text-shadow: 1px 1px 2px #000;
}

table.scoreboard tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.1);
}

table.scoreboard td {
  text-align: center;
  padding: 10px;
  border: 2px solid #fff;
}

table.scoreboard tr:hover {
  background: rgba(255, 255, 255, 0.4);
  transition: 0.3s ease;
}

table.scoreboard td:first-child {
  font-weight: bold;
  color: #ffcc00;
  font-size: 1.5rem;
}

table.scoreboard td:nth-child(2) {
  font-style: italic;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .title {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  table.scoreboard th, table.scoreboard td {
    font-size: 1rem;
  }
}
