/* === Body & Gradient Background === */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    /* Vibrant neon gradient with more colors */
    background: linear-gradient(270deg, #ff4e50, #f9d423, #24c6dc, #514a9d, #ff6a00, #f54ea2, #00f260, #0575e6, #ff6ec7, #fddb92 );
    background-size: 2000% 2000%; /* larger to slow transition for more drama */
    animation: animatedGradient 30s ease infinite;
}

@keyframes animatedGradient {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 50% 100%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 50% 0%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* --- Container --- */
.game-container {
    width: 95%;
    max-width: 400px;
    text-align: center;
}

/* --- Titles --- */
h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* --- Buttons --- */
button {
    cursor: pointer;
    border: none;
    border-radius: 10px;
    padding: 14px 0;
    margin: 5px 0;
    font-size: 1.1rem;
    width: 100%;
    transition: transform 0.2s, background 0.2s;
}

    button:hover {
        transform: scale(1.05);
    }

/* Role buttons */
.role-btn {
    background: #6a0dad;
    color: #fff;
}

    .role-btn.demo {
        background: #e91e63;
    }

.back-btn {
    background: #555;
}

/* --- Screens --- */
.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* --- Seed input --- */
.seed-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

#seed-input {
    flex: 1;
    padding: 12px;
    font-size: 1.2rem;
    border-radius: 10px;
    border: none;
    text-transform: uppercase;
    text-align: center;
}

#paste-btn {
    background: #ff9800;
    padding: 12px;
    width: 100px;
}

/* --- Grid --- */
#grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    justify-items: center;
    margin-bottom: 15px;
}

.cell {
    border: 2px solid #3a3a3c;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    width: 60px;
    height: 60px;
    transition: transform 0.3s, background 0.3s;
    backface-visibility: hidden;
}

    .cell.correct {
        background-color: #6aaa64;
        border-color: #6aaa64;
        color: #fff;
    }

    .cell.present {
        background-color: #c9b458;
        border-color: #c9b458;
        color: #fff;
    }

    .cell.absent {
        background-color: #3a3a3c;
        border-color: #3a3a3c;
        color: #fff;
    }

.flip {
    transform: rotateX(180deg);
}

/* --- Keyboard --- */
#keyboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    grid-gap: 5px;
    margin-top: 10px;
}
}

.key {
    background: #818384;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    height: 50px;
    transition: background 0.2s;
}

    .key.correct {
        background: #6aaa64;
    }

    .key.present {
        background: #c9b458;
    }

    .key.absent {
        background: #3a3a3c;
    }
