/**
 * Video Poker Multiplayer - CSS Styles
 * Premium glassmorphism design matching Septica quality
 * Dual chat tabs, emoji picker, system messages, timestamps
 *
 * @version 3.1
 */

/* (Mode toggle removed — selection is now in loader screen) */

/* ===== TABLE SIDEBAR (Glassmorphism) ===== */
.vp-table-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: calc(64px + var(--sab, 0px));
    width: 220px;
    background: linear-gradient(180deg,
        rgba(10, 14, 20, 0.92) 0%,
        rgba(15, 20, 30, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 80;
    display: flex;
    flex-direction: column;
    padding: 10px;
    font-size: 12px;
    overflow: hidden;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

/* ===== SHARED BONUS DISPLAY ===== */
.vp-shared-bonus {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--vp-red-dark) 60%, transparent) 0%,
        color-mix(in srgb, var(--vp-red) 40%, transparent) 100%
    );
    border: 1px solid color-mix(in srgb, var(--vp-red-light) 30%, transparent);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--vp-red) 15%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Shimmer effect */
.vp-shared-bonus::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--vp-gold) 6%, transparent) 50%,
        transparent 100%
    );
    animation: shimmerGold 4s linear infinite;
}

@keyframes shimmerGold {
    0% { left: -100%; }
    100% { left: 200%; }
}

.vp-shared-bonus-label {
    color: var(--vp-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 3px;
    text-transform: uppercase;
    position: relative;
}

.vp-shared-bonus-amount {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    text-shadow: 0 0 12px color-mix(in srgb, var(--vp-red-light) 80%, transparent), 0 0 24px color-mix(in srgb, var(--vp-red) 40%, transparent);
    animation: bonusPulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes bonusPulse {
    0%, 100% { text-shadow: 0 0 12px color-mix(in srgb, var(--vp-red-light) 80%, transparent), 0 0 24px color-mix(in srgb, var(--vp-red) 40%, transparent); }
    50% { text-shadow: 0 0 16px color-mix(in srgb, var(--vp-gold) 90%, transparent), 0 0 32px color-mix(in srgb, var(--vp-red-light) 60%, transparent); }
}

/* Contribution pulse — brief flash when someone adds to the pool */
.vp-bonus-pulse {
    animation: bonusContribPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes bonusContribPulse {
    0% { transform: scale(1); box-shadow: 0 4px 16px color-mix(in srgb, var(--vp-red) 15%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
    40% { transform: scale(1.06); box-shadow: 0 4px 24px color-mix(in srgb, var(--vp-gold) 50%, transparent), 0 0 30px color-mix(in srgb, var(--vp-red-light) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.1); border-color: color-mix(in srgb, var(--vp-gold) 60%, transparent); }
    100% { transform: scale(1); box-shadow: 0 4px 16px color-mix(in srgb, var(--vp-red) 15%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
}

/* ===== PLAYERS HEADER ===== */
.vp-players-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 0 2px;
}

.vp-players-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.vp-players-count {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
    color: #4caf50;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    min-width: 18px;
    text-align: center;
}

/* ===== PLAYER LIST ===== */
.vp-table-players {
    flex: 0 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    padding-right: 2px;
    max-height: 120px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--vp-gold) 20%, transparent) transparent;
}

.vp-table-players::-webkit-scrollbar {
    width: 4px;
}

.vp-table-players::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--vp-gold) 20%, transparent);
    border-radius: 2px;
}

.vp-player-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

/* Left accent bar */
.vp-player-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: color-mix(in srgb, var(--vp-gold) 30%, transparent);
    border-radius: 0 3px 3px 0;
    transition: background 0.3s ease;
}

/* Current user highlight */
.vp-player-me {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--vp-gold) 8%, transparent) 0%,
        color-mix(in srgb, var(--vp-gold) 3%, transparent) 100%
    );
    border-color: color-mix(in srgb, var(--vp-gold) 15%, transparent);
}

.vp-player-me::before {
    background: var(--vp-gold);
}

.vp-player-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.vp-player-card:hover::before {
    background: var(--vp-gold);
}

.vp-player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.vp-player-me .vp-player-avatar {
    border-color: color-mix(in srgb, var(--vp-gold) 35%, transparent);
}

.vp-player-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 11px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-player-name small {
    color: color-mix(in srgb, var(--vp-gold) 50%, transparent);
    font-weight: 400;
    font-size: 9px;
}

