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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 700px;
}

.test-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Start Screen */
#start-screen {
    text-align: center;
}

#start-screen h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Test Screen */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-number {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
}

.question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #333;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 18px 24px;
    font-size: 1rem;
    text-align: left;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #333;
}

.answer-btn:hover {
    background: #e8e8e8;
    border-color: #667eea;
    transform: translateX(4px);
}

.answer-btn:active {
    transform: translateX(2px);
}

/* Result Screen */
.result-content {
    text-align: center;
}

#result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-score {
    font-size: 4rem;
    font-weight: 700;
    margin: 30px 0;
    color: #667eea;
}

.result-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    text-align: left;
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .test-wrapper {
        padding: 30px 20px;
        border-radius: 16px;
    }

    #start-screen h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .question {
        font-size: 1.3rem;
    }

    .answer-btn {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    #result-title {
        font-size: 1.6rem;
    }

    .result-score {
        font-size: 3rem;
    }

    .result-description {
        font-size: 1rem;
        padding: 20px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .test-wrapper {
        padding: 24px 16px;
    }

    #start-screen h1 {
        font-size: 1.5rem;
    }

    .question {
        font-size: 1.2rem;
    }

    .result-score {
        font-size: 2.5rem;
    }
}

