
        
        /* สไตล์สำหรับพื้นที่ Widget (ก็อปปี้ไปใส่ไฟล์ CSS ของเว็บคุณ) */
        #jiaobei-widget { 
            position: relative;
            width: 100%; 
            max-width: min(100vmin, 500px); /* ป้องกันไม่ให้ใหญ่ทะลุขอบจอ (100% ของด้านที่สั้นที่สุด) */
            aspect-ratio: 1 / 1; /* บังคับสัดส่วนเป็น 1:1 จัตุรัสเสมอ */
            background: transparent; 
            overflow: hidden; 
            touch-action: none; /* ป้องกันการเลื่อนจอเมื่อถูในพื้นที่นี้ */
            color: #fff;
            margin: 0 auto; /* จัดให้อยู่กึ่งกลางหน้าจอ */
        }
        
        #canvas-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1;
        }

        #ui-layer {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none;
            z-index: 10;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
        }


        #result-text {
            font-size: 2rem;
            font-weight: bold;
            text-align: center;
            opacity: 0;
            transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform: scale(0.8);
            text-shadow: 0 4px 15px rgba(0,0,0,0.9);
            margin-top: 45%;
        }
		
		#resx{
            font-size: 1.25rem;
            text-align: center;
        }

        #result-text.show {
            opacity: 1;
            transform: scale(1);
        }

        #start-btn {
            padding: 15px 40px;
            cursor: pointer;
            pointer-events: auto;
            background: linear-gradient(135deg, #ffcc00, #d4a000);
            color: #332200;
            border: 2px solid #fff3a1;
            border-radius: 30px;
            font-weight: bold;
            font-size: 1.3rem;
            box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 -3px 5px rgba(0,0,0,0.2);
            transition: all 0.15s ease;
        }

        #start-btn:active {
            transform: translateY(4px) scale(0.96);
            box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 -2px 3px rgba(0,0,0,0.2);
        }
        
        #progress-container {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 12px; 
            background: #333;
            z-index: 100;
        }
        
        #progress-bar {
            height: 100%; background: linear-gradient(90deg, #ff4500, #ffcc00); width: 0%;
            transition: width 0.1s linear;
            box-shadow: 0 0 15px #ffcc00;
        }