.vp-player-status {
    color: rgba(255, 255, 255, 0.4);
    font-size: 9px;
    font-weight: 500;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.vp-status-flash {
    color: #4caf50 !important;
    font-weight: 700;
    animation: statusFlash 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes statusFlash {
    0% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===== MOBILE PLAYER STRIP (hidden on desktop) ===== */
.vp-mobile-players {
    display: none;
}

/* ===== CHAT PANEL ===== */
.vp-table-chat {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* ===== CHAT TAB BAR ===== */
.vp-chat-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.vp-chat-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 7px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.vp-chat-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: transparent;
    border-radius: 2px 2px 0 0;
    transition: all 0.25s ease;
}

.vp-chat-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.vp-chat-tab.active {
    color: var(--vp-gold);
}

.vp-chat-tab.active::after {
    background: var(--vp-gold);
    left: 10%;
    right: 10%;
    box-shadow: 0 0 8px color-mix(in srgb, var(--vp-gold) 40%, transparent);
}

/* Unread badge */
.vp-chat-unread {
    background: linear-gradient(135deg, var(--vp-red-light), var(--vp-red));
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    min-width: 15px;
    height: 15px;
    line-height: 15px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
    display: inline-block;
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--vp-red) 40%, transparent);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* ===== CHAT MESSAGES ===== */
.vp-chat-messages {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 4px 6px;
    font-size: 11px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--vp-gold) 15%, transparent) transparent;
}

.vp-chat-messages::-webkit-scrollbar {
    width: 3px;
}

.vp-chat-messages::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--vp-gold) 15%, transparent);
    border-radius: 2px;
}

/* Chat message bubbles */
.vp-chat-msg {
    margin-bottom: 4px;
    animation: msgSlideIn 0.3s ease-out;
}

/* Grouped messages: tighter spacing, no sender */
.vp-chat-msg.vp-chat-grouped {
    margin-top: -2px;
}

@keyframes msgSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.vp-chat-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 8px;
    word-wrap: break-word;
    line-height: 1.3;
}

/* Other player's messages (left, frosted) */
.vp-chat-msg-other .vp-chat-bubble {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 3px;
    color: rgba(255, 255, 255, 0.9);
}

.vp-chat-msg-other .vp-chat-sender {
    color: var(--vp-green);
    font-weight: 700;
    font-size: 9px;
    display: block;
    margin-bottom: 1px;
}

/* My messages (right, gold accent) */
.vp-chat-msg-me {
    text-align: right;
}

.vp-chat-msg-me .vp-chat-bubble {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--vp-gold) 20%, transparent) 0%,
        color-mix(in srgb, var(--vp-gold) 12%, transparent) 100%
    );
    border: 1px solid color-mix(in srgb, var(--vp-gold) 20%, transparent);
    border-bottom-right-radius: 3px;
    color: #fff;
}

.vp-chat-msg-me .vp-chat-sender {
    display: block;
    color: var(--vp-gold);
    font-weight: 700;
    font-size: 9px;
    margin-bottom: 1px;
}

/* Timestamp */
.vp-chat-time {
    display: inline-block;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.25);
    margin-left: 6px;
    vertical-align: bottom;
    font-weight: 400;
}

.vp-chat-msg-me .vp-chat-time {
    color: color-mix(in srgb, var(--vp-gold) 35%, transparent);
}

/* ===== SYSTEM MESSAGES ===== */
.vp-chat-msg-system {
    text-align: center;
    margin: 6px 0;
}

.vp-chat-system-bubble {
    display: inline-block;
    padding: 3px 10px;
    background: color-mix(in srgb, var(--vp-gold) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--vp-gold) 12%, transparent);
    border-radius: 12px;
    font-size: 9px;
}

.vp-chat-system-text {
    color: color-mix(in srgb, var(--vp-gold) 60%, transparent);
    font-weight: 600;
}

.vp-chat-msg-system .vp-chat-time {
    color: color-mix(in srgb, var(--vp-gold) 25%, transparent);
    margin-left: 4px;
}

/* ===== SCROLL TO BOTTOM BUTTON ===== */
.vp-chat-scroll-btn {
    position: absolute;
    bottom: 42px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--vp-gold) 25%, transparent), color-mix(in srgb, var(--vp-gold) 20%, transparent));
    border: 1px solid color-mix(in srgb, var(--vp-gold) 30%, transparent);
    border-radius: 50%;
    color: var(--vp-gold);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vp-chat-scroll-btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--vp-gold) 40%, transparent), color-mix(in srgb, var(--vp-gold) 30%, transparent));
    box-shadow: 0 2px 12px color-mix(in srgb, var(--vp-gold) 30%, transparent);
    transform: translateY(-1px);
}

