:root {
    --primary-color: hsla(268, 100%, 7%, 0.851);
    --secondary-color: hsl(270, 100%, 14%);
    --text-color: hsl(0, 0%, 86%);
    --accent-color: hsl(141, 76%, 46%);
    --border-radius: 11px;
    --game-max-width: 800px;
}

.game-container {
    max-width: var(--game-max-width);
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-top: 4rem;
    font-family: 'October Crow', sans-serif;
    text-shadow: 0 0 10px hsl(141, 76%, 46%);
    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 hsl(141, 76%, 46%);
    font-weight: lighter;
}



.rules-section {
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    line-height: 1.3;
}

.rules-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    font-weight: lighter;
}

.rules-section h4 {
    font-weight: lighter;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 25px 0 10px;
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 5px;
    position: relative;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.rules-section p {
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

.rules-section ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.rules-section li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.game-main-content {
  background-color: hsla(270, 100%, 33%, 0.247);
  backdrop-filter: blur(6px);
  border-radius: var(--border-radius);
  border: 1px solid;
  border-image: linear-gradient(to top, #090013, #1cce5b, #090013) 1;
  box-shadow: 0 0 10px #000000, inset 0 0 5px #000000;
  padding: 30px;
  margin-bottom: 2rem;
  transform-style: preserve-3d;
}

/* Style .result-item applique a .game-phase */
.game-phase {
  background-color: hsla(270, 100%, 33%, 0.247);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px #000000;
  font-family: 'LazyDog', sans-serif;
  text-transform: uppercase;
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 20px;
}

.game-phase:hover {
  background-color: hsla(141, 76%, 46%, 0.37);
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--accent-color);
}

.specific-rules {
  background-color: hsla(270, 100%, 33%, 0.247);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px #000000;
  font-family: 'LazyDog', sans-serif;
  text-transform: uppercase;
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 20px;
}

.specific-rules:hover {
  background-color: hsla(141, 76%, 46%, 0.37);
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--accent-color);
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }
    
    .game-header h1 {
        font-size: 2rem;
        padding-top: 100px;
    }
    
    .game-main-content {
        padding: 20px;
    }
    
    .rules-section h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .rules-section {
        font-size: 0.9rem;
    }
    
    .rules-section ul {
        padding-left: 15px;
    }
    
    .game-phase {
        padding: 10px;
    }
}

.cachecache-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN1.webp') no-repeat center center;
  background-size: cover;
  z-index: -1;
  animation: fantomeFloat 10s ease-in-out infinite;
  will-change: transform, background-position;
  pointer-events: none;
}

@keyframes fantomeFloat {
  0%   { transform: scale(1); background-position: 50% 50%; }
  50%  { transform: scale(1.05); background-position: 48% 52%; }
  100% { transform: scale(1); background-position: 50% 50%; }
}
