/* ========================================
   SISTEMA DE DESIGN MODERNO - QUEM DISSE ISSO?
   Compatible with Bootstrap 5.3
   ======================================== */

:root {
    /* Cores principais */
    --primary-color: #0d6efd;
    --primary-color-rgb: 13, 110, 253;
    --primary-light: #6ea8fe;
    --primary-dark: #0a58ca;
    --secondary-color: #fd7e14;
    --secondary-color-rgb: 253, 126, 20;
    --secondary-light: #ffb366;
    --accent-color: #198754;
    --accent-color-rgb: 25, 135, 84;
    --accent-light: #75b798;

    /* Cores do gradiente de fundo moderno */
    --gradient-start: #667eea;
    --gradient-middle: #764ba2;
    --gradient-end: #8b5cf6;
    --gradient-accent: #a78bfa;

    /* Cores de estado */
    --error-color: #dc3545;
    --error-light: #f8d7da;
    --success-color: #198754;
    --success-light: #d1e7dd;
    --warning-color: #fd7e14;
    --warning-light: #fff3cd;

    /* Cores roxas para badges de aguardo */
    --purple-light: #e879f9;
    /* Lilás claro para outros jogadores */
    --purple-light-bg: #fdf4ff;
    /* Background lilás muito claro */
    --purple-dark: #7c3aed;
    /* Roxo escuro para o jogador atual */
    --purple-dark-bg: #8b5cf6;
    /* Background roxo para contraste */

    /* Cores neutras */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-accent: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --border-light: #f1f3f4;

    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Bordas */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;

    /* Espaçamentos */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 3rem;
}

/* ========================================
   MELHORIAS PARA BOOTSTRAP COMPONENTS
   ======================================== */

/* Cards aprimorados */
.card {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: none;
    font-weight: 600;
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Botões aprimorados */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border: none;
}

/* ========================================
   FUNDO GRADIENTE MODERNO
   ======================================== */

body {
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #e2e8f0 25%,
            #cbd5e1 75%,
            #94a3b8 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Overlay sutil para melhorar contraste */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(248, 250, 252, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Container principal com melhor integração ao gradiente */
.container-lg,
.container-fluid {
    position: relative;
    z-index: 1;
}

/* Responsividade do gradiente - ainda mais sutil em mobile */
@media (max-width: 768px) {
    body::before {
        background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.6) 0%,
                rgba(255, 255, 255, 0.3) 50%,
                rgba(248, 250, 252, 0.2) 100%);
    }

    .card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
}

/* ========================================
   MELHORIAS PARA BOOTSTRAP COMPONENTS
   ======================================== */

/* Cards aprimorados com melhor contraste sobre gradiente */
.card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
}

.card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.95);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: none;
    font-weight: 600;
}

.card-title {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Botões aprimorados com melhor contraste sobre gradiente */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border: none;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border: none;
    color: white;
}

/* ========================================
   COMPONENTES ESPECÍFICOS DA SALA
   ======================================== */

/* Cabeçalho da sala - container simples */
/* ========================================
   COMPONENTES ESPECÍFICOS DA SALA
   ======================================== */

/* Cabeçalho da sala */
.sala-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 0;
    height: 100%;
}

/* Estilo específico para o container do cabeçalho */
.home-player-card-integrated {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 0.75rem 1rem;
}

.home-player-card-integrated .player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.home-player-card-integrated .header-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Design moderno com anel duplo */
    border: 3px solid #ffffff;
    box-shadow:
        0 0 0 2px rgba(var(--primary-color-rgb), 0.2),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-avatar:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 0 0 3px rgba(var(--primary-color-rgb), 0.4),
        0 8px 25px rgba(var(--primary-color-rgb), 0.25),
        0 4px 15px rgba(0, 0, 0, 0.2);

    /* Efeito de brilho sutil */
    filter: brightness(1.05);
}

.player-avatar .user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-avatar:hover .user-photo {
    filter: brightness(1.1) saturate(1.1);
    transform: scale(1.02);
}

/* Efeito de anel animado para fotos do usuário */
.player-avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            rgba(var(--primary-color-rgb), 0.3) 60deg,
            rgba(var(--secondary-color-rgb, 253, 126, 20), 0.3) 120deg,
            rgba(var(--accent-color-rgb, 25, 135, 84), 0.3) 180deg,
            transparent 240deg,
            rgba(var(--primary-color-rgb), 0.3) 300deg,
            transparent 360deg);
    opacity: 0;
    transition: all 0.3s ease;
    animation: rotate 3s linear infinite;
    z-index: -1;
}

.player-avatar:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Detalhes do player (nome e status) */
.player-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.player-status i {
    font-size: 0.625rem;
}

.player-avatar:hover .user-photo {
    filter: brightness(1.1);
}

.player-details h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.room-code {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* ========================================
   CABEÇALHO MODERNO DO JOGADOR
   ======================================== */

.player-header-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    /* Altura mais compacta */
    min-height: 60px;
    box-sizing: border-box;
}

.player-header-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.player-details {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.player-status {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    line-height: 1.2;
}

.player-status .bi-circle-fill {
    font-size: 0.5rem;
}

.btn-modern-exit {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 2rem;
    /* Altura compacta para alinhamento */
}

.btn-modern-exit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(220, 53, 69, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern-exit:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.2);
}

.btn-modern-exit:hover::before {
    opacity: 1;
}

.btn-modern-exit i {
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.btn-modern-exit .exit-text {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    letter-spacing: 0.025em;
}

.room-info-compact {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.room-code-compact {
    background: var(--bg-accent);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Consolas', 'Monaco', monospace;
}

.room-code-compact:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.status-compact {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    /* Altura ajustada para compacto */
}

/* ========================================
   SEÇÃO UNIFICADA: JOGO + JOGADOR
   ======================================== */

.game-header-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    margin-top: 1.75rem;
}

.game-header-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.game-header-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 1.25rem 0.875rem 1.25rem;
    text-align: center;
    position: relative;
}

.game-header-title h4 {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
    margin: 0;
}