/* ===== EMOJI PICKER ===== */
.vp-emoji-picker {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg,
        rgba(15, 20, 30, 0.97) 0%,
        rgba(10, 14, 20, 0.98) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.vp-emoji-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vp-emoji-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s;
}

.vp-emoji-close:hover {
    color: #fff;
}

.vp-emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    padding: 6px;
    max-height: 100px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--vp-gold) 15%, transparent) transparent;
}

.vp-emoji-grid::-webkit-scrollbar {
    width: 3px;
}

.vp-emoji-grid::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--vp-gold) 15%, transparent);
    border-radius: 2px;
}

.vp-emoji-item {
    background: none;
    border: none;
    font-size: 16px;
    padding: 3px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.15s ease;
    line-height: 1;
    text-align: center;
}

.vp-emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.vp-emoji-item:active {
    transform: scale(0.95);
}

/* ===== EMOJI BUTTON IN INPUT ===== */
.vp-emoji-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
}

.vp-emoji-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1);
}

/* ===== CHAT INPUT ===== */
.vp-chat-input {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-shrink: 0;
    align-items: center;
}

.vp-chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    transition: all 0.2s ease;
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
}

.vp-chat-input input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: color-mix(in srgb, var(--vp-gold) 40%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--vp-gold) 10%, transparent);
    outline: none;
}

.vp-chat-input input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.vp-chat-input .vp-btn-send {
    background: linear-gradient(135deg, color-mix(in srgb, var(--vp-gold) 20%, transparent), color-mix(in srgb, var(--vp-gold) 15%, transparent));
    border: 1px solid color-mix(in srgb, var(--vp-gold) 25%, transparent);
    color: var(--vp-gold);
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vp-chat-input .vp-btn-send:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--vp-gold) 30%, transparent), color-mix(in srgb, var(--vp-gold) 25%, transparent));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--vp-gold) 20%, transparent);
}

/* ===== RESPONSIVE ===== */

/* On mobile, sidebar becomes a bottom drawer */
@media (max-width: 600px) {
    .vp-table-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex: 1 1 0;
        min-height: 120px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        flex-wrap: nowrap;
        box-shadow: none;
        padding: 4px 8px;
        overflow: hidden;
    }

    /* Hide bonus + full player list on mobile */
    .vp-shared-bonus,
    .vp-players-header,
    .vp-table-players {
        display: none !important;
    }

    /* Show compact player strip on mobile */
    .vp-mobile-players {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 3px 4px;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 0 0 auto;
        scrollbar-width: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 2px;
    }

    .vp-mobile-players::-webkit-scrollbar {
        display: none;
    }

    .vp-mstrip-player {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
        padding: 2px 6px 2px 2px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
    }

    .vp-mstrip-player img {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .vp-mstrip-player span {
        font-size: 9px;
        color: rgba(255, 255, 255, 0.7);
        font-weight: 600;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vp-mstrip-me {
        background: color-mix(in srgb, var(--vp-gold) 10%, transparent);
        border-color: color-mix(in srgb, var(--vp-gold) 20%, transparent);
    }

    .vp-mstrip-me span {
        color: var(--vp-gold);
    }

    /* Chat takes all remaining space */
    .vp-table-chat {
        flex: 1;
        min-height: 0;
        border-top: none;
        border-left: none;
        padding-top: 0;
        padding-left: 0;
        max-height: none;
    }

    .vp-chat-tab-bar {
        margin-bottom: 2px;
    }

    .vp-chat-tab {
        padding: 3px 4px;
        font-size: 9px;
    }

    .vp-chat-messages {
        max-height: none;
        min-height: 30px;
    }

    .vp-chat-input {
        margin-top: 3px;
    }

    .vp-emoji-picker {
        position: fixed;
        bottom: calc(64px + var(--sab, 0px));
        left: 0;
        right: 0;
        z-index: 300;
        border-radius: 12px 12px 0 0;
        max-height: 45vh;
    }

    .vp-emoji-grid {
        grid-template-columns: repeat(8, 1fr);
        max-height: 35vh;
    }

    .vp-emoji-item {
        font-size: 20px;
        padding: 6px;
    }

    .vp-chat-scroll-btn {
        bottom: 34px;
        width: 20px;
        height: 20px;
        font-size: 8px;
    }

    /* Allow game area to scroll when sidebar is in flow */
    .vp-game.vp-mp-active {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Adjust game area when sidebar is visible (desktop) */
@media (min-width: 601px) {
    .vp-game:has(.vp-table-sidebar[style*="display: block"]),
    .vp-game:has(.vp-table-sidebar:not([style*="display:none"]):not([style*="display: none"])) {
        padding-right: 220px;
    }
}

/* ══════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════════════ */
[data-theme="light"] .vp-table-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.97) 100%);
    border-left-color: rgba(0, 0, 0, 0.08);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .vp-shared-bonus {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--vp-red) 12%, transparent) 0%,
        color-mix(in srgb, var(--vp-red) 6%, transparent) 100%
    );
    border-color: color-mix(in srgb, var(--vp-red) 20%, transparent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .vp-shared-bonus-amount {
    color: var(--vp-red);
    text-shadow: none;
}

[data-theme="light"] .vp-players-title {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .vp-players-count {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.06));
    color: #16a34a;
    border-color: rgba(22, 163, 74, 0.2);
}

