@charset "utf-8";
/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: Ellipsoideogram;
  src: url("../fonts/Ellipsoideogram.ttf");
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.2;
    font-size: 15px;
    color: #fff;
    background: #000 url("/event/assets/casinojr/images/angpao_reward_2026/bg.jpg")no-repeat top center;
    background-size: cover;
}

a { text-decoration: none; cursor:pointer; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; -o-transition: all 0.3s; transition: all 0.3s; }

a:hover, a:focus, button:focus, button:hover { text-decoration: none; outline: none; }

img { max-width:100%;}

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], textarea, select {
    color: #666;
    width: 100%;
}
button {
	background: none;
	border: none;
	padding: 0;
}
.t-body {
	overflow: hidden;
}
.deco {
	position: absolute;
	pointer-events: none;
}
.max-container {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 10px;
}
.music-wrapper {
    position: fixed;
    z-index: 99;
    right: 0;
    bottom: 50px;
    opacity: 1;
    transition: 0.3s;
    overflow: hidden;
    height: 40px;
    width: 40px;
    background: #fff;
    border-radius: 10px 0 0 10px;
}
.music-wrapper audio {
    position: absolute;
    left: -6px;
    top: -7px;
}
audio:focus {
	outline: none;
}
.floating-wrapper {
    position: fixed;
    z-index: 99;
    right: 2px;
    top: 100px;
	width: 100%;
    max-width: 60px;
	text-align: center;
}
button.float-btn {
    display: block;
    margin: 5px 0;
}
button.float-btn:hover {
	transform: scale(0.98);
	filter: brightness(1.08);
}
.dropdown-menu.language {
    min-width: 155px;
    background: none;
    border: none;
    width: 100%;
    padding: 0;
    margin: 0;
	margin-top: 5px;
}
a.float-item {
    display: inline-block;
    max-width: 45px;
}
a.float-item:hover {
	filter: brightness(1.07);
	transform: scale(1.03);
}
.top-sec {
	position: relative;
	text-align: center;
	padding: 10px 0 45px;
}
.logo {
    max-width: 31%;
    margin: 0 auto -4%;
}
.title-top {
	position: relative;
}
.deco.deco-top {
    bottom: -32%;
    right: 2%;
    max-width: 9%;
	animation: float 2.3s ease-in-out infinite;
}
.event-date {
    position: relative;
    margin: 0 auto 30px;
    max-width: 560px;
}
.date-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    text-shadow: 0 3px 5px rgb(0, 0, 0, 0.6);
}
.deco.angpao-2 {
    right: 0%;
    top: 49%;
    max-width: 8%;
	animation: float 2.4s ease-in-out infinite;
}
.deco.angpao-3 {
    left: -4%;
    top: 96%;
    max-width: 8%;
	animation: float 2.1s ease-in-out infinite;
}
.deco.angpao-4 {
    right: -3%;
    bottom: -3%;
    max-width: 19%;
}
@keyframes float {
  0% {
	transform: translateY(0);
  }
  50% {
	transform: translateY(-13px);
  }
  100% {
	transform: translateY(0);
  }
}
.how-title {
    background: linear-gradient(180deg, rgba(248, 255, 65, 1) 0%, rgba(254, 193, 63, 1) 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Ellipsoideogram';
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 10px;
}
.how-wrapper {
    padding-bottom: 30px;
}
.stepbox {
    position: relative;
    display: inline-block;
    max-width: 298px;
    margin: 5px 10px;
}
.step-info {
    position: absolute;
    left: 0;
    right: 0;
    top: 72%;
    font-size: 26px;
    font-weight: 500;
    max-width: 85%;
    margin: 0 auto;
}
.daily-date {
    position: relative;
    max-width: 445px;
    margin: 0 auto;
}
.daily-text {
    position: absolute;
    left: 37%;
    right: 22%;
    top: 35%;
    font-size: 30px;
    font-weight: 700;
    text-shadow: 0 2px 3px rgb(0, 0, 0, 0.7);
}
.claim-note {
    color: #fce741;
    padding-bottom: 15px;
}
.mission-wrapper {
    position: relative;
    padding: 20px 0 30px;
}
.mission-box {
    position: relative;
    display: inline-block;
    vertical-align: top;
    max-width: 320px;
    margin: 10px auto;
}
.mstext {
    position: absolute;
    left: 0;
    right: 0;
    top: 22%;
    font-size: 20px;
    font-weight: 500;
    max-width: 80%;
    margin: 0 auto;
}
button.claim-btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}
.claimtext {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(248, 255, 65, 1) 0%, rgba(254, 193, 63, 1) 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Ellipsoideogram';
    font-size: 47px;
    font-weight: 700;
    text-transform: uppercase;
    filter: drop-shadow(2px 2px 1px #7e1111) drop-shadow(0px 0px 0px #7e1111);
}
.mission-box.active button.claim-btn {
    animation: glowing 2s ease-in-out infinite;
}
@keyframes glowing {
  0% {
	filter: brightness(1.07) drop-shadow(0 0 8px #ffe77c);
  }
  50% {
	filter: brightness(1) drop-shadow(0 0 1px #ffe77c);
  }
  100% {
	filter: brightness(1.07) drop-shadow(0 0 8px #ffe77c);
  }
}
.frame-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 100px auto 0;
}
.deco.cloud-1 {
    left: -5%;
    bottom: 8%;
    max-width: 16%;
	animation: cloudfloat 2.8s ease-in-out infinite;
}
.deco.cloud-2 {
    right: 3%;
    bottom: 1%;
    max-width: 14%;
	animation: cloudfloat 2.5s ease-in-out infinite;
}
@keyframes cloudfloat {
  0% {
	transform: translateX(0);
  }
  50% {
	transform: translateX(-13px);
  }
  100% {
	transform: translateX(0);
  }
}
.frame-img {
    pointer-events: none;
}
.token-wrap {
    position: absolute;
    max-width: 430px;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: -13%;
}
.token-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 35%;
    font-size: 56px;
    font-weight: 700;
    text-shadow: 0 2px 3px rgb(0, 0, 0, 0.5);
}
.max-play {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fce741;
}
.ap-event-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 19%;
    width: 70%;
    height: 375px;
    margin: 0 auto;
    overflow: hidden;
}
#angpao-container {
    position: relative;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}
