/* ========================================================================== */
/* ========== HEADER               ========================================== */
/* ========================================================================== */
body {
    background: #111;
    width: 100%;
    height: 100%;
    color: #fff;
    max-width: 444px;
    margin: 0 auto;
    position: relative;
    font-family: "Kanit", sans-serif;
    padding: 0;
}

header {
    background-size: cover;
    padding-bottom: 30px;
    position: relative;
    padding: 0;
    position: relative;
    text-align: center;
    height: 280px;
    overflow: hidden;
}

header:after {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: #000;
}

header .head_title {
    position: relative;
    z-index: 1;
    margin-top: 15px;
    font-size: 20px;
}

.head_logo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}


.head_title span {
    color: #1eff00;
    font-family: "Kode Mono", monospace;
    display: inline-block;
    margin-right: 10px;
}

a {
    color: #fff;
    text-decoration: unset;
}

.main-site {
    padding: 0;
    background: #000;
    width: 100%;
}

header .logo img {
    width: 150px;
    position: relative;
    z-index: 1001;
}

.container {
    width: 100%;
    max-width: 100%;
}

.top_title {
    padding: 20px 15px;
    position: relative;
}

.top_title div {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a4f9e;
    border: 2px solid #8a4f9e;
    border-radius: 12px;
    padding: 12px 10px;
    font-weight: 600;
}

.fixed_arrow {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.fixed_arrow.show {
    opacity: 1;
    pointer-events: auto;
}

.fixed_cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.fixed_cta img {
    width: 120px;
}

#bgma {
    position: absolute;
    width: 100% !important;
    left: 0;
    top: 0;
    height: 100% !important;
}

/* ========================================================================== */
/* ========== GAME PROVIDER        ========================================== */
/* ========================================================================== */
.game_provider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    cursor: grab;
    -webkit-touch-callout: none;
    -webkit-user-select: none;  
    -moz-user-select: none;   
    -ms-user-select: none;     
    user-select: none;
    -webkit-overflow-scrolling: touch;
    padding: 15px;
    justify-content: space-between;
}

.drag.dragging {
    cursor: grabbing;
    user-select: none;
}
.drag {
    cursor: grab;
}

.game_provider::-webkit-scrollbar {
    display: none;
}

.img_shape {
    background-color: unset;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgb(67, 67, 67) 0%, rgb(6, 6, 7) 100%);
    min-width: 70px;
    max-width: 70px;
    height: 70px;
    border-radius: 396px;
    box-shadow: 0px 5px 5px 0px #000;
}

.img_shape .game_logo {
    position: absolute;
    width: 50px;
}

.game_section {
    opacity: 1;
    transition: opacity 0.8s ease;
    margin: 0;
}

.game_section .vc_column-inner {
    padding: 0;
}

.game_section h1 {
    text-align: center;
    font-weight: 400;
}

.provider-filter {
    padding-right: 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    transform: translateZ(0);
    will-change: top;
    background: #1c1c1c;
    margin: 0 10px;
    border-radius: 20px;
}

.filter-btn {
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    transition: all .3s;
	overflow: visible;
	border: 0;
}

