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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddeeff;
    font-family: 'Nunito', sans-serif;
}

.card {
    display: flex;
    flex-direction: row;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 640px;
    width: 100%;
}


/* ── Left Panel ── */

.card__left {
    flex: 1;
    background: linear-gradient(160deg, #7c5cfc 0%, #3a2fc5 100%);
    padding: 40px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    text-align: center;
}

.card__left h2 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0.95;
}

.score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle .score-num {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
}

.score-circle .score-denom {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 2px;
}

.grade-label {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.percentile-text {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1.5;
    max-width: 170px;
}


/* ── Right Panel ── */

.card__right {
    flex: 1.1;
    background: #f76349;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card__right h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #1a1a2e;
    margin-bottom: 5px;
    padding-left: 85px;
}


/* ── Stat Row ── */

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 12px;
    background: #be6060;
}

.stat-row--reaction {
    background: #96fc92;
}

.stat-row--memory {
    background: #96fc92;
}

.stat-row--verbal {
    background: #96fc92;
}

.stat-row--visual {
    background: #96fc92;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
}

.stat-label--reaction {
    color: #ca4d4d;
}

.stat-label--memory {
    color: #ca4d4d;
}

.stat-label--verbal {
    color: #ca4d4d;
}

.stat-label--visual {
    color: #ca4d4d;
}

.stat-icon {
    font-size: 1rem;
}

.stat-score {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
}

.stat-score span {
    font-weight: 600;
    color: #aaa;
}


/* ── Button ── */

.btn-continue {
    margin-top: 6px;
    background: #4a4ae0;
    color: #080808;
    border: none;
    border-radius: 50px;
    padding: 14px 0;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-continue:hover {
    background: #3a2fc5;
    transform: translateY(-1px);
}

.btn-continue:active {
    transform: translateY(0);
}


/* ── Responsive ── */

@media (max-width: 520px) {
    .card {
        flex-direction: column;
        border-radius: 20px;
    }
}