:root {
    --bg_color: radial-gradient(1200px 700px at 80% 10%, #1e2d68 0%, #121833 40%, #0b1020 100%) no-repeat fixed
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    margin: 0;
    font-family: "Oswald", serif
}

html, body, .container, .frame, .scratch-container, canvas, #prize,
button, .game_btn_item, .popup, .popup * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.scratch-container, canvas#scratch-card {
    touch-action: none;
}

.moon {
    position: fixed;
    width: 30%;
    max-width: 160px;
    top: 5%;
    right: 10%;
    filter: drop-shadow(0px 0px 20px rgb(236, 63, 50))
}

.row {
    display: flex;
    align-items: center
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center
}

.grid {
    display: grid
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none
}

input {
    border: none
}

input:focus {
    outline: none
}

a {
    text-decoration: none
}

body {
    display: flex;
    padding: 20px;
    min-height: 100vh;
    overflow: hidden;
    background-image: url(../Images/bg2.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top center
}

h1 {
    color: #fff;
    text-align: center
}

h2 {
    color: #fff;
    text-align: center
}

.container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    justify-content: center;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 1
}

.container .game_bg {
    width: 100%;
    pointer-events: none;
    max-height: 80vh
}

.container .game_bg img {
    pointer-events: none;
    width: 100%;
    height: 100%;
    max-height: 80vh
}

.container .game_title {
    width: 280px;
    position: absolute;
    top: 15%
}

.container .game_title img {
    width: 100%
}

.container .game_info {
    position: absolute;
    top: 51%
}

.container .game_info span {
    font-size: 16px;
    color: #ffeb80;
    text-shadow: 0px 1px 5px #000
}

.container .frame {
    width: 100%;
    padding: 30px 20px;
    position: absolute
}

.container .frame .frame_pic {
    top: 28%;
    width: 340px;
    height: 187px;
    position: absolute;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    pointer-events: none
}

.container .frame .design {
    top: 28%;
    width: 340px;
    height: 187px;
    position: absolute;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    pointer-events: none
}

.container .scratch-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    overflow: hidden;
    margin-bottom: 20px;
    z-index: 1;
    top: 58%
}

.container .scratch-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair
}

.container .scratch-container .hidden-prize {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #fff;
    background-color: #ff9800;
    z-index: -1;
    text-transform: uppercase
}

.container .game_btn_con {
    width: 100%;
    padding: 0 5vmin;
    justify-content: space-between;
    position: absolute;
    bottom: 5%
}

.container .game_btn_con .game_btn_item {
    width: 50px;
    height: 50px;
    background: linear-gradient(to bottom, #ff9800, #c07403);
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: .3s
}

.container .game_btn_con .game_btn_item i {
    font-size: 22px;
    color: #fff
}

.container .game_btn_con .game_btn_item:hover {
    transform: translateY(-5px)
}

.container .game_btn_con .footer_avx_logo {
    width: 150px
}

.container .game_btn_con .footer_avx_logo img {
    width: 100%
}

.container .tnc_btn {
    position: absolute;
    top: 3%;
    right: 5%;
    cursor: pointer
}

.container .tnc_btn i {
    font-size: 18px;
    color: #cacaca
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    justify-content: center;
    align-items: center;
    z-index: 1000
}

.popup .popup-content {
    width: 100%;
    max-width: 400px;
    background: rgba(37, 37, 37, .9725490196);
    padding: 40px 20px;
    border-radius: 10px;
    border: 2px solid #ff9800;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 111
}

.popup .popup-content h2 {
    font-size: 24px;
    margin: 0;
    color: #4caf50
}

.popup .popup-content p {
    font-size: 18px;
    color: #fff;
    margin: 10px 0 20px
}

.popup .popup-content button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff9800;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: .3s;
    cursor: pointer
}

.popup .popup-content button:hover {
    background-color: #c07403
}

.popup .fire_work_1 {
    width: 250px;
    position: absolute;
    top: 65%;
    left: 65%;
    transform: translate(-65%, -65%)
}

.popup .fire_work_1 img {
    width: 100%
}

.popup .fire_work_2 {
    width: 350px;
    position: absolute;
    top: 35%;
    left: 25%;
    transform: translate(-25%, -35%)
}

.popup .fire_work_2 img {
    width: 100%
}

.popup .fire_work_3 {
    width: 200px;
    position: absolute;
    top: 25%;
    left: 45%
}

.popup .fire_work_3 img {
    width: 100%
}

.tnc_pop {
    display: none;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999
}

.tnc_pop .tnc_pop_window {
    width: 90%;
    max-width: 400px;
    background: #252525;
    padding: 40px 20px;
    border-radius: 10px;
    border: 2px solid #ff9800;
    text-align: center;
    gap: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.tnc_pop .tnc_pop_window h1 {
    font-size: 24px
}

.tnc_pop .tnc_pop_window .tnc_pop_body {
    width: 100%
}

.tnc_pop .tnc_pop_window .tnc_pop_body ol {
    width: 100%
}

.tnc_pop .tnc_pop_window .tnc_pop_body ol li {
    font-size: 14px;
    color: gray;
    text-align: left
}

.tnc_pop .tnc_pop_window .tnc_close {
    position: absolute;
    top: 3%;
    right: 5%;
    cursor: pointer
}

.tnc_pop .tnc_pop_window .tnc_close i {
    font-size: 20px;
    color: #ff9800
}

.video_bg {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: 0
}

@keyframes floatUp {
    from {
        transform: translateY(110vh) translateX(0) rotate(0)
    }
    to {
        transform: translateY(-20vh) translateX(-20px) rotate(5deg)
    }
}

.halloween-ghost {
    position: absolute;
    background: hsla(0, 0%, 100%, .9);
    border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
    box-shadow: 0 0 15px 3px hsla(0, 0%, 100%, .5);
    animation: floatUp linear infinite
}

.halloween-ghost::before, .halloween-ghost::after {
    content: "";
    position: absolute;
    width: 25%;
    height: 25%;
    background: rgba(0, 0, 0, .4);
    border-radius: 50%;
    top: 30%
}

.halloween-ghost::before {
    left: 20%
}

.halloween-ghost::after {
    right: 20%
}

.halloween-bat {
    position: absolute;
    background: #1a1a1a;
    border-radius: 50%;
    animation: floatUp linear infinite
}

.halloween-bat::before, .halloween-bat::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 50%;
    top: -30%
}

.halloween-bat::before {
    left: -35%;
    transform: rotate(-25deg)
}

.halloween-bat::after {
    right: -35%;
    transform: rotate(25deg)
}

.halloween-pumpkin {
    position: absolute;
    background: linear-gradient(#ff8c00, #ff4500);
    border-radius: 40% 40% 45% 45%;
    box-shadow: 0 0 12px 3px rgba(255, 140, 0, .6666666667);
    animation: floatUp linear infinite
}

.halloween-pumpkin::before, .halloween-pumpkin::after {
    content: "";
    position: absolute;
    width: 20%;
    height: 10%;
    background: #1a0b2e;
    border-radius: 40%;
    top: 20%
}

.halloween-pumpkin::before {
    left: 25%;
    transform: rotate(-10deg)
}

.halloween-pumpkin::after {
    right: 25%;
    transform: rotate(10deg)
}

.halloween-hat {
    position: absolute;
    background: #2d2d2d;
    clip-path: polygon(0% 100%, 100% 100%, 85% 30%, 65% 30%, 50% 0%, 35% 30%, 15% 30%);
    box-shadow: 0 0 10px 2px rgba(255, 0, 255, .3333333333);
    animation: floatUp linear infinite
}