@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');

:root{
  --brand-red: #FF0036;
  --brand-red-hover: #990B21;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
  background: url('./img/fond.png') no-repeat center center fixed, linear-gradient(145deg, #f9f9f9, #e6ecf0);
  background-size: cover, auto;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Conteneur rendu par JS */
#app {
  width: 100%;
  max-width: 560px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

/* Écran avec fond gris semi-transparent partout */
.screen {
  background: rgba(245, 245, 245, 0.95);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1.2rem;
  box-sizing: border-box;
}

h1, h2 { color: #1a1a1a; margin: 0.4rem 0 0.5rem; }

/* Logo du jeu (plus gros sur mobile) */
.game-logo{
  width: 20vw;
  max-width: 220px;
}
@media (max-width: 600px){
  .game-logo{
    width: 60vw;
    max-width: 320px;
  }
}

/* Logo bas rouge (PNG) */
/* ... le reste inchangé ... */

/* Logo bas rouge (PNG) */
.brand-logo{
  width: 5vw;
  max-width: 64px;
  margin-top: 10px;
}
@media (max-width: 600px){
  .brand-logo{
    width: 20vw;
    max-width: 90px;
  }
}

button {
  padding: 0.75rem 1.3rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--brand-red);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s, transform 0.05s;
  box-shadow: 0 6px 16px rgba(255,0,54,0.25);
}
button:hover { background: var(--brand-red-hover); }
button:active { transform: translateY(1px); }

/* Deux boutons sur une ligne à l’écran de fin */
.btn-row{
  display: inline-flex;
  gap: 12px;
  margin-top: 10px;
}
.btn-row button{ margin-top: 0; }

img.post-img {
  width: 70%;
  max-width: 520px;
  border-radius: 14px;
  margin: 1rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.25s;
}
img.post-img:hover { transform: translateY(-2px); }

input#pseudoInput {
  padding: 0.7rem 0.9rem;
  width: 82%;
  max-width: 360px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  margin: 1rem 0;
  background: #fff;
}

/* Indicateur 1/10 */
.progress-indicator{
  font-weight: 800;
  margin-bottom: 6px;
}

/* SELECTS ++ jolis */
.picker-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0 8px;
  flex-wrap: wrap;
}
.select-wrap{ position: relative; }

.pretty-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 44px 12px 16px;
  font-size: 1.06rem;
  font-weight: 600;
  color: #1f1f1f;
  background: #ffffff;
  border: 2px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: border-color .2s, box-shadow .2s, transform .05s;
}
.pretty-select:hover{ border-color: #e5e5e5; }
.pretty-select:focus{
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(255,0,54,0.15);
}
.select-wrap::after{
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #555;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Top 10 centré & clean */
ol.top10 {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  text-align: center;
  max-width: 360px;
}
ol.top10 li{
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  margin: 0.45rem 0;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 700;
}
ol.top10 .rank{ color: var(--brand-red); }
ol.top10 .name{ justify-self: start; }
ol.top10 .pts{ opacity: 0.85; }

/* Timer */
#timer {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  color: #e74c3c;
  font-weight: 800;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  #app{ max-width: 92vw; }
  img.post-img { width: 88%; }
}


