/* ==========================================================================
   Moban 8-10-37 — main.css
   Lớp H: trang đích cuộn dài một cột + điều hướng chấm tròn + marquee
   Bảng màu: #3D5A80 (chủ đạo) · #EE6C4D (nhấn) · #EDF6F9 (nền) · #293241 (chữ)
   ========================================================================== */

/* --- Chống tràn ngang (bắt buộc) --- */
html, body { overflow-x: hidden; }

:root {
    --c-primary: #3D5A80;
    --c-primary-dark: #293241;
    --c-accent: #EE6C4D;
    --c-accent-soft: #f7a58f;
    --c-light: #EDF6F9;
    --c-ink: #293241;
    --c-white: #ffffff;
    --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
    --radius: 16px;
    --shadow-soft: 0 10px 30px rgba(41, 50, 65, 0.12);
    --shadow-hard: 0 18px 45px rgba(41, 50, 65, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-ink);
    background: var(--c-light);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--c-primary); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--c-accent); }

ul, ol { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; min-width: 0; }

.section-pad { padding: 84px 0; }

.section-head { text-align: center; margin-bottom: 48px; min-width: 0; }
.section-head .kicker {
    display: inline-block;
    font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    color: var(--c-primary-dark);
    line-height: 1.2;
}
.section-head .divider {
    width: 64px; height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    margin: 18px auto 0;
}

