/* ==========================
   HUAYDUNG PREMIUM BACKGROUND
   ========================== */

html{
    scroll-behavior:smooth;
}

/* ===========================
   GOLD PREMIUM BACKGROUND
=========================== */

body{

    margin:0;
    overflow-x:hidden;

    background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.35), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(255,235,120,.45), transparent 20%),
    radial-gradient(circle at 50% 60%, rgba(255,215,0,.35), transparent 35%),
    radial-gradient(circle at 20% 90%, rgba(255,180,0,.30), transparent 18%),

    linear-gradient(
        135deg,
        #fff8d5 0%,
        #ffe58a 15%,
        #ffd54a 30%,
        #ffbf00 50%,
        #ffd84f 70%,
        #fff3b2 100%
    );

    background-attachment:fixed;

    position:relative;

}


/* ลายเพชร */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);

    background-size:50px 50px;

    opacity:.35;

    pointer-events:none;

}


/* แสงทองวิ่ง */

body::after{

    content:"";

    position:fixed;

    inset:-40%;

    background:

    radial-gradient(circle,
        rgba(255,255,255,.45),
        rgba(255,240,120,.20),
        transparent 70%);

    filter:blur(100px);

    animation:goldGlow 12s linear infinite alternate;

    pointer-events:none;

}


@keyframes goldGlow{

0%{

transform:translate(-10%,-8%) scale(1);

}

50%{

transform:translate(10%,5%) scale(1.25);

}

100%{

transform:translate(-5%,10%) scale(1.1);

}

}


/* ลาย Grid */
body::before{
    content:"";
    position:fixed;
    inset:0;

    background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);

    background-size:60px 60px;

    opacity:.45;

    pointer-events:none;
}


/* แสงวิ่งทั่วหน้า */
body::after{
    content:"";
    position:fixed;
    inset:-40%;

    background:
    radial-gradient(circle,
    rgba(255,255,255,.18),
    transparent 65%);

    filter:blur(120px);

    animation:glowMove 12s linear infinite alternate;

    pointer-events:none;
}

@keyframes glowMove{

0%{
transform:translate(-8%,-6%) scale(1);
}

50%{
transform:translate(8%,4%) scale(1.2);
}

100%{
transform:translate(-5%,8%) scale(1.1);
}

}


/* กล่องเนื้อหา */
.container{
    width:min(1200px,92%);
    margin:auto;
}


/* รูป Banner */
.banner{
    position:relative;
    overflow:hidden;
    border-radius:24px;

    box-shadow:
    0 0 40px rgba(255,0,0,.45),
    0 0 100px rgba(255,150,0,.25);
}


/* Glow หลัง Banner */
.banner::before{
    content:"";
    position:absolute;
    inset:-120px;

    background:
    radial-gradient(circle,
    rgba(255,70,70,.75),
    rgba(255,0,0,.35),
    transparent 70%);

    filter:blur(90px);

    z-index:-1;
}


@keyframes bgMove{
0%{background-position:left;}
100%{background-position:right;}
}

.container {
    max-width: 1200px;
    margin:auto;
}

.banner img {
    width:100%;
    display:block;
    margin-top: 3px;
}

.menu {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    padding:20px;
}

.menu a img {
    width:100%;
    border-radius:12px;
    display:block;
    transition:0.3s;
}

.menu a img:hover {
    transform:scale(1.03);
}

@media(max-width:600px){
    .menu {
        grid-template-columns:1fr;
    }
}

.line-btn{

    display:flex;
    align-items:center;

    gap:20px;

    width:100%;
    max-width:640px;

    height:88px;

    margin:30px auto;

    padding:0 26px;

    background:linear-gradient(135deg,#12b600,#12b600);

    border-radius:24px;

    text-decoration:none;

    position:relative;

    overflow:hidden;

    box-sizing:border-box;

}

.line-btn{
    position:relative;
    overflow:hidden;
}

/* แสงวิ่งเส้นใหญ่ */
.line-btn::before{

    content:"";

    position:absolute;

    top:-80%;
    left:-180%;

    width:90px;
    height:280%;

    background:linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.95),
        rgba(255,255,255,0)
    );

    transform:rotate(25deg);

    animation:shine 2.2s linear infinite;

    z-index:3;

    opacity:.9;
}

/* Glow ทั้งปุ่ม */

.line-btn::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:24px;

    box-shadow:
        inset 0 0 30px rgba(255,255,255,.25),
        0 0 35px rgba(0,255,120,.45);

    pointer-events:none;

    z-index:2;
}

.line-icon,
.line-text{
    position:relative;
    z-index:5;
}

@keyframes shine{

    0%{
        left:-180%;
    }

    100%{
        left:220%;
    }

}


/* โลโก้ */

.line-icon{

    width:64px;
    height:64px;

    min-width:64px;

    background:#fff;

    border-radius:18px;

    display:flex;
    justify-content:center;
    align-items:center;

}

.line-icon img{

    width:40px;
}


/* ข้อความ */

.line-text{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

}

.sub{

    font-size:18px;

    color:#f7f7f7;

    font-weight:500;

    line-height:1.2;

}

.title{

    font-size:clamp(26px,4vw,44px);

    font-weight:800;

    color:#fff;

    line-height:1.1;

    white-space:nowrap;

}

.register-btn{

    display:flex;
    align-items:center;

    gap:20px;

    width:100%;
    max-width:640px;

    height:88px;

    margin:30px auto;

    padding:0 26px;

    background:linear-gradient(
        135deg,
        #ff1f1f 0%,
        #ff3d3d 45%,
        #ff9800 100%
    );

    border-radius:24px;

    text-decoration:none;

    position:relative;

    overflow:hidden;

    box-sizing:border-box;

    transition:.35s;

    box-shadow:
        0 12px 35px rgba(255,40,40,.45),
        inset 0 2px 0 rgba(255,255,255,.25);

}


/* แสงวิ่ง */

.register-btn::before{

    content:"";

    position:absolute;

    top:-80%;
    left:-180%;

    width:90px;
    height:280%;

    background:linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.95),
        rgba(255,255,255,0)
    );

    transform:rotate(25deg);

    animation:registerShine 2.4s linear infinite;

    z-index:3;

}


/* Glow */

.register-btn::after{

    content:"";

    position:absolute;

    inset:0;

    border-radius:24px;

    box-shadow:
        inset 0 0 30px rgba(255,255,255,.20),
        0 0 35px rgba(255,80,0,.45);

    pointer-events:none;

}


/* Hover */

.register-btn:hover{

    transform:translateY(-4px);

    box-shadow:
        0 18px 45px rgba(255,60,60,.55),
        0 0 70px rgba(255,150,0,.35);

}


/* Icon */

.register-icon{

    width:64px;
    height:64px;

    min-width:64px;

    background:#fff;

    border-radius:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:34px;

    color:#ff2a2a;

    position:relative;

    z-index:5;

}


/* Text */

.register-text{

    position:relative;

    z-index:5;

    display:flex;

    flex-direction:column;

}

.register-text .sub{

    color:#fff4d8;

    font-size:18px;

    line-height:1.2;

    font-weight:500;

}

.register-text .title{

    color:#fff;

    font-size:clamp(26px,4vw,42px);

    font-weight:800;

    line-height:1.1;

}


/* Animation */

@keyframes registerShine{

    0%{

        left:-180%;

    }

    100%{

        left:220%;

    }

}