* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 62.5%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.hidden {
    display: none;
}

.rating-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background-color: white;
    border: 0.2rem solid #56a5eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 8rem;
}

.rating-option:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 0.8rem 2rem rgba(86, 165, 235, 0.3);
    border-color: #4a94d1;
}

.rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: #56a5eb;
    margin-bottom: 0.5rem;
}

.rating-label {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

.selected {
    background-color: #56a5eb;
    transform: translateY(-0.5rem);
    box-shadow: 0 0.8rem 2rem rgba(86, 165, 235, 0.4);
}

.selected .rating-number,
.selected .rating-label {
    color: white;
}

/* HUD */
#hud {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.hud-prefix {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.hud-main-text {
    text-align: center;
    font-size: 3rem;
    color: white;
}

#progressBar {
    width: 20rem;
    height: 2rem;
    border: 0.2rem solid white;
    border-radius: 1rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.3);
}

#progressBarFull {
    height: 100%;
    background-color: white;
    width: 0%;
    transition: width 0.3s ease;
}

#question {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

/* LOADER */
#loader {
    border: 1.6rem solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 1.6rem solid white;
    width: 12rem;
    height: 12rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.completion-message {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.restart-btn {
    margin-top: 2rem;
    padding: 1.5rem 3rem;
    background-color: white;
    color: #56a5eb;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background-color: #56a5eb;
    color: white;
    transform: translateY(-0.2rem);
}

/* Name Input Styles */
.name-input-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 50rem;
}

.name-input-container h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.name-input-container p {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

#playerName {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
    border: 0.2rem solid rgba(255, 255, 255, 0.3);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-align: center;
}

#playerName:focus {
    outline: none;
    border-color: #56a5eb;
    box-shadow: 0 0 1rem rgba(86, 165, 235, 0.3);
}

#startBtn {
    padding: 1.5rem 3rem;
    background-color: white;
    color: #56a5eb;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

#startBtn:hover {
    background-color: #56a5eb;
    color: white;
    transform: translateY(-0.2rem);
}

#startBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #ff6b6b;
    font-size: 1.4rem;
    margin-top: 1rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 0.1rem solid rgba(255, 107, 107, 0.3);
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    backdrop-filter: blur(5px);
}

.result-card h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.result-card p {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.score-history {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.8rem;
    margin: 1rem 0;
    border: 0.1rem solid rgba(255, 255, 255, 0.2);
}

.score-history h4 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.score-item {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.current-score {
    border: 0.2rem solid #56a5eb;
    background: rgba(86, 165, 235, 0.2);
}

@media (max-width: 768px) {
    .rating-container {
        gap: 0.5rem;
    }
    
    .rating-option {
        min-width: 6rem;
        padding: 1.5rem 1rem;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .rating-label {
        font-size: 1rem;
    }
}