/* Page shells and screen layouts */

.shell {
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 4vw, 40px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.center-screen {
    width: min(1140px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    place-items: center;
}

/* Intro */
.intro {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(8px, 3vw, 28px) 0;
}

.intro-copy h1 {
    font-size: clamp(34px, 5.5vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 18px 0 16px;
}

.intro-copy h1 .accent {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-copy .lead {
    color: var(--ink-soft);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 46ch;
    margin-bottom: 28px;
}

.flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.flow .pill {
    background: var(--glass-strong);
    box-shadow: var(--shadow-sm);
}

.flow .sep {
    color: var(--line-strong);
    font-weight: 800;
}

/* Start card */
.start-card {
    padding: clamp(24px, 3vw, 36px);
    display: grid;
    gap: 18px;
}

.start-card h2 {
    font-size: 22px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-weight: 700;
    font-size: 15px;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    padding: 0 16px;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

select:focus-visible {
    outline: none;
    border-color: var(--teal);
    box-shadow: var(--shadow-glow);
}

.meta-note {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

/* Test screen */
.test {
    flex: 1;
    display: grid;
    gap: 22px;
    align-content: start;
    padding: clamp(8px, 2vw, 20px) 0;
}

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

.question-card {
    padding: clamp(22px, 4vw, 40px);
    display: grid;
    gap: 22px;
    align-content: start;
}

.question-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: start;
    color: var(--teal-600);
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--grad-brand-soft);
}

.question-text {
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    padding: 8px 0 4px;
}

.actions {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 12px;
    justify-content: space-between;
}

.actions .btn {
    flex: 1 1 auto;
    min-width: 150px;
}

.actions .btn-ghost {
    flex: 0 1 auto;
}

@media (max-width: 880px) {
    .intro {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .test-header {
        flex-direction: column;
        align-items: stretch;
    }

    .stages {
        justify-content: flex-start;
    }

    .actions .btn {
        width: 100%;
        flex: 1 1 100%;
    }
}
