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

:root {
    --bg-1: #070b16;
    --bg-2: #0b1326;
    --accent-1: #7c4dff;
    --accent-2: #36e7c4;
    --accent-3: #ff8bd1;
    --text: #eef2ff;
    --muted: rgba(238, 242, 255, 0.72);
    --card: rgba(16, 24, 48, 0.78);
    --glass: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top, #151f3b 0%, #0a0f1f 45%, #060812 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.8), transparent 70%);
    top: -140px;
    left: -120px;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(54, 231, 196, 0.7), transparent 70%);
    bottom: -120px;
    right: -80px;
}

.orb-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 139, 209, 0.65), transparent 70%);
    top: 35%;
    right: 10%;
}

.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 40px;
}

.screen {
    display: none;
    width: 100%;
    max-width: 760px;
}

.screen.active {
    display: block;
}

.start-card,
.question-card,
.result-card {
    background: var(--card);
    border: 1px solid rgba(124, 77, 255, 0.24);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(7, 11, 22, 0.65);
    backdrop-filter: blur(16px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 77, 255, 0.2);
    color: #c7b7ff;
    font-weight: 700;
    letter-spacing: 0.6px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

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

.lead {
    font-size: 1rem;
    line-height: 1.6;
    background: var(--glass);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
}

.start-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: #0b0f1f;
    box-shadow: 0 12px 30px rgba(124, 77, 255, 0.35);
}

.btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.start-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    color: var(--muted);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.progress-wrap {
    flex: 1;
    min-width: 200px;
}

.progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
    border-radius: 999px;
    transition: width 0.35s ease;
}

.progress-text {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 600;
}

.score-pill {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 16px;
    text-align: center;
    min-width: 110px;
}

.score-pill span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.score-pill strong {
    font-size: 1.3rem;
}

.question-label {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.question-card h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.option {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 18px;
    text-align: left;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option:hover {
    border-color: rgba(124, 77, 255, 0.5);
    transform: translateY(-1px);
}

.option.selected {
    border-color: rgba(54, 231, 196, 0.8);
    box-shadow: 0 10px 24px rgba(54, 231, 196, 0.2);
}

.result-card {
    text-align: left;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(54, 231, 196, 0.2);
    color: #bff9ee;
    font-weight: 700;
    margin-bottom: 14px;
}

.result-meter {
    margin: 16px 0;
}

.meter-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-3), var(--accent-1));
    border-radius: 999px;
    transition: width 0.45s ease;
}

.meter-text {
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.result-score {
    margin: 12px 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.result-score strong {
    font-size: 1.4rem;
    color: var(--text);
}

.result-description {
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
}

.result-description ul {
    padding-left: 18px;
    margin-top: 10px;
}

.result-description li {
    margin-bottom: 8px;
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .start-card,
    .question-card,
    .result-card {
        padding: 22px;
    }

    h1 {
        font-size: 2rem;
    }

    .question-card h2 {
        font-size: 1.35rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
