    .game-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 15px;
    }
    
    .game-header {
        text-align: center;
        margin-bottom: 40px;
        padding: 30px;
        background: linear-gradient(135deg, #ffffff, #dedede);
        border-radius: 15px;
        color: rgb(0, 0, 0);
    }
    
    .game-stats {
        display: flex;
        justify-content: space-around;
        margin: 20px 0;
        padding: 15px;
        background: rgba(248, 249, 250, 0.9);
        border-radius: 10px;
        color: rgb(0, 0, 0);
    }
    
    .game-stats div {
        color: rgb(0, 0, 0) !important;
        font-weight: 600;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-value {
        font-size: 2em;
        font-weight: bold;
        color: var(--theme-color);
    }
    
    .game-setup {
        background: white;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .game-interface {
        display: none;
        background: white;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    
    .hidden-word-section {
        background: #e8f5e8;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 20px;
        border: 2px solid #4CAF50;
        text-align: center;
    }
    
    .hidden-word-display {
        margin: 10px 0;
    }
    
    .hidden-word {
        font-size: 1.5em;
        font-weight: bold;
        color: #2E7D32;
        background: #C8E6C9;
        padding: 8px 15px;
        border-radius: 25px;
        letter-spacing: 2px;
        border: 2px solid #4CAF50;
        display: inline-block;
    }
    
    .game-sidebar {
        background: linear-gradient(135deg, #fefefe, #b8b8b8);
        color: white;
        padding: 20px;
        min-height: 500px;
    }
    
    .game-sidebar h3, .game-sidebar h5 {
        color: #333 !important;
        font-weight: 600;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .game-sidebar p {
        color: #333 !important;
        font-size: 14px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 10px;
    }
    
    .chat-container {
        height: 400px;
        overflow-y: auto;
        padding: 20px;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        margin-bottom: 20px;
        background: #f8f9fa;
    }
    
    .chat-message {
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 10px;
        max-width: 80%;
    }
    
    .user-message {
        background: var(--theme-color);
        color: white;
        margin-left: auto;
        text-align: right;
    }
    
    .ai-message {
        background: #e9ecef;
        color: #333;
    }
    
    .system-message {
        background: #fff3cd;
        color: #856404;
        text-align: center;
        max-width: 100%;
        font-style: italic;
    }
    
    .message-input-container {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .message-input {
        flex: 1;
        padding: 12px;
        border: 2px solid #dee2e6;
        border-radius: 25px;
        font-size: 16px;
    }
    
    .send-button, .voice-button {
        padding: 12px 20px;
        border: none;
        border-radius: 25px;
        background: var(--theme-color);
        color: white;
        cursor: pointer;
        font-size: 16px;
    }
    
    .progress-bar {
        background: #e9ecef;
        height: 10px;
        border-radius: 5px;
        overflow: hidden;
        margin: 10px 0;
    }
    
    .progress-fill {
        background: linear-gradient(90deg, #28a745, #20c997);
        height: 100%;
        transition: width 0.3s ease;
    }
    
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        background: white;
        padding: 30px;
        border-radius: 15px;
        text-align: center;
        max-width: 500px;
        width: 90%;
    }
    
    .celebration {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .mode-option {
        transition: all 0.3s ease !important;
    }
    
    .mode-option:hover {
        border-color: var(--theme-color) !important;
        background: rgba(26, 115, 232, 0.05) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .mode-option.selected {
        border-color: var(--theme-color) !important;
        background: rgba(26, 115, 232, 0.1) !important;
        box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
    }
    
    .game-background {
        position: relative;
        min-height: 100vh;
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    
    .grinch-no-rotate {
        transform: none !important;
        animation: none !important;
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -ms-animation: none !important;
        -o-animation: none !important;
        animation-name: none !important;
        animation-duration: 0s !important;
        animation-iteration-count: 0 !important;
    }
    
    /* Additional Game CSS - previously external */
    .share-button {
        background: #3498db;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        margin: 0 5px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .share-button:hover {
        background: #2980b9;
        transform: translateY(-2px);
    }
    
    .share-button i {
        font-size: 18px;
    }
    
    .hidden-word-section {
        background: #e8f5e8;
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 20px;
        border: 2px solid #4CAF50;
        text-align: center;
    }
    
    .hidden-word-display {
        margin: 10px 0;
    }
    
    .hidden-word {
        font-size: 1.5em;
        font-weight: bold;
        color: #2E7D32;
        background: #C8E6C9;
        padding: 8px 15px;
        border-radius: 25px;
        letter-spacing: 2px;
        border: 2px solid #4CAF50;
        display: inline-block;
    }

/* ===== LEADERBOARD STYLES ===== */


.leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.tab-button {
    padding: 12px 24px;
    border: 2px solid var(--theme-color);
    background: white;
    color: var(--theme-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--theme-color);
    color: white;
}

.leaderboard-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.leaderboard-table th {
    background: var(--theme-color);
    color: white;
    font-weight: bold;
}

.rank {
    font-size: 1.5rem;
    font-weight: bold;
    width: 60px;
    text-align: center;
}

.rank.first {
    color: #ffd700;
}

.rank.second {
    color: #c0c0c0;
}

.rank.third {
    color: #cd7f32;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-color), #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.player-name {
    font-weight: bold;
    color: #333;
}

.points {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--theme-color);
}

.level-badge {
    padding: 4px 8px;
    background: var(--theme-color);
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.time-badge {
    padding: 4px 8px;
    background: #28a745;
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
}

.mode-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.mode-badge.children {
    background: #28a745;
    color: white;
}

.mode-badge.adults {
    background: #dc3545;
    color: white;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--theme-color);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}


/* ===== GAMES HUB STYLES ===== */

.games-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--theme-color);
}

.game-card-header {
    padding: 30px;
    background: linear-gradient(135deg, var(--theme-color), #764ba2);
    color: white;
    text-align: center;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.game-description {
    font-size: 1rem;
    opacity: 0.9;
}

.game-card-body {
    padding: 30px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.game-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--theme-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.game-button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--theme-color-rgb), 0.3);
    color: white;
    text-decoration: none;
}

.coming-soon {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.coming-soon::after {
    content: 'În Curând';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffd700;
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        padding: 20px;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-container {
        padding: 20px;
    }
    
    /* Mobile Message Input Optimization */
    .message-input-container {
        gap: 8px;
        margin-top: 15px;
    }
    
    .message-input {
        padding: 10px 15px;
        font-size: 14px;
        border-radius: 20px;
        min-height: 40px;
    }
    
    .send-button, .voice-button {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 20px;
        min-width: 70px;
        white-space: nowrap;
    }
    
    /* Game Interface Mobile Layout */
    .game-interface .row {
        margin: 0;
    }
    
    .game-interface .col-md-4,
    .game-interface .col-md-8 {
        padding: 0 10px;
    }
    
    /* Chat Container Mobile */
    .chat-container {
        height: 300px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .chat-message {
        max-width: 90%;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Game Sidebar Mobile */
    .game-sidebar {
        padding: 15px;
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .game-sidebar h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .game-sidebar h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    /* Modal Mobile */
    .modal-content {
        padding: 20px;
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    /* Game Stats Mobile */
    .game-stats {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    
    .stat-item {
        flex: 1;
        min-width: 80px;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
}


/* AI Victory Response Section Styling */
#ai-response-section {
    animation: slideInDown 0.5s ease-out;
}

#ai-response-section h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

#ai-victory-response {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

/* Highlight animation for forbidden word */
@keyframes highlightPulse {
    0% { background: #ffd700; box-shadow: 0 0 0 rgba(255, 215, 0, 0.7); }
    50% { background: #ffed4a; box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
    100% { background: #ffd700; box-shadow: 0 0 0 rgba(255, 215, 0, 0.7); }
}

/* Style for highlighted forbidden words in AI response */
.forbidden-word-highlight {
    background: #ffd700 !important;
    color: #000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: bold !important;
    animation: highlightPulse 2s infinite;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
