@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Lora:wght@400;700&display=swap');
@font-face {
    font-family: 'FzGamesLS';
    src: url('../font/FzGamesLS Full.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 1. H́nh n?n */
body {
	filter: brightness(100%);
    background-image: url('../img/hinh-nen.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    background-color: #f4f7f6;
    color: #ffffff;
    font-family: 'Lora', serif;
    position: relative;
}

/* 2. L?p ph? m? (Overlay) */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Đ?i t? màu den sang tr?ng m? */
background-color: rgba(255, 255, 255, 0.0); /* Ch? ph? 40% màu tr?ng d? làm d?u ?nh */
    z-index: 1;
}

/* 3. N?i dung chính */
.main-wrapper {
	filter: brightness(100%);
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Logo */
.intro-header { padding: 0px 0; }
.main-logo {
    max-width: 300px; /* B?n gi?m con s? này xu?ng, ví d? 150px ho?c 100px */
    height: auto;     /* Gi? nguyên d? logo không b? méo */
}

/* Tiêu d? */
.main-title {
    font-family: 'FzGamesLS', sans-serif;
    font-size: 4.5rem;
    
    /* Màu Vàng Kim */
    color: #fff5ba; 
    
    /* Hi?u ?ng 3D t?a sáng */
    text-shadow: 
        3px 7px 0px #000000,   /* Vi?n d? d?m (t?o d? dày) */
        0px 0px 10px #ffcc00,  /* Ánh sáng t?a ra */
        2px 4px 6px rgba(0,0,0,0.5); /* Bóng d? t?o d? sâu */
    
    letter-spacing: 5px;
	font-weight: 900; /* Ép font dày hon */
}

/* Ch?nh c? ph?n slogan bên du?i cho d? d?c hon */
.sub-title {
    font-size: 1.2rem;
    color: #333; /* Chuy?n sang màu xám d?m d? d? d?c hon màu tr?ng */
    background: rgba(255, 255, 255, 0.4); /* Thêm n?n m? nh? du?i ch? */
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Video */
.video-section { margin-bottom: 50px; }
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 3px solid #fff;
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Features */
/* Tùy ch?nh d? ô cu?i cùng t? dàn d?u n?u có ít hon 3 ph?n t? */
.features-section {
    display: flex;
    flex-wrap: wrap;         /* Cho phép các cu?n gi?y xu?ng ḍng */
	grid-template-columns: repeat(3, 1fr); /* Chuy?n thành 4 c?t */
    justify-content: center; /* Can gi?a toàn b? các cu?n */
    gap: 20px;               /* Kho?ng cách gi?a các cu?n */
    max-width: 1200px;       /* Gi?i h?n d? r?ng d? ép thành 3 c?t */
    margin: 50px auto;
}


.feature-item {
	flex: 0 0 300px;         /* Ép c?ng d? r?ng 300px cho m?i cu?n */
    max-width: 300px;        /* Đ?m b?o không b? giăn */
    background-image: url('../img/bg-chieuthu.png'); /* File ?nh cu?n gi?y c?a b?n */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 80px 40px; /* Tang padding d? ch? n?m g?n gi?a cu?n */
    text-align: center;
    min-height: 250px;
	filter: sepia(20%) brightness(0.95);
}
.feature-item:hover {
    filter: sepia(0%) brightness(1.1);
    transition: 0.3s;
}
/* Tiêu d? trong cu?n gi?y */
.feature-item h3 {
    /* Ch? Vàng Kim r?c r? */
    color: #ffd700; 
    font-size: 1.4rem;
    /* Bóng d? den dày giúp ch? tách bi?t kh?i m?i lo?i n?n */
	.giftcode-wrapper {
    text-align: center;
    margin-top: 80px;  /* Tang lên 80px d? có kho?ng cách thoáng hon nhu b?n mu?n */
    margin-bottom: 40px; /* Thêm kho?ng cách v?i footer ? du?i */
}

/* Đ?m b?o nút không b? "x?p" trên di d?ng */
@media (max-width: 600px) {
    .btn-giftcode {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 5px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.feature-item p {
    /* Ch? tr?ng kem (c?c k? d? d?c trên m?i n?n) */
    color: #fffaf0; 
    font-weight: 500;
    line-height: 1.5;
    /* Bóng d? den cho ch? n?i dung */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
}
/* Nút */
.call-to-action { display: flex; justify-content: center; gap: 25px; margin-bottom: 30px; }
.btn { padding: 16px 45px; text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s; display: inline-block; }
.btn-primary {
    background: #800000;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(128,0,0,0.4);
}
.btn-primary:hover { background: #5a0000; }
.btn-secondary { border: 2px solid #b8860b; color: #b8860b; }
.btn-secondary:hover { background: rgba(184, 134, 11, 0.1); }

/* Footer */
.intro-footer { padding: 25px; font-size: 0.9rem; color: #000000; border-top: 1px solid #eee; position: relative; z-index: 2; }
/* Thêm vào CSS khi ? ch? d? n?n t?i */
.dark-mode .feature-item {
    background-color: rgba(0, 0, 0, 0.4); /* Thêm m?t l?p bóng den m? cho cu?n gi?y */
    background-blend-mode: multiply;      /* Làm ?nh gi?y t?i l?i m?t chút */
}
.btn-giftcode {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(to bottom, #ffd700, #b8860b); /* Màu vàng kim lo?i */
    color: #8b0000; /* Ch? d? d?m */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50px; /* Bo tṛn ki?u c? trang */
    border: 2px solid #8b0000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-giftcode:hover {
    transform: scale(1.1); /* Phóng to nh? khi di chu?t vào */
    background: linear-gradient(to bottom, #fff, #ffd700);
}
/* T́m class b?c nút b?m c?a b?n */
.btn-giftcode-container { /* Thay tên class này b?ng tên class th?c t? trong HTML c?a b?n */
    margin-top: 60px; /* Tang con s? này lên d? t?o thêm kho?ng cách */
    text-align: center;
}
/* N?u b?n mu?n áp d?ng nhanh cho th? ch?a nút b?m */
.giftcode-section { 
    margin-top: 80px !important; /* Thay 80px b?ng d? cao b?n mu?n */
}
.giftcode-wrapper { /* Class bao quanh nút b?m c?a b?n */
    text-align: center;
    margin-top: 50px;    /* Kho?ng cách phía trên */
    margin-bottom: 50px; /* Tang con s? này lên (ví d? 100px ho?c 150px) d? t?o kho?ng tr?ng phía du?i */
}
.gift-info-box {
    max-width: 800px; /* Thu nh? d? r?ng t?i da c?a khung */
    margin: 20px auto;
    padding: 15px;    /* Gi?m padding d? khung ôm sát n?i dung hon */
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #d4af37; /* Vi?n vàng kim m?ng, sang tr?ng */
    border-radius: 8px;
    font-size: 0.9rem; /* Gi?m size ch? t?ng th? xu?ng */
}

.gift-info-box h3 {
    font-size: 1.1rem; /* Tiêu d? nh? l?i m?t chút */
    color: #ffd700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gift-info-box ul {
    list-style: none; /* B? ch?m tṛn m?c d?nh */
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.gift-info-box li {
    margin-bottom: 5px; /* Gi?m kho?ng cách gi?a các ḍng */
    line-height: 1.4;
}

.npc-instruction {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ffd700; /* Dùng nét d?t d? trông nh? nhàng hon */
    font-size: 0.85rem;
}
.community-section {
    text-align: center;
    margin: 50px auto;
}

.community-section h3 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 0, 0);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ffd700;
    transition: 0.3s;
}

.btn-social:hover {
    background: #ffd700;
    color: #8b0000;
    transform: translateY(-5px);
}

.btn-social img {
    width: 20px;
    height: 20px;
}
.info-section {
    margin: 50px auto;
    max-width: 900px;
    padding: 20px;
}

.info-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ffd700;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    text-align: left;
}

.info-box h3 {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-box p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.info-box p span {
    color: #ff4444; /* Màu d? cho ngày tháng n?i b?t */
    font-weight: bold;
    margin-right: 10px;
}
.hero-section {
	margin-bottom: 80px;
    position: relative;
    width: 100%;
    height: 80vh; /* Chi?u cao chi?m 80% màn h́nh */
    background: url('../img/hero-bg.jpg') no-repeat center center; /* ?nh n?n c?nh v?t */
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

/* Hi?u ?ng m? d?n ? dáy Banner d? n?i v?i ph?n du?i */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
    z-index: 2;
}

.hero-char-img {
    position: absolute;
    right: 5%; /* Đ?t nhân v?t ? bên ph?i */
    bottom: 0;
    height: 90%; /* Chi?u cao nhân v?t g?n b?ng Banner */
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 3; /* N?m trên nhân v?t và l?p ph? */
    text-align: center;
    max-width: 600px;
}

.server-name {
    font-size: 3.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px rgba(255,215,0,0.5);
    margin-bottom: 20px;
    line-height: 1.2;
}

.server-name span {
    font-size: 4rem;
    color: #fff;
}

.ob-info {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffd700;
    margin-bottom: 30px;
}

.ob-title {
    color: #ff4444;
    font-weight: bold;
    font-size: 2.1rem;
    margin-bottom: 5px;
}

.ob-date {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* CSS cho B? d?m ngu?c */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-block {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 70px;
}

.time-block span {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}

.time-block p {
    font-size: 0.8rem;
    margin: 0;
}

/* CSS cho nút Đang kư trên Hero */
.btn-hero-reg {
    display: inline-block;
    padding: 12px 30px;
    background: #b22222; /* Màu d? l?a */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-hero-reg:hover {
    background: #ffd700;
    color: #b22222;
    transform: scale(1.05);
}
.community-title {
    text-align: center;
    margin-bottom: 25px;
}

.community-title h3 {
    color: #ffd700; /* Vàng kim */
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.community-title p {
    color: #ff0000;
    font-size: 1.3rem;
    margin-top: 10px;
    font-weight: 500;
    /* Vi?n m?ng 1px d? không b? ch́m vào n?n */
    text-shadow: 2px 1px 0px #ffffff;
}
.event-box {
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(135deg, rgba(139,0,0,0.8), rgba(0,0,0,0.9));
    border: 2px solid #ffd700;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); /* Hi?u ?ng t?a sáng */
}

.prize-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.prize-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px dashed #ffd700;
}

.btn-event {
    display: inline-block;
    padding: 12px 25px;
    background: #ffd700;
    color: #8b0000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}