.game-header-title i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.player-header-card-integrated {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    box-sizing: border-box;
    /* Não arredonda cantos superiores para integração */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-header-menu {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-header-menu:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* Botão de sair da sala */
.btn-exit-sala {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-exit-sala:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-exit-sala i {
    font-size: 0.9rem;
}

.btn-exit-sala span {
    font-weight: 600;
}

/* Dropdown customizado para o header */
.dropdown-item-custom {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    margin: 2px 0;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.dropdown-item-custom:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.dropdown-item-danger {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    margin: 2px 0;
    color: var(--error-color);
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.dropdown-item-danger:hover {
    background: var(--error-light);
    color: var(--error-color);
    border-color: var(--error-color);
    transform: translateY(-1px);
}

/* Dropdown menu do header */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    margin-top: var(--space-1);
    min-width: 150px;
}

.dropdown-divider {
    margin: var(--space-2) 0;
    border-color: var(--border-light);
}

/* Nova seção de informações da sala */
.room-info-section {
    margin-bottom: var(--space-4);
}

.room-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.room-info-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.room-code-section {
    flex: 1;
}

.room-code-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-1);
}

.room-code-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.room-code-value:hover {
    background: var(--bg-accent);
    transform: translateY(-1px);
}

.room-actions {
    display: flex;
    gap: var(--space-2);
}

.btn-room-danger {
    background: var(--error-light);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-room-danger:hover {
    background: var(--error-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-room-share {
    background: #25d366;
    color: white;
    border: 1px solid #25d366;
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-room-share:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Nova seção de compartilhamento compacta */
.share-main-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sala-code-display {
    text-align: center;
    padding: var(--space-3);
    background: var(--bg-accent);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border-color);
}

.sala-code-header {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.sala-code-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    display: inline-block;
    background: white;
    border: 1px solid var(--border-light);
}

.sala-code-value:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.share-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-3);
}

.btn-share-action {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--text-primary);
}

.btn-share-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.btn-share-action.danger:hover {
    border-color: var(--error-color);
}

.btn-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.btn-action-icon.whatsapp {
    background: #25d366;
}

.btn-action-icon.link {
    background: var(--primary-color);
}

.btn-action-icon.danger {
    background: var(--error-color);
}

.btn-share-action span {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Responsividade */
@media (max-width: 576px) {
    .share-actions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .btn-share-action.danger {
        grid-column: 1 / -1;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Botão de sair responsivo */
    .btn-exit-sala span {
        display: none;
    }

    .btn-exit-sala {
        padding: var(--space-2);
        min-width: 36px;
        justify-content: center;
    }
}

/* Layout moderno do jogo */
.game-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Cards uniformes para todas as seções */
.game-card,
.history-card,
.prompts-card,
.ranking-card,
.share-card,
.round-card,
.management-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Altura mínima consistente para ranking e histórico */
.ranking-card,
.history-card {
    min-height: 400px;
}

.game-card:hover,
.history-card:hover,
.prompts-card:hover,
.ranking-card:hover,
.share-card:hover,
.round-card:hover,
.management-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Headers uniformes */
.game-card-header,
.history-header,
.prompts-header,
.ranking-header,
.share-header,
.round-card-header,
.management-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header específico da rodada - Roxo para destaque */
.round-card-header {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.round-card-header .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

.round-card-header .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Body específico da rodada */
.round-card-body {
    padding: var(--space-4);
}

/* Prompt da rodada dentro do card */
.round-card .round-prompt {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.9));
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border-left: 4px solid #8b5cf6;
    margin: var(--space-3) 0;
    position: relative;
}

.round-card .round-prompt::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 2rem;
    color: #8b5cf6;
    opacity: 0.3;
    font-family: serif;
}

.round-prompt-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.history-header {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.prompts-header {
    background: linear-gradient(135deg, #198754, #75b798);
}

.ranking-header {
    background: linear-gradient(135deg, #ffc107, #ffeb3b);
}

.share-header {
    background: linear-gradient(135deg, #17a2b8, #6cb2eb);
}

.round-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.game-card-header h4,
.history-header h4,
.prompts-header h4,
.ranking-header h4,
.share-header h4,
.management-header h4,
.round-card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Body sections */
.game-card-body,
.history-body,
.prompts-body,
.ranking-body,
.share-body {
    padding: var(--space-4);
}

/* Override para seções modernizadas */
.prompts-body,
.ranking-body,
.history-body {
    padding: 0;
}

/* Ranking body com bordas arredondadas apenas na parte inferior */
.ranking-body {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========================================
   RANKING MODERNO - DESIGN CONSOLIDADO
   ======================================== */

/* Lista de players - Layout card-within-card moderno */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

/* Card individual de cada player - matching other sections */
.ranking-player-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ranking-player-card:hover {
    background: rgba(0, 0, 0, 0.015);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Líder especial com destaque dourado sutil */
.ranking-player-leader {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 193, 7, 0.06) 100%);
    border: 2px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.15);
}

.ranking-player-leader:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 6px 28px rgba(255, 193, 7, 0.2);
}

/* Player Info (lado esquerdo) */
.ranking-player-card .player-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.ranking-player-card .player-avatar {
    position: relative;
    flex-shrink: 0;
}

.ranking-player-card .avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.ranking-player-leader .avatar-img {
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.ranking-player-card .avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Indicador do criador - discreto e moderno */
.ranking-player-card .creator-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.ranking-player-card .player-details {
    flex: 1;
    min-width: 0;
}

.ranking-player-card .player-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-player-leader .player-name {
    color: #92400e;
    font-weight: 700;
}

.ranking-player-card .player-points {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.2;
}

.ranking-player-card .points-value {
    font-weight: 600;
    color: #7c3aed;
}

.ranking-player-leader .points-value {
    color: #d97706;
}

.ranking-player-card .points-label {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Connection Status Indicators - MELHORADOS */
.ranking-player-card .connection-status {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.85rem;
    /* Aumentado de 0.75rem */
    font-weight: 600;
    /* Mais destaque */
    opacity: 0.9;
    /* Mais visível */
}

.ranking-player-card .connection-status.offline {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    /* Fundo sutil */
    padding: 0.15rem 0.4rem;
    /* Padding para destaque */
    border-radius: 12px;
    /* Bordas arredondadas */
}

.ranking-player-card .connection-status.reconnecting {
    color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
    /* Fundo sutil */
    padding: 0.15rem 0.4rem;
    /* Padding para destaque */
    border-radius: 12px;
    /* Bordas arredondadas */
    animation: pulse-reconnect 1.5s ease-in-out infinite;
}

.ranking-player-card .connection-status i {
    font-size: 1rem;
    /* Ícones maiores */
    margin-right: 0.3rem;
    /* Mais espaço */
}

.ranking-player-card .offline-text {
    font-size: 0.75rem;
    /* Aumentado de 0.65rem */
    color: #495057;
    /* Mais contraste */
    margin-left: 0.3rem;
    /* Mais espaço */
    font-style: italic;
    font-weight: 500;
    /* Mais destaque */
}

/* Estado de jogador verdadeiramente offline (após grace period) */
.ranking-player-card.player-truly-offline {
    opacity: 0.7;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05), rgba(233, 236, 239, 0.1));
    border: 1px solid rgba(108, 117, 125, 0.2);
    position: relative;
}

.ranking-player-card.player-truly-offline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6c757d, #495057);
    border-radius: 0 2px 2px 0;
}

.ranking-player-card.player-truly-offline .player-name {
    color: #6c757d !important;
    text-decoration: line-through;
    text-decoration-color: rgba(108, 117, 125, 0.5);
}

.ranking-player-card.player-truly-offline .avatar-img,
.ranking-player-card.player-truly-offline .avatar-placeholder {
    filter: grayscale(60%) brightness(0.8);
    border-color: rgba(108, 117, 125, 0.3);
}

.ranking-player-card.player-truly-offline .connection-status.truly-offline {
    background: rgba(108, 117, 125, 0.15);
    color: #495057;
    font-weight: 600;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.ranking-player-card.player-truly-offline .offline-text {
    color: #495057;
    font-weight: 600;
}

.ranking-player-card.player-truly-offline .position-pill {
    opacity: 0.6;
    filter: grayscale(40%);
}

/* Animação suave para transição para offline */
.ranking-player-card {
    transition: all 0.5s ease;
}

.ranking-player-card.player-truly-offline {
    animation: fadeToOffline 0.8s ease-in-out;
}

@keyframes fadeToOffline {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

@keyframes pulse-reconnect {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        /* Pequeno efeito de crescimento */
    }
}

/* Mobile adjustments for connection status - MELHORADOS */
@media (max-width: 576px) {
    .ranking-player-card .connection-status {
        font-size: 0.8rem;
        /* Mantém tamanho decente no mobile */
    }

    .ranking-player-card .connection-status i {
        font-size: 0.9rem;
        /* Ícones um pouco menores no mobile */
    }

    .ranking-player-card .offline-text {
        font-size: 0.7rem;
        /* Texto ainda legível no mobile */
    }
}

/* Badges modernos (lado direito) */
.ranking-player-card .ranking-badges {
    flex-shrink: 0;
}

/* Pills/Badges modernos - matching design system */
.ranking-player-card .position-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ranking-player-card .position-pill i {
    font-size: 0.875rem;
}

/* Cores dos pills - seguindo design system moderno */
.ranking-player-card .gold-pill {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.ranking-player-card .gold-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.ranking-player-card .silver-pill {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.ranking-player-card .silver-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.ranking-player-card .bronze-pill {
    background: linear-gradient(135deg, #cd7f32, #b86f28);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.ranking-player-card .bronze-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.ranking-player-card .default-pill {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.25);
}

.ranking-player-card .default-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}

/* Empty State - consistente com outras seções */
.ranking-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #6b7280;
}

.ranking-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ranking-empty .empty-text h6 {
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ranking-empty .empty-text p {
    margin: 0;
    font-size: 0.875rem;
}

/* Animações de entrada suaves */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ranking-player-card {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ranking-player-card:nth-child(1) {
    animation-delay: 0.05s;
}

.ranking-player-card:nth-child(2) {
    animation-delay: 0.1s;
}

.ranking-player-card:nth-child(3) {
    animation-delay: 0.15s;
}

.ranking-player-card:nth-child(4) {
    animation-delay: 0.2s;
}

.ranking-player-card:nth-child(5) {
    animation-delay: 0.25s;
}

/* Responsividade do ranking */
@media (min-width: 576px) {
    .ranking-body {
        padding: 1.25rem;
    }

    .ranking-player-card {
        padding: 1.25rem;
    }

    .ranking-list {
        gap: 0.875rem;
    }

    .ranking-player-card .avatar-img,
    .ranking-player-card .avatar-placeholder {
        width: 48px;
        height: 48px;
    }

    .ranking-player-card .creator-indicator {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .ranking-player-card .position-pill {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .ranking-title {
        font-size: 1.35rem;
    }

    .ranking-body {
        padding: 1.5rem;
    }

    .ranking-player-card {
        padding: 1.375rem;
    }

    .ranking-player-card .player-name {
        font-size: 1rem;
    }
}

.game-card-body-compact,
.history-body-compact {
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: visible;
}

/* Scrollbar personalizada para o histórico */
.history-body-compact::-webkit-scrollbar {
    width: 6px;
}

.history-body-compact::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.history-body-compact::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.history-body-compact::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   HISTÓRICO MODERNO
   ======================================== */

/* Histórico Simplificado */
.history-item-simple {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.history-item-simple:hover {
    background-color: var(--bg-accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item-simple:last-child {
    border-bottom: none;
}

.btn-details-simple {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.history-item-simple:hover .btn-details-simple {
    opacity: 1;
    transform: translateX(0);
}

.history-item-clickable {
    cursor: pointer;
}

/* Modal de histórico */
#modalHistoricoRodada .modal-dialog {
    max-width: 90vw;
}

#modalHistoricoRodada .modal-body {
    padding: 1rem;
}

/* Prevenir scroll automático ao abrir modal */
.modal {
    overflow-y: auto;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Prevenir scroll quando modal é aberto */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Cards de pontuação mobile-first */
.historia-card {
    transition: transform 0.2s ease;
    border: 1px solid #dee2e6;
}

.historia-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.historia-card .card-body {
    padding: 0.75rem;
}

/* Melhor espaçamento para detalhes de pontuação */
.historia-card .card-body .small {
    line-height: 1.6;
}

.historia-card .card-body .small .badge {
    margin: 0.1rem 0.2rem 0.1rem 0;
    font-size: 0.75rem;
}

.historia-card .card-body .small>span {
    display: block;
    margin-bottom: 0.4rem;
}

.historia-card .card-body .small>span:last-child {
    margin-bottom: 0;
}

.historia-posicao {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

.historia-pontos {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

/* Responsividade mobile */
@media (max-width: 768px) {
    #modalHistoricoRodada .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    #modalHistoricoRodada .modal-body {
        padding: 0.75rem;
    }

    .historia-card .card-body {
        padding: 0.5rem;
    }

    .historia-card .card-body .small {
        line-height: 1.5;
    }

    .historia-card .card-body .small .badge {
        font-size: 0.7rem;
        margin: 0.05rem 0.15rem 0.05rem 0;
    }

    .historia-card .card-title {
        font-size: 1rem;
    }

    .historia-card .card-text {
        font-size: 0.85rem;
    }
}

.history-author {
    font-weight: 500;
}

/* ========================================
   MODAL RESPONDER PROMPT - DESIGN MODERNO
   ======================================== */

.modal-responder-mobile .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header modernizado */
.responder-header {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    position: relative;
}

.responder-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
}

.responder-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.responder-header .modal-title i {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ========================================
   MODAL RESPONDER PROMPT - SIMPLIFICADO ROXO
   ======================================== */

/* Largura controlada pelos media queries específicos */

.modal-responder-mobile .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Header roxo moderno */
.responder-header {
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.responder-header .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.responder-header i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Body simplificado */
.responder-body {
    padding: 1.5rem;
    background: #f8f9fa;
    min-height: 350px;
}

/* Card unificado */
.responder-card-unified {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(111, 66, 193, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.responder-card-unified:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(111, 66, 193, 0.2);
}

/* Seção do Prompt */
.prompt-section {
    padding: 1.25rem;
    background: rgba(111, 66, 193, 0.02);
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #6f42c1;
    font-size: 0.95rem;
}

.prompt-header i {
    color: #8f6bd1;
}

.prompt-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #495057;
    margin: 0;
    padding: 0.75rem 1rem;
    background: white;
    border-left: 4px solid #6f42c1;
    border-radius: var(--radius-sm);
    line-height: 1.6;
    position: relative;
}

.prompt-quote::before,
.prompt-quote::after {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: rgba(111, 66, 193, 0.3);
    position: absolute;
}

.prompt-quote::before {
    content: '"';
    top: -0.25rem;
    left: 0.5rem;
}

.prompt-quote::after {
    content: '"';
    bottom: -0.5rem;
    right: 0.5rem;
}

/* Divisor roxo sutil */
.prompt-divisor {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111, 66, 193, 0.3), transparent);
    margin: 0;
}

/* Seção de Resposta */
.resposta-section {
    padding: 1.25rem;
}

.resposta-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #6f42c1;
    font-size: 0.95rem;
}

.resposta-header i {
    color: #8f6bd1;
}

/* Botão de dica moderno e suave */
.btn-dica-trigger {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(139, 92, 246, 0.12));
    border: 1.5px solid rgba(111, 66, 193, 0.2);
    color: #6f42c1;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    /* Mais arredondado */
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.1);
    backdrop-filter: blur(8px);
}

.btn-dica-trigger:hover {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15), rgba(139, 92, 246, 0.2));
    border-color: rgba(111, 66, 193, 0.35);
    color: #5a2d91;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.25);
}

.btn-dica-trigger:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.2);
}

/* Campo de resposta */
.resposta-input-wrapper {
    position: relative;
}

.resposta-textarea {
    border: 2px solid rgba(111, 66, 193, 0.15);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: #fefefe;
    resize: vertical;
    min-height: 100px;
}

.resposta-textarea:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
    background: white;
}

.resposta-textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Footer do input */
.resposta-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.resposta-counter {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resposta-counter i {
    color: #6f42c1;
}

.resposta-counter.warning {
    color: #fd7e14;
}

.resposta-counter.danger {
    color: #dc3545;
}

.resposta-validation {
    color: #6f42c1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resposta-validation.valid {
    opacity: 1;
}

/* Footer do modal */
.responder-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
}

/* Botão principal */
.btn-responder-primary {
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

.btn-responder-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a2d91, #6f42c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
    color: white;
}

.btn-responder-primary:disabled {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa) !important;
    color: #6c757d !important;
    border: 2px solid #dee2e6 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-responder-primary:disabled i {
    color: #6c757d !important;
    filter: none !important;
}

.btn-responder-primary i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Estados de carregamento */
.responder-loading .modal-content {
    opacity: 0.8;
    pointer-events: none;
}

.responder-loading .btn-responder-primary {
    background: linear-gradient(45deg, #6f42c1, #8f6bd1, #6f42c1);
    background-size: 200% 200%;
    animation: loading-gradient 1.5s ease-in-out infinite;
}

@keyframes loading-gradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ========================================
   BOTÕES SALA - RESPONDER E VOTAR (CONSISTÊNCIA)
   ======================================== */

/* ========================================
   BOTÕES SALA - RESPONDER E VOTAR (CONSISTÊNCIA)
   ======================================== */

/* Classe unificada para botões de ação da sala - usando especificidade adequada */
.d-flex .btn-sala-action,
.round-footer .btn-sala-action {
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

.d-flex .btn-sala-action:hover:not(:disabled):not(.disabled),
.round-footer .btn-sala-action:hover:not(:disabled):not(.disabled) {
    background: linear-gradient(135deg, #5a2d91, #6f42c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
    color: white;
}

.d-flex .btn-sala-action:focus,
.round-footer .btn-sala-action:focus {
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Estados desabilitados e de resposta enviada - mais sutis */
.d-flex .btn-sala-action:disabled,
.d-flex .btn-sala-action.disabled,
.round-footer .btn-sala-action:disabled,
.round-footer .btn-sala-action.disabled {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #6c757d;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.d-flex .btn-sala-action:disabled i,
.d-flex .btn-sala-action.disabled i,
.round-footer .btn-sala-action:disabled i,
.round-footer .btn-sala-action.disabled i {
    color: #6c757d;
    filter: none;
}

.d-flex .btn-sala-action i,
.round-footer .btn-sala-action i {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Estado de feedback sutil - sem verde chamativo */
.d-flex .btn-sala-action.btn-feedback-success,
.round-footer .btn-sala-action.btn-feedback-success {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
    opacity: 0.8;
}

.d-flex .btn-sala-action.btn-feedback-success:hover:not(:disabled),
.round-footer .btn-sala-action.btn-feedback-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: #28a745;
    transform: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15);
}

/* ========================================
   MODAL DICA ESTRATÉGICA - NOVO
   ======================================== */

.modal-dica-mobile {
    max-width: 85vw;
    z-index: 1060;
    /* Maior que o modal padrão (1055) */
}

/* Backdrop específico para modal de dica */
.modal-backdrop.show {
    opacity: 0.3;
    /* Mais transparente para não esconder muito o modal de fundo */
}

/* Desktop: modal de dica ainda menor */
@media (min-width: 768px) {
    .modal-dica-mobile {
        max-width: 450px;
    }
}

.modal-dica-mobile .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    z-index: 1061;
    /* Garante que fica acima */
}

/* Header da dica */
.dica-header {
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    color: white;
    border: none;
    padding: 1rem 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dica-header .modal-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Body da dica */
.dica-body {
    padding: 1.5rem;
    background: transparent;
}

.dica-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid rgba(111, 66, 193, 0.1);
    box-shadow: var(--shadow-sm);
}

.dica-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.dica-content {
    flex: 1;
}

.dica-title {
    color: #6f42c1;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.dica-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.dica-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(111, 66, 193, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid #6f42c1;
}

.dica-tip small {
    color: #6f42c1;
    font-weight: 500;
}

.dica-tip i {
    color: #8f6bd1;
}

/* Footer da dica */
.dica-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: center;
}

.btn-dica-primary {
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.625rem 2rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
}

.btn-dica-primary:hover {
    background: linear-gradient(135deg, #5a2d91, #6f42c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
    color: white;
}

/* Responsividade */
@media (max-width: 576px) {

    .modal-responder-mobile,
    .modal-dica-mobile {
        max-width: 98vw;
        margin: 0.5rem;
    }

    .responder-body,
    .dica-body {
        padding: 1rem;
    }

    .responder-card-unified,
    .prompt-section,
    .resposta-section {
        padding: 1rem;
    }

    .dica-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .dica-icon {
        align-self: center;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

.resposta-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Footer da input */
.resposta-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.resposta-counter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.resposta-counter i {
    font-size: 0.9rem;
    color: #8b5cf6;
}

.resposta-validation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.resposta-validation.valid {
    color: var(--success-color);
}

.resposta-validation.valid i {
    color: var(--success-color);
}

/* Footer modernizado */
.responder-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.btn-responder-primary {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-responder-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-responder-primary:disabled {
    background: #6c757d;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-responder-primary i {
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Contador de caracteres dinâmico */
.resposta-counter.warning {
    color: #fd7e14;
}

.resposta-counter.danger {
    color: #dc3545;
}

/* Animações suaves */
.prompt-display-card,
.resposta-input-card {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resposta-input-card {
    animation-delay: 0.1s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade mobile */
@media (max-width: 768px) {
    .modal-responder-mobile {
        max-width: 95vw;
        margin: 0.5rem auto;
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }

    .modal-responder-mobile .modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .responder-header {
        padding: 1rem 1.25rem;
        flex-shrink: 0;
    }

    .responder-header .modal-title {
        font-size: 1rem;
    }

    .responder-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1.25rem;
        min-height: 0;
    }

    .responder-footer {
        flex-shrink: 0;
        padding: 1rem 1.25rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .responder-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .strategy-tip {
        font-size: 0.8rem;
        padding: 0.75rem;
    }

    .resposta-textarea {
        min-height: 100px;
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .prompt-quote {
        font-size: 1rem;
    }

    .prompt-display-header,
    .resposta-input-header {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .modal-responder-mobile {
        max-width: 98vw;
        margin: 0.25rem auto;
        height: calc(100vh - 0.5rem);
    }

    .responder-body {
        padding: 1rem;
        gap: 1rem;
    }

    .resposta-input-content {
        padding: 1rem;
    }

    .prompt-display-content {
        padding: 1rem;
    }

    .responder-footer {
        padding: 0.875rem 1rem;
    }
}

.history-time {
    font-style: italic;
}

/* Badges de nomes no histórico */
.historia-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 2px;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
}

/* Itens do histórico */
.history-item-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    border-left: 4px solid #198754;
    background-color: rgba(25, 135, 84, 0.05);
}

.history-item-clickable:hover {
    background-color: rgba(25, 135, 84, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item-not-clickable {
    cursor: default;
    opacity: 0.7;
    border-left: 4px solid #6f42c1;
    background-color: rgba(111, 66, 193, 0.05);
}

.history-item-not-clickable:hover {
    background-color: rgba(111, 66, 193, 0.1);
}

/* Estilos para rodadas canceladas */
.history-item-cancelled {
    cursor: default;
    opacity: 0.7;
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.history-item-cancelled:hover {
    background-color: rgba(255, 193, 7, 0.15);
    transform: none;
    box-shadow: none;
}

.history-item-cancelled .text-decoration-line-through {
    text-decoration: line-through !important;
}

/* Estilo para informação do autor */
.prompt-author {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.prompt-author i {
    color: var(--primary-color);
}

/* Responsividade para badges em mobile */
@media (max-width: 768px) {
    .historia-card .badge {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
        margin: 0 1px;
    }
}

/* Botão Ver detalhes moderno */
.btn-details {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: linear-gradient(135deg, #868e96, #adb5bd);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   RODADA ATUAL APRIMORADA
   ======================================== */

.current-round {
    margin-bottom: var(--space-4);
}

.round-content {
    padding: var(--space-5);
    text-align: center;
}

.round-prompt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.round-controls {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   PROMPTS SUGERIDOS
   ======================================== */

.prompt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.prompt-item:hover {
    background: var(--bg-accent);
}

.prompt-item:last-child {
    border-bottom: none;
}

.prompt-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
    margin-right: var(--space-3);
}

.prompt-actions {
    display: flex;
    gap: var(--space-2);
}

/* ========================================
   COMPARTILHAR SEÇÃO - Design Moderno
   ======================================== */

/* Layout principal compacto - Grid lado a lado */
.share-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: stretch;
}

/* Card do código - Versão compacta com visual sutil */
.sala-code-card-compact {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sala-code-card-compact:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.sala-code-card-compact:active {
    transform: translateY(0);
}

.sala-code-card-compact .sala-code-header {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sala-code-card-compact .sala-code-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.1em;
    margin: var(--space-1) 0;
}

.sala-code-card-compact .sala-code-hint {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
}

/* Feedback visual ao copiar - versão sutil */
.sala-code-card-compact.copied-feedback {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
    animation: pulse-success-subtle 0.6s ease;
}

.sala-code-card-compact.copied-feedback .sala-code-value {
    color: var(--success-color);
}

@keyframes pulse-success-subtle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Card do código - Versão apenas informativa (sem ações) */
.sala-code-info {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: none !important;
}

.sala-code-info .sala-code-header {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sala-code-info .sala-code-value {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.1em;
    margin: var(--space-1) 0;
}

/* Ações de compartilhamento - layout compacto */
.share-actions-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    height: 100%;
}

.btn-share-compact {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.btn-share-compact:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.btn-share-compact:active {
    transform: translateY(0);
}

.btn-share-compact .btn-share-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-share-compact .btn-share-content {
    flex: 1;
    text-align: left;
}

.btn-share-compact .btn-share-label {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.btn-share-compact .btn-share-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Card do código da sala - Estilo original (mantido para compatibilidade) */
.sala-code-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sala-code-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.25);
}

.sala-code-card:active {
    transform: translateY(0);
}

.sala-code-header {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sala-code-value {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 0.1em;
    margin: var(--space-2) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sala-code-hint {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Feedback visual ao copiar */
.sala-code-card.copied-feedback {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    animation: pulse-success 0.6s ease;
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Botões de ação principais */
.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.btn-share-primary {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.btn-share-primary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.btn-share-primary:active {
    transform: translateY(0);
}

.btn-share-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-share-primary:hover .btn-share-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-share-content {
    flex: 1;
    text-align: left;
}

.btn-share-label {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.btn-share-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* WhatsApp específico */
.btn-share-primary:first-child .btn-share-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.btn-share-primary:first-child:hover .btn-share-icon {
    background: #25d366;
    color: white;
}

/* Link específico */
.btn-share-primary:last-child .btn-share-icon {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

/* Seção do link completo */
.share-link-section {
    background: var(--bg-accent);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: 1px solid var(--border-color);
}

.share-link-display {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Responsividade para mobile */
@media (max-width: 576px) {

    /* Layout original (fallback) */
    .share-actions {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .btn-share-primary {
        padding: var(--space-3);
    }

    .btn-share-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .sala-code-value {
        font-size: 1.8rem;
    }

    .sala-code-card {
        padding: var(--space-3);
    }

    /* Novo layout compacto */
    .share-main-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .sala-code-card-compact .sala-code-value {
        font-size: 1.8rem;
    }

    .sala-code-info .sala-code-value {
        font-size: 1.8rem;
    }

    .share-actions-compact {
        flex-direction: row;
        gap: var(--space-2);
    }

    .btn-share-compact {
        padding: var(--space-2);
    }

    .btn-share-compact .btn-share-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .btn-share-compact .btn-share-label {
        font-size: 0.8rem;
    }

    .btn-share-compact .btn-share-desc {
        font-size: 0.7rem;
    }
}

/* ========================================
   ANIMAÇÕES
   ======================================== */

.animate-slide-in {
    animation: slideIn 0.4s ease-out;
    overflow: visible;
    background: transparent;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .game-layout {
        gap: var(--space-3);
    }

    /* Seção unificada responsiva */
    .game-header-section {
        margin-bottom: 1rem;
    }

    .game-header-title {
        padding: 0.875rem 1rem 0.75rem 1rem;
    }

    .game-header-title h4 {
        font-size: 1rem;
    }

    .player-header-card-integrated {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        min-height: 55px;
    }

    /* Cabeçalho moderno responsivo */
    .player-header-card {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        position: relative;
        overflow: visible;
    }

    .player-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.125rem;
    }

    .player-name {
        font-size: 1rem;
    }

    .player-status {
        font-size: 0.7rem;
    }

    .btn-modern-exit {
        padding: 0.45rem 0.75rem;
        font-size: 0.75rem;
        position: static !important;
        transform: none !important;
        min-height: 2.25rem;
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
        border: 1px solid rgba(108, 117, 125, 0.25);
        color: #495057;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }

    .btn-modern-exit:hover {
        transform: none !important;
        box-shadow: 0 3px 16px rgba(220, 53, 69, 0.15) !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95)) !important;
        color: #dc3545 !important;
        border-color: rgba(220, 53, 69, 0.3) !important;
    }

    .btn-modern-exit .exit-text {
        display: inline !important;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .btn-modern-exit i {
        font-size: 0.85rem;
    }

    .room-info-compact {
        gap: var(--space-2);
    }

    .header-actions {
        align-self: flex-end;
        position: relative;
        top: 0;
        right: 0;
    }

    .sala-header,
    .game-card,
    .history-card {
        margin-bottom: var(--space-3);
    }

    .game-card-header,
    .history-header {
        padding: var(--space-2) var(--space-3);
    }

    .game-card-body,
    .history-body {
        padding: var(--space-3);
    }

    .ranking-points {
        font-size: 1.2rem;
    }

    .ranking-list {
        max-height: 500px;
    }

    .ranking-item,
    .history-item,
    .prompt-item {
        padding: var(--space-2) var(--space-3);
    }

    .round-content {
        padding: var(--space-4);
    }

    .round-prompt {
        font-size: 1.25rem;
    }

    .round-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 576px) {

    /* Cabeçalho ultra-compacto para mobile */
    .sala-header-compact {
        padding: var(--space-2);
        position: relative;
    }

    .header-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .player-compact {
        gap: var(--space-2);
    }

    .player-avatar-sm {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .player-name {
        font-size: 0.95rem;
    }

    .room-code-compact {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .status-compact {
        font-size: 0.75rem;
    }

    .player-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        border: 2px solid #ffffff;
        box-shadow:
            0 0 0 1px rgba(var(--primary-color-rgb), 0.2),
            0 3px 8px rgba(0, 0, 0, 0.12),
            0 1px 3px rgba(0, 0, 0, 0.08);
    }

    .player-avatar:hover {
        transform: scale(1.06) translateY(-1px);
    }

    .player-avatar::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }

    .player-avatar .user-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 50%;
    }

    .player-details h3 {
        font-size: 1.5rem;
    }

    .ranking-name {
        font-size: 1rem;
    }

    .ranking-points {
        font-size: 1.1rem;
    }

    .round-prompt {
        font-size: 1.1rem;
    }
}

/* ========================================
   UTILITÁRIOS
   ======================================== */

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-light)) 1;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

/* Modal fixes para evitar problemas de overflow e posicionamento */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    display: none !important;
}

/* Garantir que modais não sejam afetados por overflow de containers pais */
.modal.fade,
.modal.show {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    margin: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Estilo específico para modais de resumo de rodada */
#modalResumoRodada {
    z-index: 1060 !important;
}

[id^="modalResumoRodada"] {
    z-index: 1060 !important;
}

/* Prevenir que o overflow: hidden dos cards afete os modais */
.history-card,
.game-card {
    position: relative;
}

/* Garantir que o modal dialog esteja sempre centralizado */
.modal-dialog {
    position: relative;
    margin: 1.75rem auto;
}

/* O conteúdo do modal deve permitir eventos de clique */
.modal-content {
    pointer-events: auto;
    background-color: white !important;
    position: relative;
    z-index: 1;
}

/* Modal centralizado verticalmente */
.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100% - 1rem);
    margin: 1.75rem auto !important;
}

.modal-dialog-centered::before {
    display: none;
    /* Removendo o pseudo-elemento que pode interferir */
}

/* Correção para backdrop duplicado ou persistente */
.modal-backdrop,
.modal-backdrop.fade,
.modal-backdrop.fade.show,
.modal-backdrop.show {
    display: none !important;
}

/* Garantir que apenas um backdrop seja visível */
.modal-backdrop+.modal-backdrop {
    display: none !important;
}

/* Garantir que o modal esteja acima do backdrop */
.modal.show {
    z-index: 1055 !important;
}

/* Responsividade para modais em dispositivos móveis */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem auto !important;
        max-width: calc(100% - 2rem) !important;
        width: 100%;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 2rem);
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-dialog-centered::before {
        height: calc(100vh - 2rem);
    }

    .modal-dialog-scrollable {
        max-height: calc(100vh - 2rem) !important;
    }

    .modal-content {
        border-radius: var(--radius-md);
        border: none;
        box-shadow: var(--shadow-lg);
        margin: 0 auto;
        width: 100%;
    }

    .modal-body {
        padding: 1rem !important;
    }

    .modal-header {
        padding: 1rem !important;
    }
}

/* Tablets e telas médias */
@media (max-width: 768px) {
    .modal-dialog-centered {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 1.5rem auto;
    }

    .modal-dialog {
        margin: 1.5rem auto !important;
    }

    .modal-footer {
        padding: 1rem !important;
    }

    /* Melhorias para a seção de Prompts Sugeridos no mobile */
    .prompts-header {
        padding: 0.75rem var(--space-4) !important;
        margin-bottom: 0.5rem !important;
    }

    .prompts-header h5 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Nova estrutura de prompts - mobile */
    .prompts-list {
        padding: 0.75rem !important;
        max-height: 200px !important;
    }

    .prompt-item {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .prompt-text {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }

    .prompt-author {
        font-size: 0.75rem !important;
    }

    .prompts-empty {
        padding: 1.5rem 0.75rem !important;
    }

    .empty-icon {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .empty-title {
        font-size: 0.9rem !important;
    }

    .empty-subtitle {
        font-size: 0.8rem !important;
    }

    .prompts-footer {
        padding: 0.75rem !important;
    }

    .btn-suggest {
        padding: 0.65rem 1rem !important;
        font-size: 0.875rem !important;
    }

    .prompts-body {
        padding: 0 !important;
    }

    /* Nova estrutura de rodada - mobile */
    .round-empty {
        padding: 1.5rem 0.75rem !important;
    }

    .round-empty .empty-icon {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .round-empty .empty-title {
        font-size: 0.9rem !important;
    }

    .round-empty .empty-subtitle {
        font-size: 0.8rem !important;
    }

    .round-footer {
        padding: 0.75rem !important;
    }

    .btn-purple {
        padding: 0.65rem 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Garantir espaçamento lateral adequado */
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }

    .col,
    .col-12 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Para tablets pequenos */
@media (min-width: 576px) and (max-width: 768px) {
    .modal-dialog {
        margin: 1.5rem auto !important;
        max-width: calc(100% - 3rem) !important;
    }

    .modal-dialog-scrollable {
        max-height: calc(100vh - 3rem) !important;
    }
}

/* ================================
   TOASTS E NOTIFICAÇÕES
   ================================ */

/* Container de toasts - posicionamento e z-index */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    border-radius: var(--radius-lg);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    border: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 320px;
    max-width: 400px;
    background-color: transparent !important;
    backdrop-filter: blur(10px);
}

/* Forçar cores de fundo específicas - tons mais suaves */
.toast-container .toast.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    background-color: #ff6b6b !important;
    color: #ffffff !important;
    border-left: 4px solid #ff5252;
}

.toast-container .toast.bg-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%) !important;
    background-color: #51cf66 !important;
    color: #ffffff !important;
    border-left: 4px solid #37b24d;
}

.toast-container .toast.bg-info {
    background: linear-gradient(135deg, #74c0fc 0%, #339af0 100%) !important;
    background-color: #74c0fc !important;
    color: #ffffff !important;
    border-left: 4px solid #228be6;
}

.toast .toast-body {
    padding: 1rem 1.25rem;
    line-height: 1.5;
    color: inherit !important;
    display: flex;
    align-items: center;
}

.toast .toast-body i {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.toast .btn-close {
    background: none !important;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0.5rem 0.75rem 0.5rem 0.5rem;
    opacity: 0.7;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.toast .btn-close:before {
    content: "×";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

.toast .btn-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

.toast .btn-close:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Botões desabilitados no modal */
.modal .btn:disabled,
.modal .btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

.modal .btn-purple:disabled,
.modal .btn-purple.disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

/* Estados de erro no modal */
.modal .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modal .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.modal .invalid-feedback i {
    font-size: 0.85rem;
}

.modal .alert {
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.modal .alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* Responsividade geral para mobile - garantir que elementos não toquem as bordas */
@media (max-width: 768px) {

    /* Toasts com margem adequada */
    .toast-container {
        top: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        z-index: 9999 !important;
    }

    .toast {
        margin-bottom: 0.5rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    /* Dropdowns com margem */
    .dropdown-menu {
        margin: 0.25rem !important;
        max-width: calc(100vw - 2rem) !important;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
    }

    /* Container principal com padding */
    .container-lg {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Cards com margem das bordas */
    .game-card,
    .history-card,
    .prompts-card,
    .share-card,
    .round-card {
        margin: 0.5rem 0;
        border-radius: var(--radius-md);
    }

    /* Alertas e badges com margem */
    .alert {
        margin: 0.5rem 0;
        border-radius: var(--radius-md);
    }

    /* Botões com espaçamento adequado */
    .btn-group,
    .btn-toolbar {
        margin: 0.25rem 0;
    }
}

/* ========================================
   NOVOS ESTILOS - COMPARTILHAR E GERENCIAMENTO
   ======================================== */

/* Compartilhar - Layout lado a lado restaurado */
.share-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: start;
}

.sala-code-info {
    text-align: center;
    background: var(--bg-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 2px dashed var(--border-color);
    box-shadow: none !important;
}

.sala-code-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
}

.sala-code-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Remove aparência clicável do código na seção compartilhar */
.share-card .sala-code-value {
    cursor: default;
    transition: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    text-shadow: none;
}

.share-card .sala-code-value:hover {
    background: transparent;
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.share-card .sala-code-info {
    box-shadow: none !important;
}

.share-actions-compact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.btn-share-compact {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
}

.btn-share-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.btn-share-compact .btn-share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* WhatsApp - fundo verde, ícone branco */
.btn-share-compact:nth-child(1) .btn-share-icon {
    background: #25d366;
    color: white;
}

.btn-share-compact:nth-child(1):hover .btn-share-icon {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
}

/* Copiar - fundo azul, ícone branco */
.btn-share-compact:nth-child(2) .btn-share-icon {
    background: var(--primary-color);
    color: white;
}

.btn-share-compact:nth-child(2):hover .btn-share-icon {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.1);
}

.btn-share-compact .btn-share-content {
    flex: 1;
    text-align: left;
}

.btn-share-compact .btn-share-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.btn-share-compact .btn-share-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Seção de Gerenciamento da Sala - Versão compacta para layout lateral */
.management-card {
    margin-bottom: var(--space-4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.management-header {
    /* Override do header padrão para fundo cinza */
    background: linear-gradient(135deg, #6c757d, #adb5bd) !important;
    flex-shrink: 0;
}

.management-header h4 i {
    color: rgba(255, 255, 255, 0.9);
}

.management-body {
    padding: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.management-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
}

.btn-management-action {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--text-primary);
    justify-content: center;
}

.btn-management-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-primary);
}

/* ========================================
   CONTADORES DE CARACTERES
   ======================================== */

.character-counter {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
    transition: all 0.2s ease;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.character-counter.text-muted {
    color: var(--text-secondary) !important;
    background: var(--bg-secondary);
}

.character-counter.text-warning {
    color: #b8860b !important;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    animation: pulse-warning 1.5s infinite;
}

.character-counter.text-danger {
    color: var(--error-color) !important;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    animation: pulse-danger 1s infinite;
    font-weight: 600;
}

@keyframes pulse-warning {

    0%,
    100% {
        background: rgba(255, 193, 7, 0.1);
        transform: scale(1);
    }

    50% {
        background: rgba(255, 193, 7, 0.2);
        transform: scale(1.02);
    }
}

@keyframes pulse-danger {

    0%,
    100% {
        background: rgba(220, 53, 69, 0.1);
        transform: scale(1);
    }

    50% {
        background: rgba(220, 53, 69, 0.2);
        transform: scale(1.02);
    }
}

/* Estilo especial para campos próximos do limite */
.form-control.near-limit {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-control.at-limit {
    border-color: var(--error-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Ajustes para diferentes contextos */
.modal-body .character-counter {
    margin-top: 0.5rem;
}

.character-counter i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* Hover específico para botão de deletar (vermelho) */
.btn-management-action.action-delete:hover {
    border-color: var(--error-color);
    background: var(--error-light);
}

/* Hover específico para botão de remover jogadores (azul) */
.btn-management-action.action-manage:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.1);
}

.management-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    background: var(--error-color);
}

.management-action-icon.icon-blue {
    background: var(--primary-color);
}

.management-action-content {
    flex: 1;
    text-align: center;
}

.management-action-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1px;
    color: var(--text-primary);
}

.management-action-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Responsividade para novos componentes */
@media (max-width: 768px) {
    .share-main-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Em mobile, gerenciamento volta ao comportamento normal (altura automática) */
    .management-card {
        height: auto;
        margin-bottom: var(--space-3);
    }

    .management-body {
        justify-content: flex-start;
    }

    .management-header h4 {
        font-size: 1rem;
    }

    .management-body {
        padding: var(--space-2);
    }

    .btn-management-action {
        padding: var(--space-2);
        gap: var(--space-2);
    }

    .management-action-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .management-action-title {
        font-size: 0.85rem;
    }

    .management-action-desc {
        font-size: 0.7rem;
    }
}

/* Espaçamento extra no final da página para permitir scroll adicional */
.container-lg {
    padding-bottom: var(--space-5);
}

/* Mobile - espaçamento extra ainda maior para navegação confortável */
@media (max-width: 768px) {
    .container-lg {
        padding-bottom: calc(var(--space-5) * 2);
    }
}

/* ========================================
   MODAL COM SCROLL RESPONSIVO
   ======================================== */

/* Modal de votação com scroll otimizado */
.modal-body-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilo para rolagem do modal */
.scroll-container::-webkit-scrollbar,
.modal-body-scroll::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track,
.modal-body-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb,
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover,
.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .modal-body-scroll {
        max-height: 50vh !important;
    }

    .modal-dialog {
        margin: 10px;
    }

    .resposta-card {
        margin-bottom: 15px !important;
    }
}

/* ========================================
   SNACKBAR SYSTEM
   ======================================== */

/* Snackbar styles */
.snackbar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-in-out;
}

.snackbar.show {
    opacity: 1;
    transform: translateX(0);
}

.snackbar-content {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snackbar-success .snackbar-content {
    background-color: #28a745;
}

.snackbar-info .snackbar-content {
    background-color: #17a2b8;
}

.snackbar-warning .snackbar-content {
    background-color: #ffc107;
    color: #212529;
}

.snackbar-error .snackbar-content {
    background-color: #dc3545;
}

.snackbar-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.8;
}

.snackbar-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .snackbar {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ========================================
   INTERFACE DE NOVA RODADA - ABAS
   ======================================== */

/* Estilo moderno para as abas de prompt */
.nav-pills .nav-link {
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--text-secondary);
    box-shadow: none;
}

/* Estado não ativo - hover mais sutil */
.nav-pills .nav-link:not(.active):hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-dark);
    border-bottom-color: #dee2e6;
}

/* Estado ativo - sublinhado + negrito */
.nav-pills .nav-link.active {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    border-bottom-color: var(--primary-color);
    box-shadow: none;
}

/* Badges modernizados */
.nav-pills .nav-link .badge {
    border-radius: 12px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-pills .nav-link:not(.active) .badge.bg-light {
    background-color: var(--bg-accent) !important;
    color: var(--text-secondary) !important;
}

.nav-pills .nav-link:not(.active):hover .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
}

.nav-pills .nav-link.active .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-color) !important;
}

.nav-pills .nav-link .badge.bg-secondary {
    background-color: var(--bg-accent) !important;
    color: var(--text-muted) !important;
}

.nav-pills .nav-link:hover .badge.bg-secondary,
.nav-pills .nav-link.active .badge.bg-secondary {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-secondary) !important;
}

/* Lista de seleção de prompts modernizada */
.prompt-selection-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ✅ FIX: Estilos específicos para o modal de Nova Rodada */
#modalIniciarRodada .prompt-text {
    text-align: left !important;
    color: #8b5cf6 !important;
    /* Roxo do PRD */
    font-weight: 600 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.25rem !important;
}

#modalIniciarRodada .prompt-option:has(input:checked) .prompt-text {
    color: #6d28d9 !important;
    /* Roxo mais escuro quando selecionado */
}

#modalIniciarRodada .prompt-content {
    text-align: left !important;
}

/* ✅ FIX: Estilos para a seção principal de Prompts Sugeridos */
.prompts-card .prompt-text {
    color: #047857 !important;
    /* Verde escuro moderno */
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-align: left !important;
}

.prompts-card .prompt-author {
    color: #6b7280 !important;
    /* Cinza para o autor */
    font-size: 0.875rem !important;
}

.prompt-option {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prompt-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.02), rgba(110, 168, 254, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-option:hover::before {
    opacity: 1;
}

.prompt-option:hover {
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
    transform: translateY(-2px);
}

.prompt-option:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(110, 168, 254, 0.08));
    box-shadow: 0 6px 24px rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

.prompt-option:has(input:checked)::before {
    opacity: 1;
}

.prompt-option .form-check-input {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    margin: 0;
    transform: translateY(-50%) scale(1.3);
    border-width: 2px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    z-index: 3;
}

.prompt-option:has(input:checked) .form-check-input {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.prompt-option .form-check-label {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
    display: flex;
    width: 100%;
    padding-left: 2.5rem;
    position: relative;
}

.prompt-option .form-check-label::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: -1.5rem;
    right: -1.5rem;
    bottom: -1.25rem;
    z-index: 2;
}

.prompt-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.prompt-text {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.prompt-option:has(input:checked) .prompt-text {
    color: var(--primary-dark);
}

/* Estilo para exibir prompts (sem interatividade) */
.prompt-option-display {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    background: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prompt-option-display .form-check-label {
    flex: 1;
    margin-bottom: 0;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}

.prompt-option-display .prompt-text {
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

/* Container dos prompts sugeridos - mesmo estilo do modal */
.prompts-body-compact {
    padding: 0.75rem;
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* === NOVA ESTRUTURA DE PROMPTS === */

/* Corpo principal dos prompts */
.prompts-body {
    padding: 0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

/* Lista de prompts */
.prompts-list {
    padding: 1rem;
    flex-grow: 1;
    max-height: 280px;
    overflow-y: auto;
}

/* Item individual de prompt */
.prompt-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    border-left: 3px solid var(--accent-color);
}

.prompt-item:last-child {
    margin-bottom: 0;
}

.prompt-item:hover {
    background: var(--bg-accent);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.prompt-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prompt-text {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 0.95rem;
}

.prompt-author {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

/* Estado vazio */
.prompts-empty {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.empty-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
}

.empty-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Rodapé com botão de sugerir */
.prompts-footer {
    padding: 1rem;
    background: var(--bg-accent);
    border-top: 1px solid var(--border-light);
}

.btn-suggest {
    font-weight: 500;
    text-transform: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: var(--success-color);
    box-shadow: var(--shadow-sm);
}

.btn-suggest:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-suggest:focus,
.btn-suggest:active {
    background: linear-gradient(135deg, #047857, #065f46);
    border-color: #047857;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* === NOVA ESTRUTURA DE RODADA === */

/* Estado vazio da rodada */
.round-empty {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
}

.round-empty .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
    color: #8b5cf6;
}

.round-empty .empty-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.round-empty .empty-title {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
}

.round-empty .empty-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Rodapé da rodada com botão roxo */
.round-footer {
    padding: 1rem;
    background: var(--bg-accent);
    border-top: 1px solid var(--border-light);
}

/* Botão roxo para iniciar rodada */
.btn-purple {
    font-weight: 500;
    text-transform: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.btn-purple:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    border-color: #7c3aed !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-purple:focus,
.btn-purple:active {
    background: linear-gradient(135deg, #6d28d9, #5b21b6) !important;
    border-color: #6d28d9 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Classe de background roxo para modais */
.bg-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.bg-purple .btn-close-white {
    filter: invert(1);
}

/* Classe de texto roxo */
.text-purple {
    color: #8b5cf6 !important;
}

/* Melhorias para header verde dos modais de prompt */
.modal-header.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

/* Botões compactos para modais */
.modal-footer .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

/* Área de criação de novo prompt modernizada */
#pane-criar textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
}

#pane-criar textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15), 0 4px 16px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

#pane-criar textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Modal sugerir prompt - área de criação */
.prompt-creation-area {
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.prompt-creation-area textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
}

.prompt-creation-area textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15), 0 4px 16px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.prompt-creation-area textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Estado vazio modernizado */
.tab-pane .text-center {
    padding: 3rem 1rem;
}

.tab-pane .display-4 {
    font-size: 3.5rem;
    opacity: 0.4;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer do modal aprimorado */
.modal-footer.bg-light {
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, #fafbfc, #f8f9fa) !important;
    padding: 1.5rem;
}

#btnIniciarRodada {
    min-width: 160px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #6f42c1, #8f6bd1);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(111, 66, 193, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#btnIniciarRodada:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5a2d91, #6f42c1);
    box-shadow: 0 6px 24px rgba(111, 66, 193, 0.4);
    color: white;
}

#btnIniciarRodada:disabled {
    background: var(--bg-accent);
    color: var(--text-muted);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 90%;
    }

    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .prompt-option {
        padding: 0.75rem;
    }

    .prompt-selection-list {
        max-height: 250px;
    }
}

/* Animação de shake para feedback de erro */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

/* Estados de validação */
.tab-pane.needs-attention {
    border: 2px solid var(--warning-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.02), rgba(255, 179, 102, 0.02));
}

/* Responsividade para mobile melhorada */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
        margin: 0.5rem;
    }

    .nav-pills .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .prompt-option {
        padding: 1rem;
    }

    .prompt-selection-list {
        max-height: 220px;
    }

    #pane-criar textarea {
        min-height: 100px;
        padding: 1rem;
    }

    /* Melhorias para Prompts Sugeridos em tablets pequenos */
    .prompts-header h5 {
        font-size: 1.1rem !important;
    }

    .prompts-list {
        padding: 0.875rem !important;
        max-height: 240px !important;
    }

    .prompt-text {
        font-size: 0.9rem !important;
    }

    .prompt-author {
        font-size: 0.8rem !important;
    }

    .btn-suggest {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.25rem !important;
    }

    /* Nova estrutura de rodada - tablets pequenos */
    .round-empty .empty-title {
        font-size: 0.95rem !important;
    }

    .round-empty .empty-subtitle {
        font-size: 0.85rem !important;
    }

    .btn-purple {
        font-size: 0.9rem !important;
        padding: 0.7rem 1.25rem !important;
    }
}

/* ========================================
   ESTILOS MODERNOS PARA PÁGINA INICIAL
   ======================================== */

/* Layout geral da home */
.home-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   HEADER PRINCIPAL
   ======================================== */
.home-header-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Remover borda para usuários não autenticados */
.home-header-section[data-user-authenticated="false"] {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.home-header-section[data-user-authenticated="false"]:hover {
    box-shadow: none;
    transform: none;
}

.home-header-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* Hover apenas para usuários autenticados */
.home-header-section[data-user-authenticated="true"]:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.home-header-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 1.25rem 0.875rem 1.25rem;
    text-align: left;
    position: relative;
}

.home-header-title h4 {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
    margin: 0;
}

.home-header-title i {
    font-size: 1.2rem;
    opacity: 0.9;
}

.home-player-card-integrated {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
    box-sizing: border-box;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    width: 100%;
    flex-wrap: nowrap;
}

.home-player-card-integrated .player-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.home-player-card-integrated .header-actions {
    flex-shrink: 0;
    margin-left: auto;
}

/* Ajustes para usuários não autenticados */
.home-header-section[data-user-authenticated="false"] .home-player-card-integrated {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.btn-modern-edit {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-modern-edit:hover {
    background: var(--bg-accent);
    color: var(--text-primary);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-modern-edit i {
    font-size: 0.9rem;
}

.btn-modern-edit span {
    font-weight: 600;
    margin-left: 0.5rem;
}

.welcome-guest {
    width: 100%;
    text-align: center;
    padding: var(--space-2) 0;
}

.welcome-content h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   SEÇÃO DE JOGOS EM ANDAMENTO
   ======================================== */
.games-section-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.games-section-header {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    text-align: left;
}

.games-section-header i {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    width: 1em !important;
    height: 1em !important;
    font-size: inherit !important;
}

.header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.header-subtitle {
    opacity: 0.9;
    font-weight: 500;
}

.btn-create-game-compact {
    font-size: 1rem;
    padding: var(--space-2) var(--space-3);
    font-weight: 600;
    border-radius: var(--radius-md);
    min-width: 140px;
}

.games-section-body {
    padding: var(--space-4);
}

.active-games-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.game-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(168, 85, 247, 0.03));
    border-radius: var(--radius-md);
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.game-item:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.08));
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.2);
}

.game-details h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-creator {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.game-players {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.no-games-message {
    text-align: center;
    padding: var(--space-5) var(--space-3);
}

.no-games-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.no-games-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.create-game-section {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-4);
    text-align: center;
}

.btn-create-game {
    font-size: 1.1rem;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    border-radius: var(--radius-lg);
    min-width: 280px;
}

/* ========================================
   SEÇÃO DE INSTRUÇÕES
   ======================================== */
.instructions-section-card,
.rules-section-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: var(--space-4);
}

.instructions-section-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border: 1px solid var(--border-color);
    outline: none;
    z-index: 10;
    position: relative;
}

.instructions-section-header,
.rules-section-header {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    text-align: left;
    border: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.instructions-section-header h6,
.rules-section-header h6,
.games-section-header h6 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.instructions-section-body,
.rules-section-body {
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-4);
    background: transparent;
    overflow: visible;
}

/* Container para carrossel + steps com fundo verde */
.carousel-steps-container {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(34, 139, 34, 0.08));
    border-radius: var(--radius-md);
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

.instructions-carousel {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.instructions-carousel .carousel-inner {
    border-radius: var(--radius-md);
    margin: 0;
    padding: 0;
    background: transparent;
}

.carousel-indicators-custom {
    margin-bottom: var(--space-3);
    gap: var(--space-1);
}

.carousel-indicators-custom button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: none;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators-custom button.active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

/* Remove margens e padding do carrossel para ocupar todo container */
.instructions-carousel {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    height: auto;
    overflow: visible !important;
    border-radius: var(--radius-lg);
    box-shadow: none;
}

/* Sombra no container do carrossel */
.instructions-carousel .carousel-inner {
    box-shadow: none;
    border-radius: var(--radius-md);
    overflow: visible;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    height: auto;
    width: 100%;
    position: relative;
    display: block;
}

/* Transição slide Bootstrap padrão melhorada */
.instructions-carousel .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    transition: transform 0.5s ease-in-out;
    background: transparent;
    border: none;
    box-shadow: none;
}

.instructions-carousel .carousel-item.active,
.instructions-carousel .carousel-item-next,
.instructions-carousel .carousel-item-prev {
    display: block;
}

.instructions-carousel .carousel-item-next:not(.carousel-item-start),
.instructions-carousel .active.carousel-item-end {
    transform: translateX(100%);
}

.instructions-carousel .carousel-item-prev:not(.carousel-item-end),
.instructions-carousel .active.carousel-item-start {
    transform: translateX(-100%);
}

.instructions-carousel .carousel-item-next,
.instructions-carousel .carousel-item-prev,
.instructions-carousel .carousel-item.active {
    transform: translateX(0);
}

/* Correção específica para mobile - sem altura fixa */
@media (max-width: 768px) {
    .instructions-carousel {
        overflow: hidden !important;
    }

    .instructions-carousel .carousel-inner {
        display: block !important;
        overflow: visible !important;
        position: relative !important;
        height: auto !important;
    }

    .instructions-carousel .carousel-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        float: left !important;
        opacity: 1 !important;
        transition: transform 0.5s ease-in-out !important;
        display: none !important;
        margin-right: -100% !important;
    }

    .instructions-carousel .carousel-item.active {
        opacity: 1 !important;
        position: relative !important;
        display: block !important;
    }

    .step-card {
        min-width: 100% !important;
        max-width: 100% !important;
        padding: var(--space-3) !important;
        height: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow: visible !important;
        gap: var(--space-2) !important;
    }

    .step-title {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: var(--space-2) !important;
        white-space: normal !important;
    }

    .step-description {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .step-icon-green {
        margin-bottom: var(--space-3) !important;
        flex-shrink: 0 !important;
    }
}

/* Remove estilos padrão do Bootstrap para carousel-item */
.instructions-carousel .carousel-item {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important;
}

.instructions-carousel .carousel-item.active {
    position: relative !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.step-card {
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: auto;
    box-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: var(--space-2);
    z-index: 1;
}

/* Para compatibilidade com layout sem step-content */
.step-card .step-title {
    padding: 0;
    margin-bottom: var(--space-2);
}

.step-card .step-description {
    padding: 0;
    margin-bottom: 0;
}

.step-card .step-icon,
.step-card .step-icon-green {
    margin-top: 0;
    margin-bottom: var(--space-3);
}

/* Hover effect no carrossel inteiro para elevar e destacar */
.instructions-carousel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

/* Ícone verde similar ao create-game-icon */
.step-icon-green {
    background: #28a745;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    flex-shrink: 0;
}

.step-icon-green i {
    font-size: 1.2rem;
    color: white !important;
    line-height: 1;
}

.step-title {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.step-description {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Controles do carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Estilo dos indicadores retangulares com altura reduzida */
.carousel-indicators-green {
    margin: 0;
    gap: var(--space-1);
    justify-content: center;
    padding: var(--space-2);
    position: static;
    bottom: auto;
    display: flex;
    background: transparent;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: none;
    border: none;
    overflow: visible;
}

.carousel-indicators-green button {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(40, 167, 69, 0.3) !important;
    border: none;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    text-indent: -9999px;
    margin: 0 2px;
}

.carousel-indicators-green button.active,
.carousel-indicators-green button:hover {
    background-color: #28a745 !important;
    transform: scaleY(1.2);
}

/* Garantir que indicadores inativos não fiquem brancos */
.carousel-indicators-green button:not(.active) {
    background-color: rgba(40, 167, 69, 0.3) !important;
}

/* ============================================================
   NOVA ESTRUTURA SIMPLIFICADA DO CAROUSEL
   ============================================================ */

/* Container único para o carousel simplificado */
.instructions-carousel-container {
    background: rgba(40, 167, 69, 0.08);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin: 0;
    transition: all 0.3s ease;
}

.instructions-carousel-container:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

/* Steps individuais dentro do carousel */
.instruction-step {
    text-align: center;
    padding: 0.5rem;
}

.instruction-step .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.instruction-step .step-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.instruction-step h6 {
    color: var(--success);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.instruction-step p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Indicadores do carousel simplificado */
.instructions-carousel-container .carousel-indicators {
    position: static;
    margin-top: 1rem;
    margin-bottom: 0;
}

.instructions-carousel-container .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(40, 167, 69, 0.3);
    border: none;
    margin: 0 4px;
    opacity: 1;
    transition: all 0.3s ease;
}

.instructions-carousel-container .carousel-indicators button.active {
    background-color: #28a745;
    transform: scale(1.1);
}

.instructions-carousel-container .carousel-indicators button:hover {
    background-color: #20c997;
}

/* Controles verdes do carrossel */
.carousel-control-green {
    width: 8%;
    opacity: 0.7;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    margin: auto 10px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-green:hover {
    opacity: 1;
    background: rgba(40, 167, 69, 0.2);
}

.carousel-control-prev-icon-green,
.carousel-control-next-icon-green {
    background: none;
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-control-green i {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsividade para controles do carrossel */
@media (max-width: 576px) {
    .carousel-control-green {
        width: 12%;
        height: 40px;
        margin: auto 5px;
        opacity: 0.6;
    }

    .carousel-control-green i {
        font-size: 1.2rem;
    }

    /* Reduzir padding do step-card para dar mais espaço */
    .step-card {
        padding: var(--space-3) !important;
        margin: 0 15px;
    }

    .step-title {
        font-size: 1rem !important;
    }

    .step-description {
        font-size: 0.875rem !important;
    }
}

@media (max-width: 480px) {
    .carousel-control-green {
        width: 15%;
        height: 35px;
        margin: auto 2px;
    }

    .carousel-control-green i {
        font-size: 1rem;
    }

    /* Ainda mais compacto em telas muito pequenas */
    .step-card {
        padding: var(--space-2) !important;
        margin: 0 20px;
    }

    .step-icon {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 360px) {

    /* Para telas muito pequenas, esconder os controles */
    .carousel-control-green {
        display: none;
    }

    /* Adicionar mais espaço para swipe */
    .step-card {
        margin: 0 5px;
        padding: var(--space-2);
    }

    /* Deixar mais visível que é um carrossel */
    .carousel-indicators-green {
        margin-bottom: var(--space-4);
    }
}

/* ========================================
   REGRAS DETALHADAS
   ======================================== */
.accordion-modern .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.accordion-modern .accordion-button {
    background: rgba(40, 167, 69, 0.15);
    color: #2d5a3d;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
}

.accordion-modern .accordion-button:not(.collapsed) {
    background: rgba(40, 167, 69, 0.15);
    color: #2d5a3d;
    box-shadow: none;
}

.accordion-modern .accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-modern .accordion-body {
    background: rgba(40, 167, 69, 0.08);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.rules-content {
    line-height: 1.6;
}

.rule-section {
    margin-bottom: var(--space-4);
}

.rule-section:last-child {
    margin-bottom: 0;
}

.rule-section h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
}

.rule-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.rule-section ul {
    color: var(--text-secondary);
    padding-left: var(--space-4);
}

.rule-section li {
    margin-bottom: var(--space-1);
}

/* ========================================
   RESPONSIVIDADE MOBILE-FIRST
   ======================================== */

/* Mobile (até 576px) */
@media (max-width: 575.98px) {
    .home-header-title h4 {
        font-size: 1rem;
    }

    .home-player-card-integrated {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-2);
        padding: 0.5rem 0.75rem;
    }

    .player-info {
        flex: 1;
        min-width: 0;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .games-section-header {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
    }

    .header-subtitle {
        font-size: 0.85rem;
        margin-left: 0 !important;
    }

    .game-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .game-action {
        width: 100%;
    }

    .game-action button,
    .game-action form button {
        width: 100%;
    }

    .btn-create-game,
    .btn-create-game-compact {
        width: 100%;
        min-width: auto;
    }

    .step-card {
        padding: var(--space-3);
    }

    .step-icon {
        font-size: 2rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* Tablet (576px até 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .home-player-card-integrated {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-2);
    }

    .player-info {
        flex: 1;
        min-width: 0;
    }

    .game-item {
        flex-direction: row;
        align-items: center;
    }
}

/* Desktop pequeno (768px até 992px) */
@media (min-width: 768px) {
    .home-layout {
        gap: var(--space-5);
    }

    .home-header-title {
        padding: var(--space-4);
    }

    .home-header-title h4 {
        font-size: 1.25rem;
    }
}

/* Desktop grande (992px+) */
@media (min-width: 992px) {
    .active-games-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }

    .create-game-section {
        margin-top: var(--space-3);
    }
}

/* ========================================
   MODAIS MODERNOS PARA HOME
   ======================================== */
.home-modal {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.home-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-bottom: none;
    padding: var(--space-4);
}

.home-modal-header .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.home-modal-body {
    padding: var(--space-4);
    background: var(--bg-primary);
}

.home-modal-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-3) var(--space-4);
}

.home-modal-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modal responsivo para home */
.modal-home-responsive {
    max-width: 300px;
    margin: 1.75rem auto;
    /* Forçar centralização */
}

/* Tablets e telas médias */
@media (min-width: 576px) {
    .modal-home-responsive {
        max-width: 500px;
        margin: 1.75rem auto !important;
        /* Forçar centralização */
    }
}

/* Desktop */
@media (min-width: 768px) {
    .modal-home-responsive {
        max-width: 800px !important;
        /* Muito maior em desktop */
        width: 90%;
        /* Usar porcentagem da tela */
        margin: 1.75rem auto !important;
        /* Centralização garantida */
    }

    .home-modal-body {
        padding: var(--space-5);
    }

    .home-modal-header {
        padding: var(--space-5);
    }

    .home-modal-footer {
        padding: var(--space-4) var(--space-5);
    }
}

/* ========================================
   BOTÃO GOOGLE AUTH - DESIGN MODERNO (AÇÃO PRINCIPAL)
   ======================================== */

.google-auth-btn {
    border-radius: 12px !important;
    padding: 14px 28px !important;
    border: none !important;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.google-auth-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    text-decoration: none !important;
}

/* Efeito de brilho sutil para chamar atenção */
.google-auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.google-auth-btn:hover::before {
    left: 100%;
}

.google-auth-btn:focus {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 4px 15px rgba(139, 92, 246, 0.25);
    outline: none;
}

.google-auth-btn:active {
    background: linear-gradient(135deg, #6d28d9, #5b21b6) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.google-auth-btn .bi-google {
    font-size: 1.2em;
    color: #ffffff;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Ajustes responsivos para mobile */
@media (max-width: 576px) {
    .google-auth-btn {
        padding: 16px 24px !important;
        font-size: 1rem;
        border-radius: 10px !important;
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
    }

    .google-auth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4);
    }

    .google-auth-btn .loading-text {
        font-size: 0.95rem;
    }

    .google-auth-btn .bi-google {
        font-size: 1.1em;
    }
}

/* Divisor "ou" */
.auth-divider {
    position: relative;
}

.auth-divider hr {
    border-color: var(--border-color);
    border-width: 1px 0 0 0;
    margin: 0;
}

.auth-divider .divider-text {
    background: var(--bg-secondary);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Desktop grande */
@media (min-width: 992px) {
    .modal-home-responsive {
        max-width: 900px !important;
        /* Ainda maior em telas grandes */
        width: 80%;
        /* Porcentagem menor em telas muito grandes */
        margin: 1.75rem auto !important;
    }
}

/* Desktop extra grande */
@media (min-width: 1200px) {
    .modal-home-responsive {
        max-width: 1000px !important;
        /* Máximo em telas muito grandes */
        width: 70%;
        /* Porcentagem ainda menor */
        margin: 1.75rem auto !important;
    }
}

/* ========================================
   MELHORIAS DA SEÇÃO DE SALAS
   ======================================== */

/* Subseções de salas */
.subsection-header {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-light);
}

.subsection-header h6 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Divisor entre seções */
.create-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: var(--space-4) 0;
}

/* Seção de criar sala destacada */
.create-game-section-enhanced {
    margin-top: var(--space-3);
}

.create-game-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(168, 85, 247, 0.05));
    border: 2px solid var(--purple-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.create-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-color), var(--accent-color));
    opacity: 0.8;
}

.create-game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.create-game-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.create-game-icon {
    background: #7c3aed;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.create-game-icon i {
    font-size: 1.5rem;
    color: white !important;
    line-height: 1;
}

.create-game-icon .plus-icon {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    line-height: 1;
}

.create-game-text h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.create-game-text small {
    color: var(--text-secondary);
}

.btn-create-enhanced {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--purple-color), var(--accent-color));
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-create-enhanced:hover {
    background: linear-gradient(135deg, var(--accent-color), #7c3aed);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Seção de boas-vindas (estilo similar ao criar sala, mas em azul claro) */
.welcome-game-section-enhanced {
    margin-top: var(--space-3);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.welcome-game-section-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.welcome-game-section-header {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.welcome-game-section-body {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(96, 165, 250, 0.05));
    padding: var(--space-4);
}

.welcome-game-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.welcome-game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.welcome-game-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.welcome-game-icon {
    background: #3b82f6;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.welcome-game-icon i {
    font-size: 1.5rem;
    color: white !important;
    line-height: 1;
}

.welcome-game-text h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.welcome-game-text small {
    color: var(--text-secondary);
}

.btn-light-blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: none;
    color: white;
}

.btn-welcome-enhanced {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-welcome-enhanced:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Responsividade do welcome-game-card */
@media (max-width: 576px) {
    .welcome-game-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .welcome-game-content {
        flex-direction: column;
        gap: var(--space-2);
    }

    .welcome-game-action {
        width: 100%;
    }

    .btn-welcome-enhanced {
        width: 100%;
    }
}

/* Botões outline purple para entrada em salas */
.btn-outline-purple {
    color: var(--purple-color);
    border-color: var(--purple-color);
    background: transparent;
    font-weight: 500;
}

.btn-outline-purple:hover {
    background: var(--purple-color);
    border-color: var(--purple-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-purple:focus,
.btn-outline-purple:active {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Botão roxo suave para entrar nas salas */
.btn-purple-soft {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--purple-color);
    color: var(--purple-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-purple-soft:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--purple-color);
    color: var(--purple-color) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-purple-soft:focus,
.btn-purple-soft:active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(168, 85, 247, 0.25)) !important;
    border-color: var(--purple-color) !important;
    color: var(--purple-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.15);
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 576px) {
    .create-game-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }

    .create-game-content {
        flex-direction: column;
        gap: var(--space-2);
    }

    .create-game-action {
        width: 100%;
    }

    .btn-create-enhanced {
        width: 100%;
    }
}

.form-floating>.form-control-lg {
    font-size: 1.1rem;
    padding: 1rem 0.75rem;
}

.form-floating>label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Responsividade dos modais */
@media (max-width: 575.98px) {
    .home-modal-header {
        padding: var(--space-3);
    }

    .home-modal-body {
        padding: var(--space-3);
    }

    .home-modal-footer {
        padding: var(--space-3);
    }

    .home-modal-footer .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   ANIMAÇÕES E TRANSIÇÕES
   ======================================== */
.animate-slide-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação para cards que aparecem em sequência */
.home-layout>div:nth-child(1) {
    animation-delay: 0.1s;
}

.home-layout>div:nth-child(2) {
    animation-delay: 0.2s;
}

.home-layout>div:nth-child(3) {
    animation-delay: 0.3s;
}

/* Hover effects melhorados */
.game-item,
.step-card,
.home-header-card,
.games-section-card,
.instructions-section-card,
.rules-section-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-item:hover {
    transform: translateY(-2px);
}

.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

/* Efeito de pulse para o botão principal */
.btn-create-game {
    position: relative;
    overflow: hidden;
}

.btn-create-game::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-create-game:hover::before {
    width: 300px;
    height: 300px;
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {

    .animate-slide-in,
    .btn,
    .game-item,
    .step-card,
    .home-header-card,
    .games-section-card,
    .instructions-section-card,
    .rules-section-card {
        animation: none;
        transition: none;
    }
}

/* ========================================
   MELHORIAS PARA PWA E TOUCH DEVICES
   ======================================== */
.pwa-mode {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.touch-device .btn,
.touch-device .game-item,
.touch-device .accordion-button {
    min-height: 48px;
    /* Tamanho mínimo recomendado para touch targets */
}

.touch-device .btn-sm {
    min-height: 40px;
}

.touch-device .carousel-control-prev,
.touch-device .carousel-control-next {
    width: 15%;
}

/* Feedback visual para toque */
.touch-device .btn:active,
.touch-device .game-item:active,
.touch-device .accordion-button:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Melhorias para teclado virtual em mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .modal-dialog {
        margin: 0.5rem auto;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Estados de foco melhorados para acessibilidade */
.btn:focus-visible,
.form-control:focus,
.accordion-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Indicação visual de loading melhorada */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .home-header-section,
    .games-section-header,
    .instructions-section-header,
    .rules-section-header {
        background: var(--text-primary) !important;
        color: var(--bg-secondary) !important;
    }

    .card,
    .game-item,
    .step-card {
        border-width: 2px !important;
    }
}

/* ========================================
   FOOTER DO SITE
   ======================================== */

.site-footer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    margin-top: var(--space-6);
    padding: var(--space-2) 0 var(--space-2);
    color: rgba(71, 85, 105, 0.9);
    font-size: 0.875rem;
    position: relative;
    overflow: visible;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.1),
            rgba(248, 250, 252, 0.05));
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    align-items: center;
    text-align: center;
}

.footer-line-1 {
    display: flex;
    flex-direction: row;
    gap: var(--space-2);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-line-2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-creator {
    margin: 0;
    color: rgba(51, 65, 85, 0.9);
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.footer-creator strong {
    color: #f59e0b;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.footer-thanks {
    display: flex;
    flex-direction: row;
    gap: var(--space-1);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-label {
    color: rgba(100, 116, 139, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: var(--space-1);
}

.thanks-names {
    display: flex;
    flex-direction: row;
    gap: var(--space-1);
    align-items: center;
    flex-wrap: wrap;
}

.thank-name {
    color: rgba(100, 116, 139, 0.8);
    font-weight: 450;
    font-size: 0.8rem;
    text-shadow: none;
    transition: all 0.3s ease;
}

.thank-name:hover {
    color: #ea580c;
    text-shadow: 0 0 6px rgba(234, 88, 12, 0.25);
    transform: translateY(-1px);
}

.thank-name:not(:last-child)::after {
    content: "•";
    margin-left: var(--space-1);
    color: rgba(100, 116, 139, 0.6);
}

/* Tablet e Desktop */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-main {
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-thanks {
        align-items: center;
    }
}

/* Mobile - Layout mais compacto */
@media (max-width: 767px) {
    .footer-line-1 {
        flex-direction: column;
        gap: var(--space-1);
    }

    .footer-creator {
        font-size: 0.85rem;
        text-align: center;
        white-space: normal;
    }

    .footer-thanks {
        flex-direction: column;
        text-align: center;
        gap: var(--space-1);
    }

    .thanks-label {
        font-size: 0.75rem;
        margin-right: 0;
        margin-bottom: var(--space-1);
    }

    .build-pill {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

@media (min-width: 992px) {
    .site-footer {
        padding: var(--space-4) 0 var(--space-3);
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 var(--space-4);
    }
}

/* ========================================
   BUILD PILL - INFORMAÇÕES DE BUILD DISCRETA
   ======================================== */

.build-pill {
    display: inline-block;
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(51, 65, 85, 0.12) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.15);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(100, 116, 139, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: help;
}

.build-pill:hover {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.12) 0%, rgba(51, 65, 85, 0.18) 100%);
    border-color: rgba(100, 116, 139, 0.25);
    color: rgba(51, 65, 85, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tooltip customizado para a build pill */
.build-pill::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
    margin-bottom: 5px;
    text-transform: none;
    letter-spacing: normal;
}

.build-pill::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999;
}

.build-pill:hover::before,
.build-pill:hover::after {
    opacity: 1;
    visibility: visible;
}

.build-pill-dev {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(21, 128, 61, 0.12) 100%);
    border-color: rgba(34, 197, 94, 0.2);
    color: rgba(21, 128, 61, 0.7);
}

.build-pill-dev:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(21, 128, 61, 0.18) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: rgba(21, 128, 61, 0.8);
}

/* ========================================
   HISTÓRICO MODERNIZADO - DESIGN LIMPO MOBILE-FIRST
   ======================================== */

/* Container principal do histórico */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: visible;
}

/* Scrollbar personalizada para a lista */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Cards individuais de rodada - Design limpo */
.history-round-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    min-height: 130px;
}

.history-round-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Estado vazio do histórico */
.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.history-empty .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.history-empty .empty-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-empty .empty-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.history-empty .empty-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .history-list {
        padding: 0.75rem;
        gap: 0.75rem;
        max-height: 500px;
    }

    .history-round-main {
        padding: var(--space-3);
        gap: var(--space-2);
    }

    .round-badge-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .round-info-section .round-prompt {
        font-size: 0.9375rem;
    }

    .btn-history-view {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .scorer-name {
        max-width: 80px;
    }
}

/* Touch support para dispositivos móveis */
@media (hover: none) and (pointer: coarse) {
    .history-round-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Animações especiais para novos itens */
@keyframes slideInHistory {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.history-round-card.new-item {
    animation: slideInHistory 0.5s ease-out;
}

/* ========================================
   ANIMAÇÕES MODERNAS
   ======================================== */

.animate-slide-in {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   UTILITÁRIOS MODERNOS
   ======================================== */

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--primary-light)) 1;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

/* ========================================
   HISTORY ROUND CARDS - NOVO DESIGN MODERNO
   Mobile-First Refactor
   ======================================== */

/* Override do card base para o novo layout */
.history-round-main {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 0 var(--space-4) var(--space-4) var(--space-4);
    min-height: 120px;
}

/* Badge numérica modernizada */
.round-badge-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: var(--space-4);
}

.round-badge-number.finished {
    background: linear-gradient(135deg, #198754, #20c997);
}

.round-badge-number.active {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    animation: pulse-glow 2s ease-in-out infinite;
}

.round-badge-number.cancelled {
    background: linear-gradient(135deg, #6c757d, #9ca3af);
    opacity: 0.7;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(139, 92, 246, 0);
    }
}

/* Seção de informações */
.round-info-section {
    flex: 1;
    min-width: 0;
}

/* Prompt em destaque - novo estilo */
.round-info-section .round-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
    padding: 0;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.round-info-section .round-prompt i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0;
}

.round-prompt.cancelled-prompt {
    opacity: 0.6;
    color: var(--text-muted);
}

/* Meta informações */
.round-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    min-height: 36px;
    padding-bottom: 0;
}

/* Top Scorer Badge */
.top-scorer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid #fbbf24;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #92400e;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

.scorer-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.avatar-mini-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.625rem;
    border: 2px solid white;
}

.crown-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.crown-indicator i {
    font-size: 0.5rem;
    color: white;
}

.scorer-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge de pontos totais */
.round-points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid #d1d5db;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

.round-points-badge i {
    color: #fbbf24;
    font-size: 0.75rem;
}

.points-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.points-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Status badges */
.round-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

.active-badge {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
    border: 1px solid #c4b5fd;
}

.cancelled-badge {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Botão de ação modernizado */
.round-action-section {
    flex-shrink: 0;
}

.btn-history-view {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-top: var(--space-4);
}

.btn-history-view:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-history-view:active {
    transform: scale(0.95);
}

/* Responsivo mobile */
@media (max-width: 576px) {
    .history-round-main {
        padding: var(--space-3);
        gap: var(--space-2);
    }

    .round-badge-number {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .round-info-section .round-prompt {
        font-size: 0.9375rem;
    }

    .btn-history-view {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .scorer-name {
        max-width: 80px;
    }
}

/* ========================================
   BADGES MODERNAS DE AGUARDO - SISTEMA ROXO
   ======================================== */

/* Container das badges de aguardo */
.waiting-badges-container {
    margin-top: var(--space-2);
}

.waiting-badges-container .text-muted {
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.waiting-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

/* Badge base moderna */
.badge-modern {
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
}

/* Badge roxa para aguardando resposta - OUTROS JOGADORES (fundo claro, texto escuro) */
.badge-waiting-answer {
    background: #f3e8ff;
    /* Lilás muito claro para fundo */
    color: #7c3aed;
    /* Roxo escuro para texto */
    border-color: rgba(124, 58, 237, 0.2);
    font-weight: 600;
}

/* Cores específicas para o jogador atual - EU (fundo escuro, texto claro) */
.waiting-badges .badge-modern.badge-waiting-answer.current-player {
    background: #7c3aed;
    /* Roxo escuro para fundo */
    color: #f8fafc;
    /* Branco suave para texto */
    border-color: rgba(124, 58, 237, 0.4);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Badge roxa para aguardando voto - OUTROS JOGADORES (fundo claro, texto escuro) */
.badge-waiting-vote {
    background: #f3e8ff;
    /* Lilás muito claro para fundo */
    color: #7c3aed;
    /* Roxo escuro para texto */
    border-color: rgba(124, 58, 237, 0.2);
    font-weight: 600;
}

/* Cores específicas para o jogador atual - EU (fundo escuro, texto claro) */
.waiting-badges .badge-modern.badge-waiting-vote.current-player {
    background: #7c3aed;
    /* Roxo escuro para fundo */
    color: #f8fafc;
    /* Branco suave para texto */
    border-color: rgba(124, 58, 237, 0.4);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Fallback adicional para garantir cores do jogador atual */
.badge-waiting-answer.current-player,
.badge-waiting-vote.current-player {
    background-color: #7c3aed !important;
    color: #f8fafc !important;
    border-color: rgba(124, 58, 237, 0.4) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}

/* Hover effects - Mobile-first e moderno */
.badge-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover para outros jogadores (fundo claro) */
.badge-waiting-answer:hover {
    background: #ede9fe;
    /* Lilás um pouco mais escuro */
    color: #6d28d9;
    /* Roxo mais intenso */
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

/* Hover para jogador atual (fundo escuro) */
.badge-waiting-answer.current-player:hover {
    background: #8b5cf6;
    /* Roxo um pouco mais claro */
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

/* Hover para outros jogadores na votação */
.badge-waiting-vote:hover {
    background: #ede9fe;
    /* Lilás um pouco mais escuro */
    color: #6d28d9;
    /* Roxo mais intenso */
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

/* Hover para jogador atual na votação */
.badge-waiting-vote.current-player:hover {
    background: #8b5cf6;
    /* Roxo um pouco mais claro */
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

/* Ícones dentro das badges - melhor visibilidade */
.badge-modern i {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Ícones para jogador atual (fundo escuro) */
.badge-modern.current-player i {
    opacity: 0.9;
    color: #f8fafc;
}

/* Ícones para outros jogadores (fundo claro) */
.badge-waiting-answer:not(.current-player) i,
.badge-waiting-vote:not(.current-player) i {
    opacity: 0.8;
    color: #7c3aed;
}

/* Mobile-first: Garantir tamanho mínimo touch-friendly */
@media (max-width: 768px) {
    .badge-modern {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
        min-height: 44px;
        /* Tamanho mínimo recomendado para touch */
        border-radius: 1.25rem;
    }

    .waiting-badges {
        gap: 0.5rem;
    }

    .badge-modern i {
        font-size: 0.8125rem;
    }
}

/* Animações suaves para transições */
.badge-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado focus para acessibilidade */
.badge-modern:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* Responsive design para badges */
@media (max-width: 576px) {
    .badge-modern {
        padding: 0.3125rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .badge-modern i {
        font-size: 0.6875rem;
    }

    .waiting-badges {
        gap: 0.375rem;
    }
}