* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

#app {
    position: relative;
    min-height: 100vh;
}

.page {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.page.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
    text-align: center;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    width: 100%;
    margin: 10px 0;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn.secondary {
    background: #95a5a6;
}

.btn.secondary:hover {
    background: #7f8c8d;
}

.btn.submit {
    background: #2ecc71;
}

.btn.submit:hover {
    background: #27ae60;
}

.header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-top: 10px;
}

.back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #3498db;
    padding: 5px;
}

.progress {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 14px;
    color: #7f8c8d;
    min-width: 50px;
    text-align: right;
}

.question-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.question-number {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
}

.question-text {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hint {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: inline-block;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    border-color: #bdc3c7;
    background: #f8f9fa;
}

.option.selected {
    border-color: #3498db;
    background: #e3f2fd;
}

.option-value {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.option.selected .option-value {
    background: #2980b9;
}

.option-text {
    flex: 1;
    font-size: 16px;
}

#navigation {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

#navigation .btn {
    flex: 1;
    margin: 0;
}

.score {
    font-size: 72px;
    font-weight: bold;
    text-align: center;
    color: #2ecc71;
    margin: 20px 0;
}

.score-label {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 18px;
}

.level {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
}

.desc {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

.info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info div {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
}

.interpretation {
    list-style: none;
    padding: 0;
}

.interpretation li {
    padding: 10px 15px;
    margin: 8px 0;
    border-radius: 6px;
    background: #f8f9fa;
}

.interpretation li:first-child { background: #d5f4e6; }
.interpretation li:nth-child(2) { background: #fff9c4; }
.interpretation li:nth-child(3) { background: #ffcc80; }
.interpretation li:last-child { background: #ffcdd2; }

ul, ol {
    padding-left: 20px;
    margin: 15px 0;
}

li {
    margin: 8px 0;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .card {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 20px;
    }
    
    .question-container {
        padding: 20px;
    }
    
    .option {
        padding: 12px 16px;
    }
    
    .option-value {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .score {
        font-size: 60px;
    }
}