/* ==========================================================================
   Batch 2 · chat / captcha / games / mentions / admin additions
   ========================================================================== */

.captcha-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.captcha-field {
    flex: 1 1 110px;
    min-width: 100px;
}

.captcha-image {
    width: 150px;
    height: 50px;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #f8fafc;
    object-fit: cover;
}

.captcha-refresh {
    height: 50px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.captcha-refresh:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.composer {
    position: relative;
}

.mention-menu {
    position: absolute;
    left: 22px;
    bottom: 78px;
    z-index: 30;
    width: min(320px, calc(100% - 44px));
    max-height: 230px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #1b1c21;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .45);
}

.mention-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    text-align: left;
}

.mention-item:hover,
.mention-item.active {
    background: rgba(88, 101, 242, .16);
    color: var(--text);
}

.mention {
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(88, 101, 242, .2);
    color: #c7cdff;
    font-weight: 650;
}

.ip-location {
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: #7d838c;
    font-size: 9.5px;
    white-space: nowrap;
}

.system-message {
    position: relative;
    max-width: 960px;
    margin: 7px auto;
    padding: 5px 10px;
    color: #7c818a;
    font-size: 11.5px;
    text-align: center;
}

.system-dot {
    margin-right: 5px;
    color: #5865f2;
}

.system-delete {
    display: inline-grid;
    margin-left: 5px;
    vertical-align: -4px;
    opacity: 0;
}

.system-message:hover .system-delete {
    opacity: .7;
}

.game-message {
    background: linear-gradient(90deg, rgba(88, 101, 242, .07), transparent 70%);
    border-left: 2px solid rgba(88, 101, 242, .35);
}

.game-badge {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(240, 178, 50, .12);
    color: #e7bd68;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
}

.member-page {
    overflow: hidden;
    margin-top: 2px;
    color: #6b7180;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guest-item {
    color: #777c85;
    font-size: 11px;
    cursor: default;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.game-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    text-align: left;
}

.game-card:hover {
    border-color: rgba(88, 101, 242, .5);
    background: rgba(88, 101, 242, .08);
}

.game-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: rgba(88, 101, 242, .14);
    font-size: 18px;
}

.game-card-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.game-card-text strong {
    font-size: 12.5px;
}

.game-card-text small {
    margin-top: 2px;
    color: var(--faint);
    font-size: 10px;
}

.game-choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.game-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
    font-size: 12px;
}

.game-choice:hover {
    border-color: rgba(88, 101, 242, .5);
    background: rgba(88, 101, 242, .08);
}

.game-choice-icon {
    font-size: 26px;
}

@media (max-width: 520px) {
    .game-grid {
        grid-template-columns: 1fr;
    }

    .captcha-image {
        width: 130px;
        height: 46px;
    }

    .captcha-refresh {
        height: 46px;
    }
}
