.vpe-gcm-likes-wrap {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.vpe-gcm-likes-wrap--gate {
    padding: 1rem;
    border: 1px solid rgba(220, 0, 0, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
}

.vpe-gcm-likes-missing {
    font-size: 0.875rem;
    opacity: 0.7;
}

.vpe-gcm-likes-missing--gate {
    opacity: 1;
    color: #dc0000;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(220, 0, 0, 0.4);
    border-radius: 8px;
    background: rgba(220, 0, 0, 0.08);
}

.vpe-gcm-native-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid #dc0000;
    border-radius: 8px;
    background: #dc0000;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.vpe-gcm-native-like:hover {
    border-color: #ff1a1a;
    background: #ff1a1a;
}

.vpe-gcm-native-like:disabled {
    cursor: default;
    opacity: 0.75;
}

.vpe-gcm-native-like.voted {
    border-color: #198754;
    background: #198754;
}

.vpe-gcm-native-like__icon {
    font-size: 1rem;
    line-height: 1;
}

.vpe-gcm-native-like__count {
    min-width: 1.25rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    text-align: center;
}

.vpe-gcm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vpe-gcm-modal.show {
    display: flex;
}

.vpe-gcm-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.vpe-gcm-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.vpe-gcm-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.vpe-gcm-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.vpe-gcm-modal__text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.vpe-gcm-modal__btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #dc0000;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.vpe-gcm-modal__btn:hover {
    background: #ff1a1a;
}

/* CS2: merge the verified like into the existing reactions panel. */
.cs2-engagement-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.cs2-engagement-panel .ks-react {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cs2-engagement-like {
    display: flex;
    flex: 0 0 auto;
    align-self: stretch;
    align-items: center;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.cs2-engagement-like .vpe-gcm-likes-wrap,
.cs2-engagement-like .vpe-gcm-likes-wrap--gate {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cs2-engagement-like .vpe-gcm-native-like {
    min-width: 128px;
    min-height: 42px;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.18);
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cs2-engagement-like .vpe-gcm-native-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255, 0, 0, 0.25);
}

@media (max-width: 767px) {
    .cs2-engagement-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cs2-engagement-panel .ks-react {
        align-items: flex-start;
    }

    .cs2-engagement-like {
        width: 100%;
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 0;
    }

    .cs2-engagement-like .vpe-gcm-likes-wrap,
    .cs2-engagement-like .vpe-gcm-native-like {
        width: 100%;
    }
}

.vpe-gcm-minigame {
    width: min(100%, 720px);
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(255, 0, 0, 0.32);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 0, 0, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(12, 12, 16, 0.96), rgba(32, 15, 18, 0.94));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cs2-engagement-panel:has(.vpe-gcm-minigame) {
    align-items: stretch;
    flex-direction: column;
}

.cs2-engagement-like:has(.vpe-gcm-minigame) {
    width: 100%;
    padding-left: 0;
    border-left: 0;
}

.vpe-gcm-minigame__header {
    margin-bottom: 14px;
}

.vpe-gcm-minigame__eyebrow {
    display: inline-flex;
    margin-bottom: 5px;
    color: #ff2a2a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vpe-gcm-minigame__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 1000;
    line-height: 0.95;
    text-transform: uppercase;
}

.vpe-gcm-minigame__text {
    max-width: 58ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.5;
}

.vpe-gcm-minigame__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.vpe-gcm-minigame__stats > div {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.vpe-gcm-minigame__stats small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vpe-gcm-minigame__arena {
    position: relative;
    min-height: clamp(250px, 45vw, 420px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 0, 0, 0.12), transparent 44%),
        #09090b;
    background-size: 28px 28px, 28px 28px, auto, auto;
    touch-action: manipulation;
}

.vpe-gcm-minigame__start {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 3;
    min-width: 190px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    background: #ff0000;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 1000;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.45);
}

.vpe-gcm-minigame__target {
    position: absolute;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 10%, transparent 11% 28%, #ff1616 29% 54%, transparent 55%),
        rgba(255, 0, 0, 0.32);
    cursor: crosshair;
    box-shadow: 0 0 22px rgba(255, 0, 0, 0.7);
}

.vpe-gcm-minigame__target::before,
.vpe-gcm-minigame__target::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.84);
}

.vpe-gcm-minigame__target::before {
    top: 50%;
    left: 12%;
    width: 76%;
    height: 2px;
}

.vpe-gcm-minigame__target::after {
    top: 12%;
    left: 50%;
    width: 2px;
    height: 76%;
}

.vpe-gcm-minigame__status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 1;
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.58);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.vpe-gcm-minigame--completed {
    border-color: rgba(46, 204, 113, 0.7);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38), 0 0 26px rgba(46, 204, 113, 0.18);
}

.vpe-gcm-minigame--completed .vpe-gcm-minigame__status {
    background: rgba(20, 120, 64, 0.9);
    color: #fff;
}

@media (max-width: 767px) {
    .vpe-gcm-minigame {
        padding: 14px;
    }

    .vpe-gcm-minigame__stats {
        gap: 7px;
    }

    .vpe-gcm-minigame__stats > div {
        padding: 8px 6px;
        font-size: 20px;
    }
}
