:root {
    --anthracite: #2d3436;
    --dark-gray: #1a1d1f;
    --yellow: #f1c40f;
    --yellow-dark: #f39c12;
    --orange: #e67e22;
    --green: #2ecc71;
    --red: #e74c3c;
    --bg-dark: #0a0b0c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--anthracite) 50%, #000 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Particles */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Glows */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--yellow);
    animation: pulse 4s ease-in-out infinite;
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--orange);
    animation: pulse 4s ease-in-out infinite 2s;
}

.glow-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--yellow-dark);
    animation: pulse 6s ease-in-out infinite 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.08; }
    50% { opacity: 0.15; }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    backdrop-filter: blur(16px);
    background: rgba(45, 52, 54, 0.3);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}

.logo-icon svg {
    color: var(--anthracite);
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 10px;
    color: var(--yellow);
    font-weight: 400;
}

/* Screens */
.screen {
    display: none;
    flex: 1;
}

.screen.active {
    display: flex;
}

.screen-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.screen-content.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.screen-content.game-layout {
    max-width: 1000px;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 32px;
}

.sparkles-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(230, 126, 34, 0.1));
    border-radius: 16px;
    border: 2px solid rgba(241, 196, 15, 0.2);
}

.sparkles-icon svg {
    color: var(--yellow);
}

.welcome-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.welcome-section p {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Choice Grid */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.choice-card {
    backdrop-filter: blur(16px);
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.3), rgba(26, 29, 31, 0.3));
    border: 2px solid rgba(241, 196, 15, 0.2);
    border-radius: 14px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: var(--yellow);
    box-shadow: 0 12px 28px rgba(241, 196, 15, 0.2);
}

.choice-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.choice-card svg {
    color: var(--yellow);
    margin-bottom: 12px;
}

.choice-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 4px;
}

.choice-card p {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

/* Back Button */
.back-btn {
    margin-bottom: 20px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-btn:hover {
    background: rgba(241, 196, 15, 0.1);
    border-color: var(--yellow);
    transform: translateX(-3px);
}

/* Setup Section */
.setup-section {
    backdrop-filter: blur(16px);
    background: rgba(45, 52, 54, 0.3);
    border: 2px solid rgba(241, 196, 15, 0.2);
    border-radius: 16px;
    padding: 28px;
}

.setup-group {
    margin-bottom: 28px;
}

.setup-group:last-child {
    margin-bottom: 0;
}

.setup-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 14px;
}

#playersContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.player-input {
    display: flex;
    gap: 10px;
}

.player-name-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.player-name-input:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(255, 255, 255, 0.08);
}

.player-name-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-remove {
    width: 44px;
    height: 44px;
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid var(--red);
    border-radius: 10px;
    color: var(--red);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: scale(1.05);
}

.btn-add {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(241, 196, 15, 0.3);
    border-radius: 10px;
    color: var(--yellow);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: rgba(241, 196, 15, 0.1);
    border-color: var(--yellow);
    border-style: solid;
}

.question-count-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.question-count-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-count-btn:hover {
    background: rgba(241, 196, 15, 0.1);
    border-color: var(--yellow);
}

.question-count-btn.active {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    border-color: var(--yellow);
    color: var(--anthracite);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
}

.btn-primary {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    border-color: var(--yellow);
    color: var(--anthracite);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(241, 196, 15, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    width: 100%;
    padding: 16px 28px;
    font-size: 16px;
    margin-top: 14px;
}

/* Loading */
.spinner {
    width: 56px;
    height: 56px;
    border: 5px solid rgba(241, 196, 15, 0.2);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Game Layout */
.game-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-header {
    backdrop-filter: blur(16px);
    background: rgba(45, 52, 54, 0.3);
    border: 2px solid rgba(241, 196, 15, 0.2);
    border-radius: 12px;
    padding: 14px 20px;
}

.progress-bar {
    font-size: 16px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 12px;
    text-align: center;
}

.scoreboard {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.scoreboard-player {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.scoreboard-player.active {
    background: rgba(241, 196, 15, 0.2);
    border-color: var(--yellow);
}

.player-name {
    font-weight: 500;
    color: white;
}

.player-score {
    font-weight: 600;
    color: var(--yellow);
}

/* Question Container */
.question-container {
    backdrop-filter: blur(16px);
    background: rgba(45, 52, 54, 0.3);
    border: 2px solid rgba(241, 196, 15, 0.2);
    border-radius: 16px;
    padding: 28px;
}

.question-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.actor-card, .content-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(241, 196, 15, 0.2);
    border-radius: 12px;
}

.actor-card img {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.content-card img {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.actor-card h3, .content-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--yellow);
}

.question-text {
    font-size: 19px;
    font-weight: 500;
    color: white;
    text-align: center;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.actor-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.choice-btn {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.choice-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--yellow);
    transform: translateY(-3px);
}

.choice-btn img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.actor-choice img {
    height: 140px;
}

.choice-btn span {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.choice-btn.correct {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--green);
    animation: correctPulse 0.5s ease-in-out;
}

.choice-btn.wrong {
    background: rgba(231, 76, 60, 0.2);
    border-color: var(--red);
    animation: shake 0.5s ease-in-out;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Results */
.success-message {
    backdrop-filter: blur(16px);
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(230, 126, 34, 0.2));
    border: 2px solid var(--yellow);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    text-align: center;
}

.success-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.success-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 8px;
}

.success-message p {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.final-scores {
    backdrop-filter: blur(16px);
    background: rgba(45, 52, 54, 0.3);
    border: 2px solid rgba(241, 196, 15, 0.2);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.final-score-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
}

.final-score-item.winner {
    background: rgba(241, 196, 15, 0.1);
    border-color: var(--yellow);
}

.final-score-item .rank {
    font-size: 28px;
}

.final-score-item .name {
    flex: 1;
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.final-score-item .score {
    font-size: 20px;
    font-weight: 600;
    color: var(--yellow);
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .choice-grid {
        grid-template-columns: 1fr;
    }
    
    .choices-grid {
        grid-template-columns: 1fr;
    }
    
    .actor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-count-btns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .actor-card, .content-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .question-text {
        font-size: 17px;
    }
}
/* Loading Progress */
.loading-progress {
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
}

.progress-bar {
    width: 100%;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    margin: 0;
}