:root {
    --primary-color: #8a2be2;
    /* BlueViolet */
    --secondary-color: #4b0082;
    /* Indigo */
    --background-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #ffffff;
    --accent-color: #9370db;
    /* MediumPurple */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: pageFadeIn 0.6s ease-out forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-header {
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    margin-bottom: 10px;
}

h2 {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1rem;
    color: #ccc;
}

.category-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 5px;
    border-radius: 50%;
}

.btn-icon:hover {
    transform: rotate(180deg);
    background-color: rgba(255, 255, 255, 0.1);
}

.category-display {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 10px;
    word-wrap: break-word;
}

.setup-form {
    width: 100%;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

select,
input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #333;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(138, 43, 226, 0.5);
}

.player-input {
    margin-bottom: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn:active {
    transform: scale(0.98);
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: #444;
    color: white;
}

.secondary-btn:hover {
    background-color: #555;
}

.player-turn-info {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.highlight-name {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.3rem;
}

.instruction {
    margin-top: 10px;
    font-style: italic;
    color: #aaa;
}

.input-area {
    width: 100%;
    margin-bottom: 20px;
}

.prompt {
    margin-bottom: 10px;
    font-weight: 600;
}

textarea {
    resize: none;
    margin-bottom: 15px;
}

.hot-take-card {
    background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    position: relative;
}

.take-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.author-display {
    font-size: 1.5rem;
    margin: 20px 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#author-name {
    color: var(--accent-color);
    font-weight: bold;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .category-display {
        font-size: 1.5rem;
    }

    .take-text {
        font-size: 1.2rem;
    }
}