.active-game-widget {
    position: fixed;
    left: 0;
    top: 42%;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 118px;
    max-width: 148px;
    padding: 10px 14px 10px 10px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(135deg, rgba(22, 22, 26, 0.96), rgba(10, 10, 12, 0.94));
    color: #f2f2f2;
    font-family: "Iranian Sans", Tahoma, sans-serif;
    text-align: right;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.active-game-widget::after {
    content: "";
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 11px 0 11px 11px;
    border-style: solid;
    border-color: transparent transparent transparent var(--agw-accent, rgba(255, 255, 255, 0.35));
    filter: drop-shadow(2px 0 6px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.active-game-widget:hover {
    transform: translateX(2px);
    filter: brightness(1.06);
}

.active-game-widget:active {
    transform: translateX(0);
}

.active-game-widget--mafia {
    --agw-accent: #e32638;
    border-color: rgba(227, 38, 56, 0.85);
    box-shadow:
        0 0 0 1px rgba(227, 38, 56, 0.35),
        0 8px 28px rgba(227, 38, 56, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

.active-game-widget--city {
    --agw-accent: #2f5bff;
    border-color: rgba(47, 91, 255, 0.85);
    box-shadow:
        0 0 0 1px rgba(47, 91, 255, 0.35),
        0 8px 28px rgba(47, 91, 255, 0.32),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

.active-game-widget--god {
    --agw-accent: #d4af37;
    border-color: rgba(212, 175, 55, 0.75);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.28),
        0 8px 28px rgba(212, 175, 55, 0.22),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

.active-game-widget__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
}

.active-game-widget__scenario {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.active-game-widget__role {
    font-size: 11px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.active-game-widget__meta {
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.65);
}

.active-game-widget[hidden] {
    display: none !important;
}

@media (max-width: 420px) {
    .active-game-widget {
        top: 38%;
        min-width: 108px;
        max-width: 132px;
        padding: 8px 12px 8px 8px;
    }
}
