main {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 4rem;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.wizard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.back-link {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.back-link:hover { color: var(--fg); }
.step-counter {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 700;
}

.progress-bar {
    background: rgba(255,255,255,0.06);
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 3rem;
}
.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffd552);
    box-shadow: 0 0 10px -1px var(--accent);
    transition: width .35s cubic-bezier(.2,.7,.3,1);
    width: 0%;
}

.wizard-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.step {
    display: none;
    text-align: center;
    animation: step-in .35s ease;
}
.step.active { display: block; }
@keyframes step-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.step .step-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2.25rem;
    line-height: 1.5;
}

.opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.opt-grid.age {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) {
    .opt-grid.age { grid-template-columns: repeat(4, 1fr); }
}

.opt {
    padding: 1.4rem 1rem;
    border-radius: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--fg);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    transition: border-color .12s ease, transform .12s ease, background .12s ease;
}
.opt:hover, .opt:focus-visible {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.opt.selected {
    background: linear-gradient(135deg, var(--accent), #ffd552);
    color: #1a1306;
    border-color: var(--accent);
    transform: scale(0.97);
}

.privacy-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.submitting {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--accent);
    display: none;
}
.submitting.visible { display: block; }
