/* ===== Games Hall ===== */
.page-games {
    background: #f5f6f8;
}

.games-page {
    min-height: calc(100vh - 96px);
    padding-bottom: 16px;
}

.games-disabled {
    padding: 72px 24px 40px;
    text-align: center;
}

.games-disabled-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.games-disabled-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.games-disabled-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 24px;
}

.games-disabled-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 40px;
    border-radius: 20px;
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.games-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 12px 0;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.games-toolbar-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.games-toolbar-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.games-recall-btn {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #ffd6d6;
    background: #fff5f5;
    color: var(--primary-red);
    border-radius: 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.games-recall-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.games-category-tabs {
    margin-top: 12px;
}

.games-category-tabs .category-tab {
    border: none;
    background: transparent;
    font-family: inherit;
}

.games-sub-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 4px;
}

.games-sub-platform {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.games-sub-category {
    font-size: 12px;
    color: #fff;
    background: var(--primary-red);
    padding: 2px 8px;
    border-radius: 10px;
}

.games-grid-wrap {
    padding: 12px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.games-loading,
.games-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: #999;
    font-size: 14px;
}

.games-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.games-card:active {
    transform: scale(0.98);
}

.games-card-cover {
    position: relative;
    height: 96px;
    background: linear-gradient(135deg, #ff8a80, #ff5252);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.games-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.games-card-cover--realbet { background: linear-gradient(135deg, #ef9a9a, #c62828); }
.games-card-cover--sport { background: linear-gradient(135deg, #81c784, #2e7d32); }
.games-card-cover--concise { background: linear-gradient(135deg, #64b5f6, #1565c0); }
.games-card-cover--gaming { background: linear-gradient(135deg, #ba68c8, #6a1b9a); }
.games-card-cover--joker { background: linear-gradient(135deg, #ffb74d, #ef6c00); }
.games-card-cover--lottery { background: linear-gradient(135deg, #f06292, #ad1457); }
.games-card-cover--fishing { background: linear-gradient(135deg, #4dd0e1, #00838f); }

.games-card-letter {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.games-card-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffd54f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.games-card-body {
    padding: 10px 12px 12px;
}

.games-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-card-platform {
    font-size: 12px;
    color: #999;
}

.games-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.games-card-more {
    flex: 1;
    height: 28px;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 14px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.games-foot-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px 20px;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

.games-foot-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

/* Home entry */
.home-games-section {
    margin-top: 0;
    padding-bottom: 4px;
}

.home-games-section .section-header {
    padding-bottom: 0;
}

.home-games-tabs {
    margin: 0 12px 10px;
    background: #fff;
    border-radius: 12px;
    border-bottom: none;
    box-shadow: var(--shadow);
}

.home-games-tabs .category-tabs-track {
    min-width: 100%;
}

.home-games-tabs .category-tab {
    padding: 11px 12px;
    font-size: 13px;
    border: none;
    background: transparent;
    font-family: inherit;
}

.games-home-empty {
    grid-column: 1 / -1;
    padding: 28px 12px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.games-entry-section {
    margin-top: 4px;
}

.games-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px 12px;
}

.games-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    padding: 10px 8px;
    border: none;
    font: inherit;
    width: 100%;
    cursor: pointer;
}

.games-home-card:active {
    transform: scale(0.98);
}

.games-home-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
}

.games-home-icon--image {
    background: #f0f0f0;
}

.games-home-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.games-home-icon.games-card-cover--realbet { background: linear-gradient(135deg, #ef9a9a, #c62828); }
.games-home-icon.games-card-cover--sport { background: linear-gradient(135deg, #81c784, #2e7d32); }
.games-home-icon.games-card-cover--concise { background: linear-gradient(135deg, #64b5f6, #1565c0); }
.games-home-icon.games-card-cover--gaming { background: linear-gradient(135deg, #ba68c8, #6a1b9a); }
.games-home-icon.games-card-cover--joker { background: linear-gradient(135deg, #ffb74d, #ef6c00); }
.games-home-icon.games-card-cover--lottery { background: linear-gradient(135deg, #f06292, #ad1457); }
.games-home-icon.games-card-cover--fishing { background: linear-gradient(135deg, #4dd0e1, #00838f); }

.games-home-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
