@import "fonts.css";
@font-face {
    font-family: 'Buttershine Serif';
    src: url('ButtershineSerif.woff2') format('woff2'),
        url('ButtershineSerif.woff') format('woff'),
        url('ButtershineSerif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kenyan Coffee Rg';
    src: url('KenyanCoffeeRg-Regular.woff2') format('woff2'),
        url('KenyanCoffeeRg-Regular.woff') format('woff'),
        url('KenyanCoffeeRg-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}
html, body{
/*    background: url(../img/teaser/ramadhan202/bg.jpg) repeat-x center top;*/
    background: #fff;
    background-size: cover;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 1.5em;
	margin:0;
    padding:0;
    min-height:100%;
/*	text-align: center;*/
	position: relative;
	z-index: 1;
   overflow-x: hidden !important;
  scroll-behavior: smooth;
}
.desktop{
	display: block;
}
.mobile{
	display: none!important;
}
@media(max-width:1024px){
	.desktop{
		display: none;
	}
	.mobile{
		display: block!important;
	}
}



/*================================== SECTION 1 ==============================*/
.ggh-section1-anniv {  
    position: relative;
    
}

.ggh-section1-anniv-bg {
    filter: brightness(1); /* mulai normal */
    animation: brightnessPulse 3s ease-in-out infinite; /* 3 detik, halus */
}

@keyframes brightnessPulse {
    0%, 100% {
        filter: brightness(1); /* normal */
    }
    50% {
        filter: brightness(1.3); /* paling terang */
    }
}


.ggh-section1-anniv-content{
	position: absolute;
	top: 0;
	z-index: 2;
	width: 100%;
}
.ggh-section1-anniv canvas#confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* di belakang konten */
    pointer-events: none; /* agar tidak mengganggu klik */
}

/* @keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
    100% {
        transform: translateY(0);
    }
} */
@keyframes floatIdle {
    0%   { transform: translateY(0); }
    25%  { transform: translateY(-18px); }
    50%  { transform: translateY(0); }
    75%  { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

.anniv-char-wrap img{
    width: 16vw;
    max-width: 100%;
    margin-left: -52px;
    margin-right: -52px;

    animation-name: floatIdle;
    animation-duration: 4s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.anniv-char-wrap{
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: flex-end;   
    gap: 0;       
    z-index: 1;           
}

.ggh-section1-anniv-char-left{
    max-width: 394px;
}

.ggh-section1-anniv-char{
    max-width: 365px;
}

.ggh-section1-anniv-char-right{
    max-width: 458px;
}
.ggh-section1-anniv-char-left{
    animation-duration: 3.4s;
    animation-delay: 0s;
}

.ggh-section1-anniv-char{
    animation-duration: 2.9s;
    animation-delay: 0.7s;
}

.ggh-section1-anniv-char-right{
    animation-duration: 4.1s;
    animation-delay: 1.3s;
}

/* @keyframes floatUpDown {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-18px) rotate(0.8deg); }
    100% { transform: translateY(0) rotate(0deg); }
} */

.anniv-wrapper{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;       
    margin-top: -21vw; 
    z-index: 2;
}

.ggh-section1-anniv-logo{
    max-width: 393px;
    width: 17vw;
}
.ggh-section1-anniv-title{
    max-width: 809px;
    width: 33vw;
}

.ggh-section1-anniv-title2{
    max-width: 1059px;
    width: 48vw;
}

@keyframes titleEnter {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
.ggh-section1-anniv-title,
.ggh-section1-anniv-title2 {
    opacity: 0;
}

/* AKTIF saat masuk viewport */
.ggh-section1-anniv-title.animate {
    animation:
        titleEnter 0.9s cubic-bezier(.22,1.1,.36,1) forwards,
        titleIdle 4s ease-in-out infinite;
    animation-delay: 0s, 1s;
}

.ggh-section1-anniv-title2.animate {
    animation:
        titleEnter 0.9s cubic-bezier(.22,1.1,.36,1) forwards,
        titleIdle 5s ease-in-out infinite;
    animation-delay: 0.25s, 1.4s;
}

@keyframes titleEnter {
    0% {
        opacity: 0;
        transform: translateY(-60px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleIdle {
    0% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(255,200,80,0));
    }
    50% {
        transform: translateY(-6px) scale(1.015);
        filter: drop-shadow(0 0 16px rgba(255,200,80,0.6));
    }
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(255,200,80,0));
    }
}
.button-container {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.button-container a img {
    transition: transform 0.3s ease;
    cursor: pointer;
    max-width: 207px; 
    width: 100%;
}

.button-container a img:hover {
    transform: scale(1.1);
}
.ggh-section1-anniv-cloud{
    position: relative;
    margin-top: -22vw;
    width: 100%;
    pointer-events: none;
    z-index: 1;
}
@media (max-width: 1026px){
    .anniv-wrapper {
        margin-top: -23vw;
        z-index: 2;
    }
}
@media (max-width: 768px){
    .anniv-char-wrap img {
        width: 52%;
    }
    .ggh-section1-anniv-logo {
        width: 50%;
    }
    .ggh-section1-anniv-title {
        width: 71%;
    }
    .ggh-section1-anniv-title2 {
        width: 100%;
    }
       .button-container a {
        flex: 1 1 45%; 
        display: flex;
        justify-content: center;
    }
    .button-container a img {
        transition: transform 0.3s ease;
        cursor: pointer;
        max-width: 207px;
        width: 87%;
    }
    .button-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
    }
    .button-container a:last-child {
        flex: 1 1 100%; 
    }
    .anniv-wrapper {
        margin-top: -61vw;
        z-index: 2;
    }
}

/*================================ END SECTION 1 ==============================*/

/*================================ SECTION 2 ==============================*/
.ggh-section2-anniv {
    position: relative;
    overflow: hidden;
}
.ggh-section2-anniv-bg {
    filter: brightness(1); /* mulai normal */
    animation: brightnessPulse 3s ease-in-out infinite; /* 3 detik, halus */
}

@keyframes brightnessPulse {
    0%, 100% {
        filter: brightness(1); /* normal */
    }
    50% {
        filter: brightness(1.3); /* paling terang */
    }
}
.ggh-section2-anniv-content {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 3; /* konten PALING ATAS */
}

.title-clip {
    display: inline-block;
    overflow: hidden;
}

.ggh-section2-anniv-title {
    max-width: 709px;
    width: 33vw;
    margin-top: 5vw;
    position: relative;
    z-index: 2;

    /* awal: lebih besar dan di bawah */
    opacity: 0;
    transform: scale(1.5) translateY(50px);
    transition: all 1s ease-out;
}

/* class aktif saat masuk viewport */
.ggh-section2-anniv-title.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}


@keyframes revealTitle {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}
.ggh-section2-anniv-shine {
    max-width: 1589px;
    width: 84vw;
    margin-top: -20vw;
    margin-bottom: -7vw;
    position: relative;
    z-index: 1; 

    opacity: 0.45;
    mix-blend-mode: screen; /* KUNCI UTAMA */
    filter: brightness(1.3);
    
    animation: ambientLightning 10s infinite ease-in-out;
    pointer-events: none;
    will-change: opacity, filter, transform;
}


@keyframes ambientLightning {
    0% {
        opacity: 0.25;
        filter: brightness(1.1);
        transform: translate(0,0);
    }

    40% {
        opacity: 0.45;
        filter: brightness(1.4);
    }

    /* ⚡ petir lembut */
    47% {
        opacity: 0.8;
        filter: brightness(2.2);
        transform: translate(-0.3px, 0.3px);
    }

    52% {
        opacity: 0.4;
        filter: brightness(1.3);
        transform: translate(0.2px, -0.2px);
    }

    100% {
        opacity: 0.25;
        filter: brightness(1.1);
        transform: translate(0,0);
    }
}
.contents {
    position: absolute;
    padding-top: 0;
    margin: auto;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    touch-action: none;
}

.contents .perspective {
    width: 100%;
    perspective: 2000px !important;
}

.contents .perspective .\33 d-container {
    transform-style: preserve-3d;
    transition: transform .05s linear;
}
/* .wrapper {
    position: relative;
    width: fit-content; 
    margin: 0 auto;     
} */
.rewards,
.title-load,
.btn-playnow,
.frame-img,
.frameslide3,
.new-weapon,
.itemweapon {
    pointer-events: none; 
    background: none !important; 
    -webkit-user-select: none; 
    -webkit-tap-highlight-color: transparent; 
}
.d3-container {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1200px; /* WAJIB supaya efek Z kelihatan */
}


/* Rewards image */
.ggh-section2-anniv-rewards {
    max-width: 688px;
    width: 30vw;
    display: block;
    margin: 0 auto;
    z-index: 1;
    margin-top: 8vw;

    transform: translateZ(-50px); /* masuk ke belakang */
}


/* PLAY NOW */
.ggh-section2-anniv-btn-playnow {
    position: absolute;
    left: 54%;
    top: 70%;
    max-width: 289px;
    width: 20vw;
    z-index: 5;
    pointer-events: auto;

    transform: translateZ(200px); /* lebih jauh dari rewards */
    transition: transform 0.3s ease, filter 0.3s ease;
    
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
}

/* hover effect */
.ggh-section2-anniv-btn-playnow:hover {
    transform: translateZ(0) scale(1.1); /* ngezoom 10% */
}

.ggh-section2-anniv-des {
    max-width: 1573px;
    width: 86vw;
    position: relative;
    z-index: 2;

    /* awal: lebih besar dan di atas */
    opacity: 0;
    transform: scale(1.5) translateY(-50px);
    transition: all 1s ease-out;
}

/* class aktif saat masuk viewport */
.ggh-section2-anniv-des.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.ggh-section1-anniv-cloud2 {
    position: absolute;
    top: 80vw;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 1.8;
}
@media (min-width: 1921px){
    .ggh-section2-anniv-des {
        margin-top: 12vw;
    }
    .ggh-section2-anniv-rewards {
        margin-top: 13vw;
    }
}
@media (max-width: 768px){
    .ggh-section2-anniv-title {
        width: 70%;
        margin-top: 16%;
    }
    .ggh-section2-anniv-rewards {
        width: 82%;
        margin-top: 21%;
    }
    .ggh-section2-anniv-btn-playnow {
        width: 34%;
    }
    .ggh-section2-anniv-des {
        width: 100%;
        margin-top: 57%;
    }
    .ggh-section1-anniv-cloud {
        margin-top: -18%;
    }
    .ggh-section1-anniv-cloud2 {
        top: 54%;
    }
}
/*================================ END SECTION 2 ==============================*/

/*================================ SECTION 3 ==============================*/
.ggh-section3-anniv{  
	position: relative;
}
.ggh-section3-anniv-bg {
    filter: brightness(1); /* mulai normal */
    animation: brightnessPulse 3s ease-in-out infinite; /* 3 detik, halus */
}

@keyframes brightnessPulse {
    0%, 100% {
        filter: brightness(1); /* normal */
    }
    50% {
        filter: brightness(1.3); /* paling terang */
    }
}
.ggh-section3-anniv-content{
	position: absolute;
	top: 0;
	z-index: 2;
	width: 100%;
}
.title-clip {
    display: inline-block;
    overflow: hidden;
}

.ggh-section3-anniv-title {
    max-width: 709px;
    width: 33vw;
    margin-top: 5vw;
    position: relative;
    z-index: 2;
}

@keyframes revealTitle {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}
.spin-item.active {
  z-index: 10;
}

.carousel{
  perspective:1200px;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top: -4vw;
}

.spinner{
  position:relative;
  /* width:27vw; */
  width: 21vw;
  max-width:1600px;
  aspect-ratio:16/9;
  transform-style:preserve-3d;
  transition:transform 1s ease;
}

.spinner img {
    position: absolute;
    left: 50%;
    top: 92%;
    width: 26vw;
    max-width: 1600px;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

/* .spin-item {
  position: absolute;
  left: 50%;
  top: 70%;
  width: 30vw;
  max-width: 1600px;
  aspect-ratio: 21 / 9;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  transition: filter .4s ease, opacity .4s ease;
} */
.spin-item {
  position: absolute;
  left: 50%;
  top: 70%;
  /* width: 25vw; */
   width: 30vw;
  max-width: 1600px;
  aspect-ratio: 21 / 9;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  transition: filter .4s ease, opacity .4s ease;
}

.spin-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;

  transition: filter .4s ease, opacity .4s ease;
}
.spin-item img {
  transition:
    filter .3s ease,
    opacity .3s ease,
    transform .3s ease;
}

/* hover hanya untuk item depan */
.spin-item.front:hover img {
  filter: brightness(1.3)
          drop-shadow(0 0 8px rgba(255,255,255,0.7));
}

.spin-item img {
  transition: filter .4s ease, opacity .4s ease;
}

.spin-item.front img {
  filter: blur(0px);
  opacity: 1;
}

.spin-item.side img {
  filter:
    blur(1.5px)
    grayscale(100%)
    contrast(1.4)
    brightness(0.9);
  opacity: 0.95;
}

.spin-item.back img {
  filter:
    blur(3px)
    grayscale(100%)
    contrast(1.6)
    brightness(0.75);
  opacity: 0.85;
}

.nav{
    position: absolute;
    top: 27vw;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    user-select: none;
    max-width: 78px;
    width: 4vw;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.nav:hover{
  filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

.nav.prev{ left: 40px; }
.nav.next{ right: 40px; }


.spinner .spin-item:nth-child(1){ transform:translate(-50%,-50%) rotateY(0deg)   translateZ(420px); }
.spinner .spin-item:nth-child(2){ transform:translate(-50%,-50%) rotateY(90deg)  translateZ(420px); }
.spinner .spin-item:nth-child(3){ transform:translate(-50%,-50%) rotateY(180deg) translateZ(420px); }
.spinner .spin-item:nth-child(4){ transform:translate(-50%,-50%) rotateY(270deg) translateZ(420px); }

@media (max-width: 768px){
    .ggh-section3-anniv-title {
        width: 70%;
        margin-top: 15vw;
    }
   /* ============================= */
/* SECTION 3 CONTAINER */
/* ============================= */

.ggh-section3-container {
    padding-top: 6vh;
    padding-bottom: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#swiper-fame {
    position: relative;
    width: 100%;
    max-width: 100%;
}

#swiper-fame .swiper-wrapper {
    align-items: center;
}

#swiper-fame .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}


.ggh-section3-img {
    width: 63vw;
    display: block;
    margin: 0 auto;
}


.swiper-button-prev,
.swiper-button-next {
    position: absolute !important;
    width: 10vh !important;
    height: 12vh !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

/* Position kiri & kanan */
.swiper-button-prev {
    left: 3vh !important;
}

.swiper-button-next {
    right: 3vh !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}


}



/*================================ END SECTION 3 ==============================*/

/*================================== FOOTER ==============================*/
.btn-to-top{
    text-align: right;
    cursor: pointer;
    position: fixed;
    bottom: 1vw;
    right: 1vw;
    display: none; /* nanti JS akan mengubahnya ke block saat scroll */
    z-index: 999;
    animation: floatUpDown 2s ease-in-out infinite; /* animasi floating */
}

.btn-to-top img{
    width: 60%;      /* sesuaikan ukuran */
    max-width: 125px; 
}

/* Animasi naik-turun */
@keyframes floatUpDown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); } /* naik 10px */
    100% { transform: translateY(0); }
}


#footer {
  background: #f6c680;
  border-top: 5px solid #252525;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url(../images/roidleadventure/page2/char.png) left center no-repeat,
    url(../images/roidleadventure/page2/char2.png) right center no-repeat;
  background-size: auto 140%;
  opacity: 0.22;
  filter: blur(2px);
  transform: scale(1.05); /* cegah pinggir blur kepotong */
  z-index: 0;
   pointer-events: none; 
}

#footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 1px,
      transparent 1px,
      transparent 6px
    );
  pointer-events: none;
  z-index: 1;
}


