: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-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;
    margin: 0 10px;
}

.game-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-color);
}

.player-selection {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.player-selection .game-button {
    min-width: 150px;
}

#game-rules {
  background-color: hsla(270, 100%, 33%, 0.247);
  border: 1px solid;
  border-image: linear-gradient(to top, #090013, #1cce5b, #090013) 1;
  border-radius: var(--border-radius);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px #000000;
  font-family: 'LazyDog', sans-serif;
  text-transform: uppercase;
  color: var(--text-color);
  font-size: 0.95rem;
}

#role-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    display: none; /* Cache par defaut */
}

.role-card {
    background-color: var(--secondary-color);
    border: 1px dashed var(--accent-color);
    border-radius: var(--border-radius);
    padding: 20px;
    width: 300px;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-family: 'LazyDog', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--accent-color);
}

.role-card h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'October Crow', sans-serif;
    font-weight: lighter;
          border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

#game-rules h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'LazyDog', sans-serif;
    font-weight: lighter;
      border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

#game-rules h5 {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-family: 'LazyDog', sans-serif;
    font-weight: lighter;
        text-align: center;
      border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

#game-rules h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-family: 'LazyDog', sans-serif;
    font-weight: lighter;
}

#game-rules p {
    font-size: 1rem;
    font-family: 'LazyDog', sans-serif;
    font-weight: lighter;
    line-height: 1.2;
}


.role-card strong {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-align: center;
    font-weight: lighter;
          border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.role-card h2, .role-card h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: lighter;
          border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.role-card ul {
    padding-left: 20px;
    list-style-type: none;
}

.role-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 1rem;
}

.role-card li:before {
    content: "✝";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.role-card p {
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.bingo-message {
    color: var(--accent-color);
    font-size: 2rem;
    text-align: center;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowingBorder {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    }
    50% {
        box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--accent-color);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .game-container {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 2rem;
        padding-top: 100px;
    }
    
    .role-card {
        width: 100%;
    }
    
    .player-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .player-selection .game-button {
        width: 100%;
        margin: 5px 0;
    }
}


/* Fond anime style Random */
.roleplay-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%; }
}







/* Style .result-item applique a .role-card */
.role-card {
  background-color: hsla(270, 100%, 33%, 0.247);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px #000000;
  font-family: 'LazyDog', sans-serif;
  text-transform: uppercase;
  color: var(--text-color);
  font-size: 0.95rem;
}

.role-card:hover {
  background-color: hsla(141, 76%, 46%, 0.37);
  transform: translateY(-3px);
  box-shadow: 0 0 10px var(--accent-color);
}
