:root {
    --primary:       #2563eb;
    --primary-hover: #1d4ed8;
    --success:       #16a34a;
    --error:         #dc2626;
    --bg:            #f1f5f9;
    --card:          #ffffff;
    --text:          #1e293b;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --radius:        12px;
    --shadow:        0 4px 24px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

main {
    width: 100%;
    max-width: 620px;
}

/* Card */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.card--center {
    text-align: center;
}

/* Logo */
.logo {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 1.25rem;
}

/* Headings */
.title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Progress */
.progress {
    margin-bottom: 1.75rem;
}

.progress__text {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.progress__bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Standard label */
.standard {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

/* Question */
.question {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.option:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.option input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.option__text {
    flex: 1;
}

/* Static options (feedback page) */
.option--static {
    cursor: default;
    align-items: center;
}

.option--static:hover {
    border-color: var(--border);
    background: transparent;
}

.option--correct {
    border-color: var(--success);
    background: #f0fdf4;
}

.option--incorrect {
    border-color: var(--error);
    background: #fef2f2;
}

.option__icon {
    width: 20px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.option--correct  .option__icon { color: var(--success); }
.option--incorrect .option__icon { color: var(--error); }

/* Result badge */
.result-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.result-badge--correct  { background: #f0fdf4; color: var(--success); }
.result-badge--incorrect { background: #fef2f2; color: var(--error); }

/* Button */
.btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-hover);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Score */
.score {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 1.5rem 0 1rem;
}

.score__separator {
    color: var(--border);
    margin: 0 0.15rem;
}

.score__total {
    font-size: 3rem;
    color: var(--muted);
}

.result-message {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Mobile */
@media (max-width: 480px) {
    .card { padding: 1.5rem; }
    .title { font-size: 1.4rem; }
    .score { font-size: 3.5rem; }
    .score__total { font-size: 2.25rem; }
}