.sosmed{
	padding-bottom: 1vw;
}
.sosmed a{
	color: #0c0c0c;
	font-size: 26pt;
	margin-right: 0.5vw;
    margin-left: 0.5vw;
}
.sosmed a:hover{
	color: #2a54b6;
	text-decoration: none;
}
.strip{
	border-right: 1px solid;
	min-width: 1px;
	min-height: 30px;
	font-size: 18pt;
}
.footer-menu{
	color: #000;
	font-size: 15pt;
	padding-left: 20px;
	padding-right: 20px;
}
.footer-menu:hover{
	text-decoration: none;
}
.row-logo{
	padding-top: 20px;
	padding-bottom: 20px;
}
.text-footer {
    position: relative;
    text-decoration: none;
    font-family: "Anton", sans-serif;
    color: #000 !important;
    font-size: 15px;
}
.text-footer a {
  position: relative;
  text-decoration: none;
 font-family: "Anton", sans-serif;
 color: #000 !important;
}

.text-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  color: #000 !important;
  background-color: #000;
  transition: width 0.25s ease;
 font-family: "Anton", sans-serif;
}

.text-footer a:hover::after {
  width: 100%;
}

.footer-logo {
    margin-right: 10px;
    max-width: 148px;
    width: 4.5vw;
    margin-bottom: 4px;
}
@media(max-width: 767px){
	.btn-to-top{
		bottom: 3vw;
		right: 1vw;
		max-width: 120px;
	}
	.btn-to-top img{
		width: 50%;
	}
	.footer-logo {
		margin-right: 10px;
		max-width: 319px;
		width: 23%;
	}
}


/*================================ END FOOTER ==============================*/