* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* HEADER */
.header {
    max-width: 1200px;      /* = banner */
    margin: 0 auto;         /* căn giữa */
    padding: 0;
}

.header .marquee {
    border-radius: 6px;
}

/* SLIDER */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-track img {
    width: 100%;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}
/* MARQUEE TEXT */
.marquee {
    width: 100%;
    overflow: hidden;
    background: #000;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    padding: 12px 0;
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    animation: marquee 15s linear infinite;
}

/* ANIMATION */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .marquee-track {
        font-size: 16px;
        padding: 10px 0;
    }
}


/* BUTTON */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 40px;
    padding: 5px 15px;
    cursor: pointer;
    z-index: 10;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

/* DOTS */
.dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: #555;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dots span.active {
    background: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
    .header {
        font-size: 20px;
        padding: 15px;
    }

    .nav {
        font-size: 30px;
    }
}

/* ACTION BUTTONS */
.action-buttons {
    max-width: 1200px;   /* = banner */
    margin: 20px auto;
    padding: 0 10px;
}

.btn-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.btn-row img {
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-row img:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* MOBILE */
@media (max-width: 768px) {
    .btn-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .action-buttons {
        margin-top: 8px;     /* giảm khoảng cách với header */
        margin-bottom: 12px;
    }

    .header {
        margin-bottom: 6px;  /* nếu header còn dư */
    }
}
@media (max-width: 768px) {
    .header { margin-bottom: 0; }
    .action-buttons { margin-top: 4px; }
}
/* GAME GRID */
.game-grid {
    max-width: 1200px;     /* = banner */
    margin: 20px auto;
    padding: 0 10px;

    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.game-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;

    text-align: center;
    padding: 18px 5px;

    font-size: 22px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;

    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
}

/* ICON TO */
.game-card br + * {
    font-size: 14px;
    font-weight: normal;
}

/* HOVER (PC) */
.game-card:hover {
    transform: translateY(-4px);
    background: #1c1c1c;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

/* MOBILE */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 12px auto;
    }

    .game-card {
        font-size: 20px;
        padding: 16px 5px;
    }
}

/* ===== GAME CARD OVERRIDE ===== */

/* ICON TO – CHỮ NHỎ */
.game-card {
    font-size: 34px;      /* ghi đè font-size cũ */
    line-height: 1.1;
}

.game-card br + * {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
}

/* ACTIVE – MOBILE TOUCH */
.game-card:active {
    transform: scale(0.95);
    background: #222;
    box-shadow: none;
}

/* HOVER COLOR PER GAME */
.game-card:nth-child(1):hover {
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.35);
}
.game-card:nth-child(2):hover {
    box-shadow: 0 8px 20px rgba(255, 100, 100, 0.35);
}
.game-card:nth-child(3):hover {
    box-shadow: 0 8px 20px rgba(120, 255, 120, 0.35);
}
.game-card:nth-child(4):hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
}
.game-card:nth-child(5):hover {
    box-shadow: 0 8px 20px rgba(180, 120, 255, 0.35);
}
.game-card:nth-child(6):hover {
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35);
}

/* MOBILE TUNE */
@media (max-width: 768px) {
    .game-card {
        font-size: 32px;
        padding: 18px 5px;
    }

    .game-card br + * {
        font-size: 13px;
    }
}

/* =========================
   BOTTOM BANNER
========================= */
.bottom-banner {
    max-width: 1200px;   /* = banner */
    margin: 20px auto 30px;
    padding: 0 10px;
}

.bottom-banner img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;

    border-radius: 12px;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                filter 0.25s ease;
}

/* HOVER (PC) */
.bottom-banner img:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.25);
    filter: brightness(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
    .bottom-banner {
        margin: 12px auto 20px;
    }

    .bottom-banner img {
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .bottom-banner img:hover {
        transform: none;
        box-shadow: none;
    }
}