/* --- Base Angpao Shape --- */
.angpao {
	position: absolute;
	width: 50px;
	height: 80px;
	border-radius: 5px;
	top: -100px; /* Start above screen */
	cursor: pointer;
}
.angpao:hover {
	filter: drop-shadow(0 0 5px #fce741) drop-shadow(0 0 1px #fce741) brightness(1.1);
}
/* --- Design 1: Classic with Gold Center --- */
.design-1 {
    background: url("/event/assets/casinojr/images/angpao_reward_2026/ap1.png")no-repeat;
    background-size: 100%;
    width: 85px;
    height: 99px;
    margin: 0 auto;
}
/* --- Design 2: Curved Flap (Simulated with CSS) --- */
.design-2 {
    background: url("/event/assets/casinojr/images/angpao_reward_2026/ap2.png")no-repeat;
    background-size: 100%;
    width: 86px;
    height: 110px;
    margin: 0 auto;
}
/* --- Design 3: Diagonal Stripes --- */
.design-3 {
    background: url("/event/assets/casinojr/images/angpao_reward_2026/ap3.png")no-repeat;
    background-size: 100%;
    width: 74px;
    height: 83px;
    margin: 0 auto;
}
/* --- Animation Keyframes --- */
@keyframes fall {
	0% {
		transform: translateY(-100px) rotate(0deg);
		opacity: 1;
	}
	100% {
		transform: translateY(110vh) rotate(360deg); /* Fall to bottom + rotate */
		opacity: 0.8;
	}
}

  
/** Modal **/
button.close-x {
    background: none;
    border: none;
    padding: 0;
    color: #fff;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
}
.modal-content.reward {
    background: none;
    border: none;
	max-width: 350px;
    margin: 0 auto;
}
.reward-box {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
    text-align: center;
	cursor: pointer;
}
.prize {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    z-index: 3;
    font-size: 68px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    border-radius: 45px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(248, 255, 65, 1) 0%, rgba(254, 193, 63, 1) 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Ellipsoideogram';
    opacity: 0;
    visibility: hidden;
    transform: scale(0.3);
}
.congratz {
    background: linear-gradient(180deg, rgba(248, 255, 65, 1) 0%, rgba(254, 193, 63, 1) 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Ellipsoideogram';
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
	opacity: 0;
	visibility: hidden;
}
img.open {
	position: absolute;
	left: 0;
	right: 0;
	transition: 0.2s;
}
img.open {
    opacity: 0;
    visibility: hidden;
	transition: 0.2s;
}
.reward-box.active img.closed {
    opacity: 0;
    visibility: hidden;
	transition: 0.2s;
}
.reward-box.active img.open {
    opacity: 1;
    visibility: visible;
	transition: 0.2s;
}
.reward-box.active .prize, .reward-box.active .congratz {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	transition: 0.3s;
	transition-delay: 0.3s;
}

.modal-dialog.popup {
	max-width: 750px;
}
.modal-content.popup {
    background: rgb(0, 13, 38, 0.85);
    border: 1px solid #096b67;
    box-shadow: inset 0 0 7px #096b67, inset 0 0 16px #096b67;
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
}
.poptitle {
    background: linear-gradient(180deg, rgba(248, 255, 65, 1) 0%, rgba(254, 193, 63, 1) 84%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Ellipsoideogram';
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}
ul.terms {
	padding-left: 17px;
}

@media(max-width: 1000px) {
.floating-wrapper {
    transform: scale(0.8);
    transform-origin: right top;
}	
.music-wrapper {
    transform: scale(0.8);
    transform-origin: right bottom;
}	
.ap-event-wrapper {
    height: 37vw;
}
.token-wrap {
    top: -100px;
}
.design-1 {
    width: 8.2vw;
    height: 10vw;
}	
.design-2 {
    width: 9vw;
    height: 11vw;
}
.design-3 {
    width: 7vw;
    height: 8vw;
}	
}


@media(max-width: 767px) {
.floating-wrapper {
    transform: scale(0.7);
}	
.music-wrapper {
    transform: scale(0.7);
}	
.event-date {
    max-width: 75%;
}	
.date-text {
    font-size: 4.4vw;
}
.how-title {
    font-size: 42px;	
}
.token-wrap {
    max-width: 350px;
    top: -95px;
}
.token-text {
    font-size: 44px;
}	
	
}

@media(max-width: 700px) {
.stepbox {
    position: relative;
    display: inline-block;
    max-width: 298px;
    margin: 5px 1%;
    width: 47%;
}
.step-info {
    font-size: 3.7vw;
}	
.mission-box {
    width: 48%;
    margin: 10px 0.5%;
}
.mstext {
    font-size: 2.9vw;
}
.claimtext {
    font-size: 7vw;
}	
}

@media(max-width: 480px) {
.floating-wrapper {
    transform: scale(0.6);
}	
.how-title {
	font-size: 34px;
}
.daily-date {
    max-width: 90%;
}	
.daily-text {
    font-size: 6vw;
}	
.token-wrap {
	max-width: 70%;
	top: -37%;
}	
.token-text {
    font-size: 9vw;
}	
.max-play {
    font-size: 3vw;
}	
.modal-content.popup {
    font-size: 14px;
    padding: 15px 15px;
}
}















