/* Resumen de efectos rivales (Online, duelo contra IA y espectadores). */
.opp-digest-body {
    margin: 12px 0 4px;
    max-height: min(38vh, 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.opp-digest-body.single {
    max-height: none;
    overflow: visible;
}

.opp-digest-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.opp-digest-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-left: 3px solid rgba(251, 191, 36, .7);
    border-radius: 12px;
    background: rgba(15, 23, 42, .55);
}

.opp-digest-item p {
    margin: 0;
    color: #e2e8f0;
    font-weight: 700;
    line-height: 1.4;
}

.opp-digest-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: .95rem;
    color: #fef3c7;
    background: rgba(251, 191, 36, .16);
}

.opp-digest-ability {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
}

.opp-digest-ability b {
    color: #fde68a;
}

.opp-digest-body.single .opp-digest-ability {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(15, 23, 42, .52);
}

.opp-digest-item.cat-destroyed { border-left-color: rgba(239, 68, 68, .85); }
.opp-digest-item.cat-destroyed .opp-digest-icon { background: rgba(239, 68, 68, .2); color: #fecaca; }
.opp-digest-item.cat-moved { border-left-color: rgba(167, 139, 250, .85); }
.opp-digest-item.cat-moved .opp-digest-icon { background: rgba(167, 139, 250, .2); color: #ede9fe; }
.opp-digest-item.cat-free-play { border-left-color: rgba(34, 197, 94, .85); }
.opp-digest-item.cat-free-play .opp-digest-icon { background: rgba(34, 197, 94, .2); color: #bbf7d0; }
.opp-digest-item.cat-prevented { border-left-color: rgba(56, 189, 248, .85); }
.opp-digest-item.cat-prevented .opp-digest-icon { background: rgba(56, 189, 248, .2); color: #e0f2fe; }
.opp-digest-item.cat-changed { border-left-color: rgba(249, 115, 22, .85); }
.opp-digest-item.cat-changed .opp-digest-icon { background: rgba(249, 115, 22, .2); color: #ffedd5; }
.opp-digest-item.cat-more { border-left-color: rgba(148, 163, 184, .5); }

.game-message-modal.opponent-action-digest,
.online-notice-overlay.opponent-action-digest .online-notice-modal {
    width: min(820px, calc(100vw - 28px));
    max-width: min(980px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.game-message-modal.opponent-action-digest .game-dialog-card-list.multi,
.online-notice-overlay.opponent-action-digest .game-dialog-card-list.multi {
    grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
}

@media (max-width: 760px) {
    .game-message-modal.opponent-action-digest .game-dialog-card-list.multi,
    .online-notice-overlay.opponent-action-digest .game-dialog-card-list.multi {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .opp-digest-item {
        grid-template-columns: 24px 1fr;
        gap: 8px;
        padding: 8px 10px;
    }

    .opp-digest-icon {
        width: 22px;
        height: 22px;
        font-size: .8rem;
    }
}
