: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;
}

.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;
}


.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.game-button {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.game-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-color);
}



.result-section {
    margin-bottom: 30px;
}

.result-section h3 {
    color: var(--accent-color);
    font-family: 'LazyDog', sans-serif;
    text-align: center;
    margin-bottom: 15px;
    font-weight: lighter;
    font-size: 1.3rem;
}

.player-result {
    margin-bottom: 30px;
}

.player-result h3 {
    color: var(--accent-color);
    font-family: 'LazyDog', sans-serif;
    text-align: center;
    margin-bottom: 15px;
    font-weight: lighter;
    font-size: 1.3rem;
}

.result-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}



.results-container {
  background: rgba(0, 0, 0, 0.05);
  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;
}

.result-item {
  background-color: hsla(270, 100%, 33%, 0.247);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  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: 0.8rem;
  flex-direction: column;
}


.result-item p {
  font-family: 'LazyDog', sans-serif;
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}


.result-item:hover {
  background-color: hsla(141, 76%, 46%, 0.37);
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--accent-color);
}

.result-item img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}



.game-rules {
  background: #110024d9;
  backdrop-filter: blur(4px);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  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: #1cce5b;
  margin-bottom: 1rem;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.game-rules p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.game-rules strong {
  font-weight: lighter;
  color: #1cce5b;
}








.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 2rem;
        padding-top: 100px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .result-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .result-items {
        grid-template-columns: 1fr;
    }
}









.random-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%; }
}



