:root {
  --bg1: #5423d1;
  --bg2:  #7713CB;
  --accent: #ffd33d;
  --accent-2: #ff7bd8;
  --white: #fff;
  --card: #6b2bd6;
  --glass: rgba(255, 255, 255, .12);
  --shadow: 0 8px 24px rgba(0, 0, 0, .25);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  background: radial-gradient(120% 120% at 50% 0%, var(--bg2), var(--bg1));
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--white);
}

.phone {
  width: 390px;
  margin: 0 auto;
  min-height: 100dvh;
  background: transparent;
}

.page {
  padding: 8px 12px 120px;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  opacity: .95;
}

.back {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
}

.top-title {
  font-weight: 600;
}


.back-btn {
  position: fixed;       
  top: 35px;             
  right: 10px;           
  display: inline-block;
  text-decoration: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  z-index: 999;          
}


/* back button image */
.back-img {
  display: block;
  width: 90px;     
  height: auto;
}

/* back over the PNG */
.back-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
  color: #fff;   
  pointer-events: none; 
}



@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* helper */
.note {
  font-size: 11px;
  text-align: center;
  opacity: .9;
}

.hide-scroll {
  scrollbar-width: none;
}

.hide-scroll::-webkit-scrollbar {
  display: none;
}

/* Demo footer gap */
.spacer {
  height: 60px;
}

/* Small phones */
@media (max-width: 400px) {
  .phone {
    width: 100vw;
  }
}
.banner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
    position: relative;
    padding: 0;           
  margin: 0;
}

.banner-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}


.Rule-Reward {
  display: flex;
  justify-content: space-between; 
  margin: 0 20px 15px;  
}

.rule-button {
  position: relative;
  flex: 1; 
  margin: 0 2px; 
}

.rule-button img {
  width: 100%;
  height: auto;
  display: block;
}
.rule-button span {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px; /* smaller text */
  font-weight: 900; /* make it clearer */
  color: white; /* text fill color */
  text-align: center;
  white-space: nowrap;


}



.rule-button:nth-child(1) span {
  -webkit-text-stroke: 0.5px blue; /* thinner stroke */
  text-shadow:
    -0.5px -0.5px 0 blue,
     0.5px -0.5px 0 blue,
    -0.5px  0.5px 0 blue,
     0.5px  0.5px 0 blue;
}


.rule-button:nth-child(2) span {
  -webkit-text-stroke: 0.5px purple; /* thinner stroke */
  text-shadow:
    -0.5px -0.5px 0 purple,
     0.5px -0.5px 0 purple,
    -0.5px  0.5px 0 purple,
     0.5px  0.5px 0 purple;
}


.toggle-wrapper {
  position: relative;
  width: 100%;       
  max-width: 600px;   
  height: 40px;       
  margin: 0 auto;
  overflow: hidden;   
}

.toggle-frame {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.toggle-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 0 8px;   
  box-sizing: border-box;
  z-index: 2;
}

.toggle-option {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 00;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  line-height: 40px;
  text-decoration: none; /* remove underline */
}

.toggle-option.active {
  color: #ffd33d;
}

.toggle-indicator {
  position: absolute;
  top: 0;
  left: 8px; 
  width: calc((100% - 16px) / 3); 
  height: 100%;
  transition: left 0.3s ease;
  z-index: 2;
  object-fit: contain;
}



    
    .container {
        position: relative;
  width: 95%;
  max-width: 400px;
  margin: 30px auto 20px auto;
  border: 2px solid #FFD700;   
  background: #6b2bd6;
  padding: 20px 10px 20px 10px; 
  width: 100%;
  box-sizing: border-box;
  border-radius: 5px;
  z-index: 1;     
   overflow: visible;
    }
    


.paragraph {
  font-size: 10px;
  line-height: 1.4; 
  color: #fff;      
}

   .top-frame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); 
  z-index: 2; 
}

.top-frame img {
  width: 360px;  
  height: 400;
  display: block;
}



.bottom-frame {
  position: absolute;         
  bottom: -45px;              
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100px;
  background: url("images/bottom_border_frame.png") no-repeat center;
  background-size: contain;
  z-index: 2; 
}


/* Reward card inside container */
.reward-card {
  width: 100%;
  background:
    radial-gradient(90% 65% at 50% 0%, var(--card-glass, rgba(255,255,255,.12)), transparent 60%),
    linear-gradient(180deg, var(--card-1, #6b2bd6) 0%, var(--card-2, #5423d1) 100%);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.25));
  border: 1px solid rgba(255,255,255,.22);
  position: relative;
  padding: 10px 12px 20px;
  box-sizing: border-box;
  overflow: visible; /* let card grow vertically */
  margin-bottom: 24px; 
}

/* soft inner rim */
.reward-card::before {
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff33, #00000022);
  mix-blend-mode: soft-light;
  pointer-events:none;
}

/* top header bar */
.card-header {
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(14px, 3vw, 12px); /* smaller & responsive */
  padding: 12px 0;
  color: #fff;
}

.card-header span {
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* dynamic grid for prizes */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* auto wrap */
  gap: 25px 10px;
  justify-items: center;
  padding: 8px 0 12px;
}

/* individual prize */
.prize {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
}

.prize img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  user-select: none;
  z-index: 1;  
  -webkit-user-drag: none;
}


.pill {
  position: absolute;
  left: 50%;
  top: -15px;              
  transform: translateX(-50%);
  background: linear-gradient(#f7b041, #e69519);
  color: #3c2300;
  border-radius: 8px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.35), inset 0 1px 0 #ffd78a;
  white-space: nowrap;
    z-index: 10;  
}

/* prize label */
.label {
  font-size: clamp(8px, 2vw, 16px);
  color: var(--text-dim, #fff);
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* sparkle background */
.sparkle {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(3px 3px at 20% 35%, #fff7 0 40%, transparent 41%),
    radial-gradient(3px 3px at 78% 52%, #fff7 0 40%, transparent 41%),
    radial-gradient(2px 2px at 60% 70%, #fff6 0 40%, transparent 41%),
    radial-gradient(2px 2px at 35% 78%, #fff5 0 40%, transparent 41%);
  opacity: 0.25;
  pointer-events: none;
  filter: blur(0.2px);
}

/* responsive  */
@media (max-width: 420px) {
  .reward-card {
    padding: 8px 10px 16px;
  }
  .prize img {
    width: min(24vw, 110px);
  }
  .card-header {
    font-size: clamp(12px, 4vw, 18px);
  }
}
