.objectiva-equation-balancer-game {
    max-width: 980px;
    margin: 24px auto;
    padding: 22px;
    border: 1px solid #dbe5ff;
    border-radius: 16px;
    background: #ffffff;
}

.objectiva-eb-equation {
    text-align: center;
    font-size: 42px;
    line-height: 1.25;
    margin: 10px 0 26px;
}

.objectiva-eb-coeff {
    color: #04a84f;
    font-weight: 700;
    margin-right: 2px;
}

.objectiva-eb-plus,
.objectiva-eb-arrow {
    margin: 0 18px;
}

.objectiva-eb-controls-wrap {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.objectiva-eb-control-section h4 {
    margin: 0 0 8px;
}

.objectiva-eb-control-table,
.objectiva-eb-atom-table {
    border: 1px solid #111;
    border-radius: 8px;
    overflow: hidden;
}

.objectiva-eb-control-head,
.objectiva-eb-control-row,
.objectiva-eb-atom-head,
.objectiva-eb-atom-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    align-items: center;
}

.objectiva-eb-control-head,
.objectiva-eb-atom-head {
    background: #111;
    color: #fff;
    font-weight: 700;
}

.objectiva-eb-control-head > div,
.objectiva-eb-control-row > div,
.objectiva-eb-atom-head > div,
.objectiva-eb-atom-row > div {
    padding: 10px;
    text-align: center;
    border-right: 1px solid #bbb;
}

.objectiva-eb-control-head > div:last-child,
.objectiva-eb-control-row > div:last-child,
.objectiva-eb-atom-head > div:last-child,
.objectiva-eb-atom-row > div:last-child {
    border-right: 0;
}

.objectiva-eb-control-row,
.objectiva-eb-atom-row {
    border-top: 1px solid #bbb;
}

.objectiva-eb-game-btn {
    min-width: 54px;
    min-height: 34px;
    border: 1px solid #355a9d;
    border-radius: 6px;
    background: #dfe8ff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.objectiva-eb-status {
    margin-top: 22px;
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.objectiva-eb-status.not-balanced {
    background: #ff1616;
}

.objectiva-eb-status.is-balanced {
    background: #08a34f;
}

.objectiva-eb-moves {
    width: max-content;
    min-width: 320px;
    margin: 24px auto 0;
    display: flex;
    border: 1px solid #111;
}

.objectiva-eb-moves span {
    padding: 12px 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.objectiva-eb-moves strong {
    padding: 12px 22px;
    background: #111;
    color: #fff;
    font-size: 20px;
}

@media (max-width: 700px) {
    .objectiva-eb-equation {
        font-size: 30px;
    }

    .objectiva-eb-control-head,
    .objectiva-eb-control-row,
    .objectiva-eb-atom-head,
    .objectiva-eb-atom-row {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
        font-size: 13px;
    }

    .objectiva-eb-plus,
    .objectiva-eb-arrow {
        margin: 0 8px;
    }

    .objectiva-eb-moves {
        min-width: 0;
        width: 100%;
    }
}
.objectiva-eb-increase,.objectiva-eb-decrease{
    color: black!important;
}
.objectiva-eb-atom-row > div:last-child {
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
}
.objectiva-review-table sub {
    font-size: 0.75em;
    line-height: 0;
    vertical-align: sub;
}
.objectiva-eb-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.objectiva-eb-actions button {
    padding: 10px 18px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.objectiva-eb-actions button:hover {
    background: #f2f2f2;
}

.objectiva-eb-hint-box,
.objectiva-eb-check-message,
.objectiva-eb-explanation-box {
    max-width: 760px;
    margin: 14px auto 0;
    padding: 14px 16px;
    border-radius: 10px;
    line-height: 1.55;
}

.objectiva-eb-hint-box {
    border: 1px solid #f0d36b;
    background: #fff8d8;
}

.objectiva-eb-explanation-box {
    border: 1px solid #b8d4ff;
    background: #eef6ff;
}

.objectiva-eb-check-message.is-correct {
    border: 1px solid #11a05a;
    background: #e9fff3;
    color: #075f34;
    font-weight: 700;
}

.objectiva-eb-check-message.is-wrong {
    border: 1px solid #d93025;
    background: #fff0ee;
    color: #9b1c13;
    font-weight: 700;
}
.objectiva-equation-balancer-game .objectiva-eb-hint-btn,
.objectiva-equation-balancer-game .objectiva-eb-check-btn,
.objectiva-equation-balancer-game .objectiva-eb-reset {
    color: #ffffff !important;
    background: #1f5fbf !important;
    border: 1px solid #1f5fbf !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

.objectiva-equation-balancer-game .objectiva-eb-hint-btn:hover,
.objectiva-equation-balancer-game .objectiva-eb-check-btn:hover,
.objectiva-equation-balancer-game .objectiva-eb-reset:hover {
    color: #ffffff !important;
    background: #164a98 !important;
}