/* ================= Header ================= */
.site-header {
    position: fixed; inset-inline: 0; top: 0; z-index: 900;
    background: rgba(237, 246, 249, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 90, 128, 0.14);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); background: rgba(255, 255, 255, 0.95); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 0; min-width: 0;
}
.site-branding { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-branding img { max-height: 44px; width: auto; }
.site-title { font-size: 20px; font-weight: 900; color: var(--c-primary); letter-spacing: .02em; white-space: nowrap; }

.site-nav { min-width: 0; }
.site-nav ul { display: flex; gap: 26px; flex-wrap: wrap; }
.site-nav a {
    font-weight: 700; font-size: 15px; color: var(--c-ink);
    padding: 6px 2px; position: relative;
}
.site-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 3px; border-radius: 2px; background: var(--c-accent);
    transition: width .3s ease;
}
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { width: 100%; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 28px; border-radius: 999px;
    font-weight: 700; font-size: 15px; line-height: 1.2;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-accent {
    background: var(--c-accent); color: var(--c-white);
    box-shadow: 0 10px 24px rgba(238, 108, 77, 0.38);
}
.btn-accent:hover { background: #d9552f; color: var(--c-white); transform: translateY(-2px); }
.btn-ghost { border-color: var(--c-white); color: var(--c-white); background: transparent; }
.btn-ghost:hover { background: var(--c-white); color: var(--c-primary); }
.btn-primary { background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-white); transform: translateY(-2px); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 42px; height: 42px; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 8px; width: 26px; height: 3px;
    border-radius: 2px; background: var(--c-primary); transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle span::before { left: 0; top: -8px; }
.menu-toggle span::after { left: 0; top: 8px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span::after { transform: translateY(-8px) rotate(-45deg); }

/* ================= Hero toàn màn hình ================= */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--c-white);
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero-bg img.is-active { opacity: 1; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(41, 50, 65, 0.78) 0%, rgba(61, 90, 128, 0.72) 55%, rgba(41, 50, 65, 0.88) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 20px; min-width: 0; }
.hero-badge {
    display: inline-block; padding: 8px 22px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(32px, 6vw, 62px);
    font-weight: 900; line-height: 1.12; text-transform: uppercase;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--c-accent); }
.hero p { font-size: clamp(15px, 2vw, 19px); color: rgba(255, 255, 255, 0.92); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    z-index: 2; color: rgba(255, 255, 255, 0.85); font-size: 13px; letter-spacing: .2em;
    text-transform: uppercase; animation: hintBounce 2.2s ease-in-out infinite;
}
@keyframes hintBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ================= Marquee chạy ngang ================= */
.marquee-band {
    background: var(--c-primary-dark);
    border-block: 3px solid var(--c-accent);
    overflow: hidden;
    max-width: 100%;
    padding: 16px 0;
    position: relative;
}
.marquee-track {
    display: flex; align-items: center; gap: 0;
    width: max-content; max-width: none;
    animation: marqueeMove 32s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track .m-item {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 0 26px; white-space: nowrap;
    color: var(--c-light); font-weight: 700; font-size: 17px; letter-spacing: .06em;
    text-transform: uppercase;
}
.marquee-track .m-dot { color: var(--c-accent); font-size: 14px; }
@keyframes marqueeMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= Điều hướng chấm tròn nổi ================= */
.dot-nav {
    position: fixed; top: 50%; right: 22px; transform: translateY(-50%);
    z-index: 950; display: flex; flex-direction: column; gap: 16px;
}
.dot-nav a {
    position: relative; width: 13px; height: 13px; border-radius: 50%;
    background: rgba(61, 90, 128, 0.35);
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.dot-nav a:hover { background: var(--c-accent); transform: scale(1.25); }
.dot-nav a.is-active {
    background: var(--c-accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(238, 108, 77, 0.25);
}
.dot-nav a .dot-label {
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%) translateX(6px);
    background: var(--c-primary-dark); color: var(--c-white);
    font-size: 12px; font-weight: 700; white-space: nowrap;
    padding: 5px 12px; border-radius: 8px;
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.dot-nav a:hover .dot-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ================= Scroll reveal ================= */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ================= Lưới trò chơi ================= */
.section-games { background: var(--c-white); }
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.game-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    background: var(--c-primary); min-width: 0;
    box-shadow: var(--shadow-soft);
    transition: transform .35s ease, box-shadow .35s ease;
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hard); }
.game-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; transition: transform .6s ease, opacity .4s ease; }
.game-card:hover img { transform: scale(1.07); opacity: .85; }
.game-card .game-name {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 26px 10px 12px; text-align: center;
    background: linear-gradient(180deg, transparent, rgba(41, 50, 65, 0.9));
    color: var(--c-white); font-weight: 700; font-size: 14px;
}
.games-cta { text-align: center; margin-top: 40px; }

/* ================= Khối ưu đãi (poster) ================= */
.section-promo {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: var(--c-white);
}
.section-promo .section-head h2 { color: var(--c-white); }
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "p1 p2 p3" "p4 p5 p6";
    gap: 20px;
}
.promo-card {
    border-radius: var(--radius); overflow: hidden; position: relative;
    box-shadow: var(--shadow-hard); min-width: 0;
    transition: transform .35s ease;
}
.promo-card:nth-child(1) { grid-area: p1; }
.promo-card:nth-child(2) { grid-area: p2; }
.promo-card:nth-child(3) { grid-area: p3; }
.promo-card:nth-child(4) { grid-area: p4; }
.promo-card:nth-child(5) { grid-area: p5; }
.promo-card:nth-child(6) { grid-area: p6; }
.promo-card:hover { transform: translateY(-6px) scale(1.015); }
.promo-card img { width: 100%; display: block; object-fit: cover; }
.promo-card .promo-tag {
    position: absolute; top: 12px; left: 12px;
    background: var(--c-accent); color: var(--c-white);
    font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 14px; border-radius: 999px;
}

