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

body {
    font-family: 'Inter', sans-serif;
    background-color: #eef2ff;
    color: #0f172a;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #dbeafe;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background-color: #91ee91;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    color: #0f172a;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #0f172a;
}

.quiz-page {
    padding: 36px 0 60px;
}

.quiz-intro {
    margin-bottom: 28px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 12px;
    color: #2563eb;
    margin-bottom: 14px;
}

.quiz-intro h1 {
    font-size: clamp(2rem, 2.6vw, 3.25rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.quiz-intro p {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.75;
}

.quiz-wrapper {
    display: grid;
    gap: 24px;
}

.quiz-form {
    display: grid;
    gap: 18px;
}

.question-card {
    background-color: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 16px;
}

.question-card h2 {
    font-size: 18px;
    color: #0f172a;
}

.hint {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.option-label {
    display: block;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
    font-size: 15px;
}

.option-label:hover {
    background-color: #f8fafc;
}

.question-card input[type="radio"] {
    display: none;
}

.question-card input[type="radio"]:checked + .option-label {
    border-color: #2563eb;
    background-color: #e0f2fe;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18);
}

.question-tip {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    color: #1e293b;
    padding: 18px;
    line-height: 1.8;
}

#distance-2:checked ~ .question-tip,
#height-2:checked ~ .question-tip,
#rule-3:checked ~ .question-tip,
#posture-3:checked ~ .question-tip,
#time-3:checked ~ .question-tip {
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .quiz-wrapper {
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .question-card {
        padding: 20px;
    }

    .option-label {
        padding: 12px 14px;
        font-size: 14px;
    }
}
