/* (CSS สำหรับ "หน้าบ้าน" ... ธีม Dark/Mystical) */

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #121212;
    color: #eee;
}

.index-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 1. (ส่วนต้อนรับ) */
.hero {
    text-align: center;
    padding: 80px 20px;
    /* (⭐️ "ย้อม" ภาพพื้นหลัง... เหมือน "ฮับ") */
    background: linear-gradient(rgba(10, 5, 20, 0.8), rgba(10, 5, 20, 0.9)),
        url('https://i.imgur.com/g8VUcAm.jpeg');
    /* (ใช้ภาพป่าเวทมนตร์... หรือภาพอื่น) */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
    font-size: 3.5em;
    color: #c77dff;
    /* (สีม่วง Neon) */
    margin: 0;
    text-shadow: 0 0 15px rgba(199, 125, 255, 0.5);
}

.hero p {
    font-size: 1.2em;
    color: #ccc;
    margin: 20px 0 30px 0;
}

/* (นี่คือ "ปุ่ม" ที่คุณขอ) */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    /* (สีน้ำเงิน... ให้ "เด่น") */
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* 2. (ส่วนแนะนำเกม) */
.guides {
    text-align: center;
}

.guides h2 {
    font-size: 2.5em;
    color: #00e0ff;
    /* (สีฟ้า Diamond) */
    border-bottom: 2px solid rgba(0, 224, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.game-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* (2 คอลัมน์) */
    gap: 20px;
}

.game-guide {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    transition: transform 0.2s ease;
}

.game-guide:hover {
    transform: translateY(-5px);
    border-color: #c77dff;
}

.game-guide h3 {
    font-size: 1.5em;
    color: #c77dff;
    margin-top: 0;
}

.game-guide p {
    color: #bbb;
}

/* (Footer) */
.index-footer {
    text-align: center;
    margin-top: 50px;
    color: #777;
}

/* (สำหรับมือถือ... ให้เหลือ 1 คอลัมน์) */
@media (max-width: 768px) {
    .game-list {
        grid-template-columns: 1fr;
    }
}

/* ⭐ เพิ่ม Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 1s ease-out;
}

.cta-button {
    animation: glow 2s infinite;
}

.game-guide {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.game-guide:nth-child(1) {
    animation-delay: 0.2s;
}

.game-guide:nth-child(2) {
    animation-delay: 0.4s;
}

.game-guide:nth-child(3) {
    animation-delay: 0.6s;
}

.game-guide:nth-child(4) {
    animation-delay: 0.8s;
}

.game-guide:nth-child(5) {
    animation-delay: 1s;
}

.crypto-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    font-weight: bold;
    margin: 5px;
    animation: float 3s ease-in-out infinite;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2em;
    color: #ffd700;
    margin: 10px 0;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}