        /* 🎨 ปรับปรุงโครงสร้างหน้าจอเพื่อให้ Footer อยู่ล่างสุดเสมอ (Sticky Footer) */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }
                body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('https://wallpapercave.com/wp/CGPbo9G.jpg'); 
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #f8fafc; 
            display: flex;
            flex-direction: column;
            position: relative; /* 🌐 เพิ่มเพื่อให้คุมตำแหน่งตำแหน่งปุ่มเปลี่ยนภาษาได้ถูกต้อง */
        }

        
        /* 📦 กล่องหุ้มเนื้อหาหลัก ยืดขยายเพื่อดัน Footer ลงข้างล่าง */
        .main-content {
            flex: 1 0 auto;
            padding: 40px 20px;
        }
        
        /* 📦 กล่องหุ้มเนื้อหาหลัก (ปรับพื้นหลังเป็น rgba เพื่อความโปร่งแสงและเพิ่มกระจกฝ้าสวยงาม) */
        .container { 
            max-width: 500px; 
            margin: 40px auto; 
            background: rgba(30, 41, 59, 0.85); 
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            padding: 30px; 
            border-radius: 12px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.4); 
            border: 1px solid rgba(51, 65, 85, 0.6); 
        }
        h2 { text-align: center; margin-top: 0; color: #38bdf8; font-size: 24px; margin-bottom: 5px; }
        .subtitle { text-align: center; color: #94a3b8; font-size: 13px; margin-bottom: 25px; }
        .form-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 8px; font-weight: 600; color: #cbd5e1; font-size: 14px; }
        input[type="text"] { width: 100%; padding: 12px 14px; box-sizing: border-box; border: 2px solid #475569; background: #0f172a; color: white; border-radius: 6px; font-size: 15px; text-align: center; letter-spacing: 2px; }
        input[type="text"]:focus { border-color: #38bdf8; outline: none; }
        .btn { width: 100%; padding: 12px; border: none; font-weight: bold; border-radius: 6px; cursor: pointer; font-size: 15px; background: #0284c7; color: white; transition: background 0.2s; }
        .btn:hover { background: #0369a1; }
        .btn:disabled { background: #64748b; cursor: not-allowed; }
        
        /* 🎨 ปรับแต่งธีมของ SweetAlert2 ให้เข้ากับโทนสีมืดของเว็บเกม */
        .rose-swal-popup {
            background-color: #1e293b !important;
            color: #f8fafc !important;
            border: 1px solid #334155 !important;
            border-radius: 12px !important;
        }
        .rose-swal-title {
            color: #38bdf8 !important;
        }

        /* 🌟 ส่วนของ Footer CSS คุมโทนสีมืดระดับมืออาชีพ */
        .site-footer {
            flex-shrink: 0;
            background-color: #0b0f19;
            border-top: 1px solid #1e293b;
            padding: 20px 10px;
            text-align: center;
            font-size: 13px;
            color: #64748b;
        }
        .footer-links {
            margin-bottom: 10px;
        }
        .footer-links a {
            color: #38bdf8;
            text-decoration: none;
            margin: 0 10px;
            transition: color 0.2s;
        }
        .footer-links a:hover {
            color: #7dd3fc;
            text-decoration: underline;
        }
        .copyright {
            margin-top: 5px;
            letter-spacing: 0.5px;
        }

        /* 🌐 แถบเลือกภาษาเพิ่มใหม่ (ปรับตำแหน่งให้อยู่ชั้นบนสุดและจัดสัดส่วนธงชาติ) */
        .language-switcher {
            position: absolute;
            top: 24px;
            right: 24px;
            display: flex;
            gap: 12px;
            z-index: 9999;
        }
        .lang-btn {
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            opacity: 0.5;
            transition: opacity 0.2s, transform 0.2s;
        }
        .lang-btn:hover, .lang-btn.active {
            opacity: 1;
            transform: scale(1.1);
        }
        .lang-btn img {
            width: 32px;
            height: 22px;
            object-fit: cover;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.6);
            display: block;
        }