[data-theme="light"] .vp-table-players {
    scrollbar-color: color-mix(in srgb, var(--vp-gold) 15%, transparent) transparent;
}

[data-theme="light"] .vp-table-players::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--vp-gold) 15%, transparent);
}

[data-theme="light"] .vp-player-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vp-player-card::before {
    background: color-mix(in srgb, var(--vp-gold) 25%, transparent);
}

[data-theme="light"] .vp-player-me {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--vp-gold) 8%, transparent) 0%,
        color-mix(in srgb, var(--vp-gold) 3%, transparent) 100%
    );
    border-color: color-mix(in srgb, var(--vp-gold) 15%, transparent);
}

[data-theme="light"] .vp-player-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .vp-player-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .vp-player-name {
    color: #1e293b;
}

[data-theme="light"] .vp-player-name small {
    color: color-mix(in srgb, var(--vp-gold) 70%, transparent);
}

[data-theme="light"] .vp-player-status {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .vp-status-flash {
    color: #16a34a !important;
}

/* Chat light overrides */
[data-theme="light"] .vp-table-chat {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vp-chat-tab-bar {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vp-chat-tab {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .vp-chat-tab:hover {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .vp-chat-tab.active {
    color: var(--vp-gold);
}

[data-theme="light"] .vp-chat-messages {
    scrollbar-color: color-mix(in srgb, var(--vp-gold) 12%, transparent) transparent;
}

[data-theme="light"] .vp-chat-messages::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--vp-gold) 12%, transparent);
}

[data-theme="light"] .vp-chat-msg-other .vp-chat-bubble {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

[data-theme="light"] .vp-chat-msg-other .vp-chat-sender {
    color: #0891b2;
}

[data-theme="light"] .vp-chat-msg-me .vp-chat-bubble {
    color: #1e293b;
}

[data-theme="light"] .vp-chat-time {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .vp-chat-system-bubble {
    background: color-mix(in srgb, var(--vp-gold) 6%, transparent);
    border-color: color-mix(in srgb, var(--vp-gold) 10%, transparent);
}

[data-theme="light"] .vp-chat-system-text {
    color: color-mix(in srgb, var(--vp-gold) 80%, transparent);
}

[data-theme="light"] .vp-chat-scroll-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Emoji picker light */
[data-theme="light"] .vp-emoji-picker {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.99) 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .vp-emoji-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .vp-emoji-close {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .vp-emoji-close:hover {
    color: #000;
}

[data-theme="light"] .vp-emoji-grid {
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

[data-theme="light"] .vp-emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .vp-emoji-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vp-emoji-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* Chat input light */
[data-theme="light"] .vp-chat-input input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-theme="light"] .vp-chat-input input:focus {
    background: rgba(0, 0, 0, 0.02);
    border-color: color-mix(in srgb, var(--vp-gold) 50%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--vp-gold) 10%, transparent);
}

[data-theme="light"] .vp-chat-input input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* Mobile strip light */
[data-theme="light"] .vp-mstrip-player {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vp-mstrip-player img {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .vp-mstrip-player span {
    color: #475569;
}

[data-theme="light"] .vp-mobile-players {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
