.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > .col-md-6,
.row-equal-height > .col-lg-4,
.row-equal-height > .col-xl-3 {
    display: flex;
    flex-direction: column;
}

.row-equal-height .game-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.game-card-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    flex-shrink: 0;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 50%, #ff9966 100%);
}

.game-card-header i {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.game-card-category-icon {
    color: #ff6600;
}

.game-card-players-icon {
    color: #ff6600;
}

.game-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.game-card-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-category {
    font-size: 0.85rem;
    color: #888;
}

.game-category i {
    color: #ff6600;
}

.game-players i {
    color: #ff6600;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
}

.btn-teko {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-teko:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #0849a6 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.game-players {
    font-size: 0.85rem;
    color: #888;
}

.game-players i {
    color: #667eea;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-game-play {
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-game-play:hover {
    transform: scale(1.02);
}

.btn-teko {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-teko:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.game-modal .modal-content {
    background: #1a1a2e;
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.game-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
}

.game-modal .modal-title {
    color: #fff;
    font-weight: 600;
}

.game-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.game-modal .modal-body {
    background: #0f0f1a;
    padding: 0;
}

.game-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a2e;
    padding: 15px 20px;
}

.game-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f0f1a;
}

.game-canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    color: #fff;
}

.overlay-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.overlay-content p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 30px;
}

.game-score {
    color: #ffc107;
    font-size: 1.1rem;
}

.game-score strong {
    color: #fff;
}

.game-controls-info {
    color: #888;
}

.game-stats {
    min-height: 40px;
}

@media (max-width: 768px) {
    .game-card-header {
        height: 80px;
        font-size: 36px;
    }

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

    .game-card-title {
        font-size: 1.1rem;
    }

    .game-card-description {
        font-size: 0.85rem;
    }

    .modal-dialog {
        margin: 10px;
    }

    .overlay-content h3 {
        font-size: 1.5rem;
    }

    .overlay-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .game-card-header {
        height: 60px;
        font-size: 28px;
    }
}
