.pdd-reaction-test {
    --rt-blue: #2785b9;
    --rt-blue-dark: #176a96;
    --rt-blue-soft: #eef8fc;
    --rt-green: #22a06b;
    --rt-green-dark: #168457;
    --rt-red: #ef4444;
    --rt-yellow: #fff4d8;
    --rt-border: #dbe8ef;
    --rt-text: #263238;
    --rt-muted: #60717b;

    margin: 34px 0;
    color: var(--rt-text);
}

.pdd-reaction-test * {
    box-sizing: border-box;
}

.pdd-reaction-test__inner {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f6fbff 0%, #ffffff 100%);
    border: 1px solid var(--rt-border);
    box-shadow: 0 14px 34px rgba(16, 58, 86, .08);
}

.pdd-reaction-test__head {
    margin-bottom: 20px;
}

.pdd-reaction-test__label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--rt-blue-soft);
    color: var(--rt-blue-dark);
    font-size: 14px;
    font-weight: 800;
}

.pdd-reaction-test__head h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
    color: #17242b;
}

.pdd-reaction-test__head p {
    max-width: 780px;
    margin: 0;
    color: var(--rt-muted);
    line-height: 1.6;
}

.pdd-reaction-test__screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 230px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 2px dashed var(--rt-border);
    text-align: center;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pdd-reaction-test__screen:focus {
    box-shadow: 0 0 0 4px rgba(39, 133, 185, .16);
}

.pdd-reaction-test__screen:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(16, 58, 86, .08);
}

.pdd-reaction-test__screen-title {
    margin-bottom: 8px;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
}

.pdd-reaction-test__screen-text {
    color: var(--rt-muted);
    font-size: 16px;
}

.pdd-reaction-test__screen.is-waiting {
    background: #f8fbfd;
    border-color: var(--rt-blue);
}

.pdd-reaction-test__screen.is-ready {
    background: linear-gradient(135deg, var(--rt-green), var(--rt-green-dark));
    border-color: var(--rt-green-dark);
    color: #ffffff;
}

.pdd-reaction-test__screen.is-ready .pdd-reaction-test__screen-text {
    color: rgba(255,255,255,.9);
}

.pdd-reaction-test__screen.is-false-start {
    background: #fff1f1;
    border-color: var(--rt-red);
}

.pdd-reaction-test__screen.is-done {
    background: var(--rt-blue-soft);
    border-color: var(--rt-blue);
}

.pdd-reaction-test__controls {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.pdd-reaction-test__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: var(--rt-blue);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.pdd-reaction-test__btn:hover {
    background: var(--rt-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(39, 133, 185, .22);
}

.pdd-reaction-test__btn:disabled {
    opacity: .65;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.pdd-reaction-test__result {
    margin-top: 24px;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--rt-border);
}

.pdd-reaction-test__result-main {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 800;
}

.pdd-reaction-test__result-main strong {
    color: var(--rt-blue-dark);
}

.pdd-reaction-test__table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--rt-border);
}

.pdd-reaction-test__table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
}

.pdd-reaction-test__table th,
.pdd-reaction-test__table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rt-border);
    text-align: left;
}

.pdd-reaction-test__table th {
    background: var(--rt-blue);
    color: #ffffff;
}

.pdd-reaction-test__table tr:last-child td {
    border-bottom: none;
}

.pdd-reaction-test__table td:last-child {
    font-weight: 800;
    color: var(--rt-blue-dark);
}

.pdd-reaction-test__note {
    margin: 16px 0 0;
    padding: 16px;
    border-radius: 16px;
    background: var(--rt-yellow);
    color: #5f4a14;
    line-height: 1.55;
}

@media (max-width: 560px) {
    .pdd-reaction-test__inner {
        padding: 20px;
    }

    .pdd-reaction-test__head h2 {
        font-size: 24px;
    }

    .pdd-reaction-test__screen {
        min-height: 200px;
    }

    .pdd-reaction-test__screen-title {
        font-size: 25px;
    }

    .pdd-reaction-test__btn {
        width: 100%;
    }
}