.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.player-info {
    background: rgba(255, 215, 0, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.timer-display {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 10px;
    display: none;
}

.timer-display.warning {
    color: var(--red);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.teacher-card {
    background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.photo-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    margin-bottom: 20px;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info {
    text-align: center;
    width: 100%;
}

.info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.university {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.guess-form {
    background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.rating-slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rating-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--red), var(--accent-gold), var(--green));
    outline: none;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rating-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rating-value-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
    min-width: 80px;
    text-align: center;
}

.department-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.department-select option {
    background: #2a2a4a;
    color: white;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
}

.result-card {
    background: linear-gradient(145deg, #2a2a4a, #1e1e3a);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    display: none;
}

.result-card.show {
    display: block;
}

.result-score {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.result-score.perfect {
    color: var(--green);
}

.result-score.good {
    color: var(--accent-gold);
}

.result-score.bad {
    color: var(--red);
}

.result-details {
    margin-bottom: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-weight: 600;
}

.result-value.correct {
    color: var(--green);
}

.result-value.wrong {
    color: var(--red);
}

.next-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 20px;
}

.game-over.show {
    display: flex;
}

.game-over h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.game-over .total-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 40px;
}

.game-over-buttons {
    display: flex;
    gap: 20px;
}

.rounds-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.rounds-info span {
    color: var(--accent-gold);
    font-weight: 700;
}

@media (max-width: 600px) {
    .teacher-card {
        padding: 20px;
    }
    
    .photo-container {
        width: 180px;
        height: 180px;
    }
    
    .rating-slider-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .rating-value-display {
        font-size: 1.5rem;
    }
}