.filter-btn.active {
    background: linear-gradient(#b84c9b 0%, #8a4f9e 100%);
    box-shadow: 0px 5px 5px 0px #000;
}

/* ========================================================================== */
/* ========== GAME                 ========================================== */
/* ========================================================================== */
.game_list {
    margin: 0;
	border-radius: 20px;
}

.game_box {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, [col-start] 1fr);
    padding: 0 20px;
    opacity: 1;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.game_box.fade-out {
    animation: fadeOut 0.2s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game_box.fade-in-up {
    animation: fadeUp 0.4s ease forwards;
}

.game_list img {
    width: 100%;
	height: 120px;
	object-fit: cover;
    border-radius: 10px;
}

.progressBox, .modal-progress {
    position: relative;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.game-score {
    font-size: 14px;
    color: #fff;
    display: block;
    text-align: center;
    margin-top: 5px;
}

.game, .modal_game {
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, border 0.5s ease-in-out;
    cursor: pointer;
    background-repeat: no-repeat;
    overflow: hidden;
}

.game_imgBox {
    position: absolute;
    overflow: hidden;
    z-index: 20;
    /*background: #000;*/
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.game_overlay {
    background: rgba(22,22,22,0.8);
    border-radius: 6px;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

.game.active .game_overlay, .modal_game.active .game_overlay {
    background: rgba(0,65,28,0.8);
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #27FE82;
    box-shadow: 0px 0px 10px 0px #27FE82;
    animation: scanUpDown 5s linear infinite;
    z-index: 200;
    opacity: 0;
}

.scan-line.animate {
    animation: scanOnce 2s linear;
    opacity: 1;
}

.game:hover .scan-line, .modal_game:hover .scan-line {
    animation: scanOnce 2s linear infinite;
    opacity: 1;
}

@keyframes scanOnce {
    0% { top: 0%; opacity: 0.3; }
    10% { opacity: 1; }
    50% { top: 100%; opacity: 1; }
    90% { opacity: 0.5; }
    100% { top: 0%; opacity: 0; }
}

.game.active, .modal_game.active {
    opacity: 1;
}

.game.max .progressBox .loading_spinner, .game.max .game_overlay, .modal_game.max .modal-progress .loading_spinner, .modal_game.max .game_overlay
.game.max2 .progressBox .loading_spinner, .game.max2 .game_overlay, .modal_game.max2 .modal-progress .loading_spinner, .modal_game.max2 .game_overlay {
    opacity: 0;
}

.game.max, .modal_game.max, .game.max2, .modal_game.max2 {
    transition: opacity 0.4s ease;
}

@keyframes zoom {
	0% {
		transform:scale(1);
	}
	100% {
		transform:scale(1.025);
	}
}

.game.max .game_imgBox img, .modal_game.max .game_imgBox img {
    animation: imgScale 4s linear infinite;
}

@keyframes imgScale {
    30% {
        transform: scale(1) rotate(0)
    }

    36% {
        transform: scale(1.19) rotate(5deg)
    }

    41% {
        transform: scale(1.14) rotate(5deg)
    }

    46% {
        transform: scale(1.195) rotate(5deg)
    }

    50%,80% {
        transform: scale(1.19) rotate(5deg)
    }

    86% {
        transform: scale(1) rotate(0)
    }

    91% {
        transform: scale(1.05) rotate(0)
    }

    96% {
        transform: scale(.99) rotate(0)
    }

    to {
        transform: scale(1) rotate(0)
    }
}

.progress-container { 
    width: 100%; 
    border-radius: 3px; 
    text-align: center;
}

.progress_barBox {
    position: relative;
    width: 90%;
    margin: auto;
    height: 7px;
    border-radius: 50px;
    background: #eee;
    border: 2px solid transparent;
    border-color: var(--spinner-color, #fec227b0);
}

.progress-bar { 
    height: 100%; 
    width: 100%;
    border-radius: 50px; 
    transition: width 0.5s linear; 
    position: relative; 
    background: #34c759;
    margin: auto;
    position: absolute;
    border-radius: 50px;
    top: 0;
    left: 0;
    bottom: 0;
}

.total-score, [data-stat] {
    transition: color 0.3s ease;
    font-weight: 400;
    text-shadow: 0px 0px 5px #000;
    z-index: 100;
    font-size: 13px;
    font-family: "Kode Mono", monospace;
}

.game.max .total-score, .modal_game.max .total-score, .game.max2 .total-score, .modal_game.max2 .total-score {
    width: 100%;
    text-align: center;
    border-radius: 30px;
    margin: auto;
}

.game.max .progressBox, .modal_game.max .modal-progress, .game.max2 .progressBox, .modal_game.max2 .modal-progress {
    align-items: end;
    bottom: 25px;
}

.game.max, .modal_game.max {
    background-image: unset;
}

.shine {
    position: absolute;
    /*top: 0;*/
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 1;
    transform: scale(1.8) rotate(0deg);
    opacity: 0;
    animation: spin 5s linear infinite;
}

@keyframes spin {
    0% {
        transform: scale(1.8) rotate(0deg);
    }
    100% {
        transform: scale(1.8) rotate(360deg);
    }
}

.game.max .shine, .modal_game.max .shine, .modal_game.max2 .shine {
    transition: opacity .3s ease;
    opacity: 0.7;
}

.game_imgBlur {
    position: relative;
    border-radius: 10px;
}

.game.active .game_imgBox {
    background: unset;
    width: 90%;
    height: 90%;
    margin: auto !important;
    border-radius: 10px;
}

.game.active .game_imgBox img {
    height: 100%;
}

.game_imgBlur .game_imgboxBlur {
    opacity: 0.5;
    filter: blur(0.5px);
}

.top10_box .gameTop {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    margin: auto;
    width: 100%;
    right: 0;
    gap: 15px;
    display: grid;
    grid-template-columns: repeat(2, [col-start] 1fr);
    padding: 5px 15px;
}

.top10_box {
    /*padding: 0 15px;*/
    padding: 0 !important;
}

.top10_box .game {
    /*margin-bottom: 5px;*/
}

.top10_box .modal-stats {
    margin-top: 0;
}

.top10_box .gameTop img {
    width: 100%;
    height: 100%;
}

.top10_box .gameTop .game_imgBlur {
    width: 85%;
    height: 155px;
    margin: auto;
    margin-right: 0;
    position: relative;
}

.game_list .top10_box img {
    object-fit: contain;
    opacity: 1 !important;
    transition: all .3s;
    filter: unset !important;
}

.top10_box .gameTop:hover img {
    transform: scale(1.05);
}

.top10_box .modal-stats .modal_statTitle, .top10_box [data-stat] {
    font-size: 13px;
}

.game[class*="rank-"] .game_imgBlur::before {
    position: absolute;
    top: -50px;
    left: -25px;
    font-size: 110px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
    pointer-events: none;
}

.game.rank-1 .game_imgBlur::before { content: "1"; }
.game.rank-2 .game_imgBlur::before { content: "2"; }
.game.rank-3 .game_imgBlur::before { content: "3"; }
.game.rank-4 .game_imgBlur::before { content: "4"; }
.game.rank-5 .game_imgBlur::before { content: "5"; }
.game.rank-6 .game_imgBlur::before { content: "6"; }
.game.rank-7 .game_imgBlur::before { content: "7"; }
.game.rank-8 .game_imgBlur::before { content: "8"; }
.game.rank-9 .game_imgBlur::before { content: "9"; }
.game.rank-10 .game_imgBlur::before { content: "10"; left: -40px; }

.tab {
    overflow: hidden;
    display: flex;
    gap: 10px;
    border-top: 2px solid #494949;
    padding: 20px 15px;
}

.tab button {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 9px 10px;
    transition: 0.3s;
    flex: 1;
    border-radius: 40px;
    color: #fff;
    position: relative;
    background: unset;
    font-size: 20px;
    font-weight: 600;
}

.tab button.active {
    background: linear-gradient(#b84c9b 0%, #8a4f9e 100%);
}

.tabcontent {
    display: none;
    border-top: none;
}

.tab .tablinks::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2px 2px 2.5px;
    border-radius: 25px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: linear-gradient(#b84c9b 0%, #8a4f9e 100%);
}

.coming {
    font-weight: 400;
    font-size: 36px;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-family: "Kode Mono", monospace;
}

video {
    width: 100%;
    display: block;
}

#introWrap {
    position: fixed;
    width: 100%;
    height: 100vh;
    margin: auto;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 99999;
    overflow: hidden;
    inset: 0;
    background: #111;
}

#introWrap video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.fadeOut { 
    opacity: 0; 
    transition: opacity .6s ease; 
}

#gameRoot {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#gameRoot.fade-in {
    opacity: 1;
}

.introVideo2 {
    display: none;
}

#headerVid::-webkit-media-controls, #headerVid::-webkit-media-controls-start-playback-button { 
    display: none !important;
}

.poster {
    object-fit: cover
}


/* ========================================================================== */
/* ========== MODAL                ========================================== */
/* ========================================================================== */
.modal_game {
    overflow: visible;
    cursor: unset;
}

.close {
    position: absolute;
    font-size: 28px;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: #707070;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999;
}

.close:hover {
    color: #a1a1a1;
}

.modal-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 30px;
}

.modal-progress {
    width: 100%;
}

#modalImage {
    width: 200px;
    border-radius: 10px;
    transform: unset !important;
}

.modal { 
    position: fixed; 
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0; 
    border-radius: 15px 15px 0 0; 
    z-index: 1001;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100vh;
    margin: auto;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    display: flex;
    overflow: hidden;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-content { 
    text-align: center; 
    background: #303030; 
    margin: auto !important;
    align-items: center;
    padding: 0px 30px 40px;
    position: relative;
    gap: 10px;
    border-radius: 30px 30px 0 0;
    max-width: 444px;
    width: 100%;
    max-height: 90vh;
    margin-bottom: 0 !important;
    overflow: visible;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-score { 
    margin-top: 10px; 
}

.modal-stats .modal_statTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
}

.modal_title {
    font-size: 26px;
    color: #27FE82;
    font-weight: 600;
}

.modal_time {
    font-size: 20px;
}

.modal_time span {
    color: #27FE82;
}

.modal .game_imgBox {
    position: relative;
    margin-top: -100px;
    border-radius: 10px;
}

.modal [data-stat] {
    text-shadow: unset;
}

.stat-progress-barBox {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 4px;
    margin-top: 2px;
    overflow: hidden;
}

.stat-progress-bar {
    height: 100%;
    width: 0%;
    background: #ff3b30;
    transition: width 0.3s ease, background 0.3s ease;
}

/* ========================================================================== */
/* ========== CTA BTN              ========================================== */
/* ========================================================================== */
.cta_btn {
    margin: 40px 30px 30px;
    position: relative;
}

.cta_btn div {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #FFD25D;
}

.cta_btn a {
    display: block;
    animation: glowing 1.5s ease-in-out infinite;
}

@keyframes glowing {
    0% {
        filter: drop-shadow(0 0 2px #fec227b0) drop-shadow(0 0 5px #fec227b0) drop-shadow(0 0 5px #fec227b0);
    }
    50% {
        filter: drop-shadow(0 0 3px #fec227b0) drop-shadow(0 0 5px #fec227b0) drop-shadow(0 0 20px #fec227b0);
    }
    100% {
        filter: drop-shadow(0 0 2px #fec227b0) drop-shadow(0 0 5px #fec227b0) drop-shadow(0 0 5px #fec227b0);
    }
}

.modal .cta_btn {
    margin-top: 25px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cta_btn img {
    height: 53px;
}

.top10_box .game a {
    display: block;
}

.mtma {
    margin-top: 5px;
}

.safari .filter-btn svg {
    min-width: 74px;
    min-height: 74px;
}

.preload {
    position: fixed;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    z-index: 1201;
    background: #000000cc;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.preload span {
    font-size: 12px;
    margin-top: 10px;
    display: block;
}

.loader__circle {
    height: 45px;
    width: 45px;
}

.loader__spinner .loader__circle svg.gradient-circle {
    z-index: 1;
    animation: rotate360 2s linear infinite;
    transition: 0.3s;
    stroke-width: 3px;
    fill: transparent;
    stroke: #fff;
}

.loader__spinner .loader__circle svg.gradient-circle circle {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
    stroke: #fff
}

@keyframes rotate360 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dashoffset: -124;
    }
}

#native-install-btn {
  font-size: 0; /* hide text */
  position: relative;
}

#native-install-btn::after {
  content: "ติดตั้งแอปเลย"; /* 👈 new text */
}

/* ========================================================================== */
/* ========== FOOTER               ========================================== */
/* ========================================================================== */
footer {
    font-size: 13px;
    padding: 15px 10px;
    padding-top: 50px;
    background: #000;
}

/* ========================================================================== */
/* ========== MEDIA                ========================================== */
/* ========================================================================== */
@media screen and (max-width: 767px) {
    .fixed_arrow {
        display: none;
    }
    
    .fixed_cta {
        bottom: 120px;
    }
    
    .fixed_cta img {
        width: 100px;
    }
}

@media (max-width: 576px) {
    .introVideo {
        display: none;
    }
    
    .introVideo2 {
        display: block;
    }
}

@media screen and (max-width: 444px) {
    body {
        max-width: 100%;
    }
    
    .fixed_cta img {
        width: 80px;
    }
}

@media screen and (max-width: 420px) {
    .top10_box .modal-stats .modal_statTitle, .top10_box [data-stat] {
        font-size: 11px;
    }
    
    .top10_box .gameTop .game_imgBlur {
        width: 90%;
        height: 140px;
    }
    
    .top10_box .stat-progress-barBox {
        height: 4px;
    }
    
    .top_title, .top10_box, .game_box {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .top10_box .gameTop {
        gap: 10px
    }
    
    .top_title div {
        font-size: 20px;
    }
    
    .tab button {
        font-size: 18px;
    }
    
    .img_shape {
        min-width: 65px;
        max-width: 65px;
        height: 65px;
    }
    
    .game[class*="rank-"] .game_imgBlur::before {
        top: -50px;
        left: -25px;
    }
    
    .game.rank-10 .game_imgBlur::before {
        left: -40px; 
    }
    
    header {
        height: 250px;
    }
}

@media screen and (max-width: 360px) {
    .top10_box .gameTop .game_imgBlur {
        height: 110px;
    }
    
    .top10_box .stat-progress-barBox {
        height: 3px;
    }
    
    .top_title, .top10_box, .game_box {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .top_title div {
        font-size: 22px;
    }
    
    .top10_box .modal-stats {
        gap: 3px;
    }
    
    .mtma {
        margin-top: 3px;
    }
    
    .game_box {
        gap: 5px
    }
    
    .game_list img {
        height: 100px;
    }
    
    .total-score, [data-stat] {
        font-size: 12px;
    }
    
    .modal .game_imgBox {
        margin-top: -80px;
    }
    
    #modalImage {
        width: 150px;
    }
    
    .modal-content {
        padding: 0 20px 30px;
    }
    
    .img_shape {
        min-width: 60px;
        max-width: 60px;
        height: 60px;
    }
    
    .top_title div {
        font-size: 18px;
    }
    
    .tab button {
        font-size: 16px;
    }
    
    .top10_box .gameTop .game_imgBlur {
        /*width: 80%;*/
    }
    
    .game[class*="rank-"] .game_imgBlur::before {
        top: -40px;
        left: -15px;
        font-size: 90px;
    }
    
    .game.rank-10 .game_imgBlur::before {
        left: -30px; 
    }
}
