* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
}

.content-box {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Header */
.main-header {
    background: #000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

.header-wrapper {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 3px;
}

.logo-subtitle {
    font-size: 14px;
    color: #fff;
    letter-spacing: 4px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: #ffd700;
    color: #000;
}

/* Page Title */
.page-title {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    padding: 65px 28px;
    text-align: center;
}

.title-content h1 {
    font-size: 52px;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 12px;
}

.title-content p {
    font-size: 20px;
    color: #ddd;
}

/* Filter Section */
.filter-section {
    background: #fff;
    padding: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 26px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover {
    background: #e8e8e8;
}

.filter-tab.active-tab {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
}

/* Game Section */
.game-section {
    padding: 70px 28px;
}

.game-section.alt-section {
    background: #fff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 42px;
}

.section-head h2 {
    font-size: 36px;
    font-weight: 900;
    color: #000;
}

.game-count {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    background: #f5f5f5;
    padding: 8px 20px;
    border-radius: 20px;
}

/* Game Matrix */
.game-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.game-box {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.game-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.game-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.game-box:hover .game-thumb img {
    transform: scale(1.12);
}

.hot-tag,
.new-tag,
.live-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.hot-tag {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.new-tag {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.live-tag {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.game-hover {
    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;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-box:hover .game-hover {
    opacity: 1;
}

.hover-btn {
    padding: 14px 42px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.hover-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255,215,0,0.5);
}

.game-meta {
    padding: 20px;
}

.game-meta h3 {
    font-size: 19px;
    color: #000;
    margin-bottom: 6px;
    font-weight: 800;
}

.game-rtp {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}


/* Footer */
.main-footer {
    background: #000;
    color: #fff;
    padding: 65px 28px 28px;
}

.footer-wrapper {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 42px;
    margin-bottom: 42px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 22px;
    color: #ffd700;
    font-weight: 800;
}

.footer-col p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
    color: #ccc;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: #ffd700;
}

.footer-base {
    border-top: 1px solid #333;
    padding-top: 28px;
    text-align: center;
}

.footer-base p {
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 18px;
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }
    
    .title-content h1 {
        font-size: 38px;
    }
    
    .title-content p {
        font-size: 17px;
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-head h2 {
        font-size: 28px;
    }
    
    .game-matrix {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 24px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .title-content h1 {
        font-size: 32px;
    }
    
    .title-content p {
        font-size: 16px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .section-head h2 {
        font-size: 24px;
    }
    
    .game-meta h3 {
        font-size: 17px;
    }
}