/* ================= Ưu điểm nổi bật ================= */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: var(--c-white); border-radius: var(--radius);
    padding: 34px 24px; text-align: center;
    border-top: 5px solid var(--c-primary);
    box-shadow: var(--shadow-soft); min-width: 0;
    transition: transform .3s ease, border-color .3s ease;
}
.feature-card:hover { transform: translateY(-8px); border-top-color: var(--c-accent); }
.feature-icon {
    width: 68px; height: 68px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; border-radius: 50%;
    background: var(--c-light); color: var(--c-accent);
}
.feature-card h3 { font-size: 18px; font-weight: 900; color: var(--c-primary-dark); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: #56617a; }

/* ================= Tin tức ================= */
.section-news { background: var(--c-white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: var(--c-light); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-soft); min-width: 0; display: flex; flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hard); }
.news-card .thumb { display: block; overflow: hidden; }
.news-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease; }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.news-meta { font-size: 13px; color: var(--c-accent); font-weight: 700; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.news-card h3 a { color: var(--c-primary-dark); }
.news-card h3 a:hover { color: var(--c-accent); }
.news-excerpt { font-size: 14px; color: #56617a; flex: 1; }
.news-more { font-size: 14px; font-weight: 700; color: var(--c-accent); }
.news-empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: #56617a; }

/* ================= Hướng dẫn từng bước ================= */
.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card {
    position: relative; background: var(--c-white); border-radius: var(--radius);
    padding: 40px 26px 28px; box-shadow: var(--shadow-soft); min-width: 0;
}
.step-card::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; top: -20px; left: 24px;
    width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: var(--c-accent); color: var(--c-white);
    font-weight: 900; font-size: 17px; border-radius: 12px;
    box-shadow: 0 8px 18px rgba(238, 108, 77, 0.4);
}
.step-card h3 { font-size: 17px; font-weight: 900; color: var(--c-primary-dark); margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: #56617a; }
.steps-cta { text-align: center; margin-top: 46px; }

/* ================= Trang nội dung (index/archive/single/page) ================= */
.page-hero {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: var(--c-white); text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 900; text-transform: uppercase; }
.page-hero .crumb { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.page-hero .crumb a { color: var(--c-accent); }

.content-wrap { padding: 70px 0; min-width: 0; }

.post-loop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.article-card {
    background: var(--c-white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-soft); min-width: 0;
    transition: transform .3s ease, box-shadow .3s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hard); }
.article-card .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-card .card-body { padding: 22px; min-width: 0; }
.article-card h2 { font-size: 19px; font-weight: 700; line-height: 1.45; margin: 8px 0 10px; }
.article-card h2 a { color: var(--c-primary-dark); }
.article-card h2 a:hover { color: var(--c-accent); }
.article-card .excerpt { font-size: 14.5px; color: #56617a; }

.single-article {
    background: var(--c-white); border-radius: var(--radius);
    box-shadow: var(--shadow-soft); padding: clamp(24px, 4vw, 48px); min-width: 0;
}
.single-article h1 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; color: var(--c-primary-dark); line-height: 1.3; margin-bottom: 14px; }
.single-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--c-accent); font-weight: 700; margin-bottom: 22px; }
.single-article .entry-content { font-size: 16.5px; color: #3c475c; }
.single-article .entry-content p { margin-bottom: 18px; }
.single-article .entry-content img { border-radius: 12px; }
.single-article .entry-content h2, .single-article .entry-content h3 { color: var(--c-primary-dark); margin: 26px 0 14px; }

.pagination-nav { margin-top: 44px; display: flex; justify-content: center; }
.pagination-nav .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px; margin: 0 4px;
    border-radius: 10px; background: var(--c-white); color: var(--c-primary);
    font-weight: 700; box-shadow: var(--shadow-soft);
}
.pagination-nav .page-numbers.current, .pagination-nav .page-numbers:hover { background: var(--c-accent); color: var(--c-white); }

/* ================= Footer ================= */
.site-footer {
    background: var(--c-primary-dark); color: rgba(237, 246, 249, 0.85);
    padding: 64px 0 0; font-size: 14.5px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; min-width: 0; }
.footer-col { min-width: 0; }
.footer-col h4 {
    color: var(--c-white); font-size: 15px; font-weight: 900;
    text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px;
}
.footer-col a { color: rgba(237, 246, 249, 0.85); }
.footer-col a:hover { color: var(--c-accent); }
.footer-col li { margin-bottom: 9px; }
.footer-brand img { max-height: 46px; margin-bottom: 14px; }
.footer-disclaimer {
    border-top: 1px solid rgba(237, 246, 249, 0.15);
    padding: 26px 0; text-align: center;
}
.footer-disclaimer .warn-18 {
    color: var(--c-accent); font-weight: 700; display: block; margin-bottom: 8px;
}
.footer-dmca { margin: 0 auto 18px; max-width: 130px; }
.footer-bottom { text-align: center; padding: 0 0 26px; font-size: 13px; color: rgba(237, 246, 249, 0.55); }
