@font-face {
  font-family: 'LazyDog';
  src: url('/assets/fonts/lazy_dog.ttf') format('truetype');
}
@font-face {
  font-family: 'OctoberCrow';
  src: url('/assets/fonts/October_Crow.ttf') format('truetype');
}

:root {
  --primary-color: hsla(268, 100%, 7%, 0.851);
  --secondary-color: hsl(270, 100%, 14%);
  --text-color: hsl(0, 0%, 86%);
  --accent-color: #1cce5b;
  --glow-color: rgba(140,200,255,0.8);
  --active-color: #36d399;
  --border-radius: 10px;
}

/* === Ambiance === */
body {
  background: #090013;
  color: var(--text-color);
  overflow-x: hidden;
}
.box-bg {
  position: fixed;
  inset: 0;
  background: url('/assets/images/FONDECRAN1.webp') no-repeat center/cover;
  z-index: -1;
  animation: fantomeFloat 14s ease-in-out infinite;
  filter: brightness(0.6);
}
@keyframes fantomeFloat {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === Conteneur principal === */
.game-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}
.game-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-top: 4rem;
    font-family: 'OctoberCrow', sans-serif;
    text-shadow: 0 0 10px #1cce5b5e;
    font-weight: lighter;
}
.game-header h2 {
    color: var(--text-color);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: 'LazyDog', sans-serif;
    text-shadow: 0 0 10px #1cce5b5e;
    font-weight: lighter;
}

/* === Options / stats === */
.squelette-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  /* background-color: var(--primary-color);
  border-radius: var(--border-radius);
  border: 1px dashed var(--accent-color); */
  padding: 10px 20px;
  margin-bottom: 20px;
}
.stat-pill {
  font-family: 'LazyDog';
  font-size: 1.2rem;
  border: 1px dashed var(--accent-color);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--secondary-color);
}
.game-button {
  padding: 8px 16px;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: var(--text-color);
  font-family: 'LazyDog';
  cursor: pointer;
  transition: all .25s ease;
}
.game-button:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 10px var(--accent-color);
}

/* === Layout === */
.os-top {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.squelette-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 2rem auto;
}
.os-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-items: center;
}
.os-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -20px;
}

/* === Boutons d’os === */
.os-item {
  background-color: rgba(20, 0, 40, 0.55);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  width: 100px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all .25s ease;
}
.os-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  transition: filter .25s ease;
}

/* ✅ le survol illumine l'image du bouton */
.os-item:hover img,
.os-item img.highlight {
  filter: drop-shadow(0 0 12px var(--accent-color)) brightness(1.5);
}

.os-name {
  font-family: 'LazyDog';
  font-size: 1rem;
  margin-top: 4px;
}
.os-count {
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #110024d9;
  border: 1px dashed var(--accent-color);
  color: var(--text-color);
  display: inline-flex;
  align-items:center;
  justify-content:center;
  font-family:'LazyDog',sans-serif;
  font-size: 1.2rem;
  text-shadow: 0 0 2px #000;
}
.os-item.active {
  background: hsla(141, 76%, 46%, 0.3);
  border-color: var(--active-color);
  color: #dbdbdb;
    border: 1px solid;
  border-image: linear-gradient(to top, #090013, #1cce5b, #090013) 1;
}

/* === Squelette SVG === */
.squelette-zone {
  position: relative;
  flex: 1;
  max-width: 280px;
}
#squelette-svg {
  width: 100%;
  height: auto;
  border: 1px solid;
  border-image: linear-gradient(to top, #090013, #1cce5b, #090013) 1;
  backdrop-filter: blur(6px);

}
#squelette-svg svg [id] {
  fill: rgba(255,255,255,0.08);
  stroke: #ccc;
  stroke-width: 0.8;
  transition: fill .25s, filter .25s, opacity .2s;
}
#squelette-svg svg [id].found {
  fill: #fff;
  filter: drop-shadow(0 0 6px var(--glow-color)) drop-shadow(0 0 18px var(--glow-color));
}
#squelette-svg svg [id].highlight {
  fill: #fff;
  filter: drop-shadow(0 0 10px var(--accent-color)) drop-shadow(0 0 20px var(--accent-color));
}
#squelette-svg svg.glow-full [id] {
  animation: glowPulse 2s infinite alternate;
}
@keyframes glowPulse {
  0% { filter: drop-shadow(0 0 8px var(--glow-color)); }
  100% { filter: drop-shadow(0 0 18px var(--glow-color)); }
}

/* === Regles === */
.game-rules {
  background: #110024d9;
  backdrop-filter: blur(4px);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  margin-top: 2rem;
  line-height: 1.5;
  text-align: center;
}
.game-rules h3 {
  font-size: 1.3rem;
  font-weight: lighter;
  color: var(--accent-color);
  margin-bottom: 1rem;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}
.game-rules strong {
  color: var(--accent-color);
}










/* 🔼 Bouton retour en haut, visible apres scroll */#back-to-top {
  position: fixed;
      bottom: 40px;
      right: 60px;
  background: #1cce5b;
  color: #090013;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  transition: opacity 0.3s ease;
}

/* 🔼 Bouton retour en haut, visible apres scroll */#back-to-top:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}