@charset "UTF-8";
/* 
  Project: 2026 Cathay Insurance Campaign - Dance Enough Gift
  Author: Copilot CLI
  Date: 2026-01-23
  
  Structure:
  1. Global Styles
  2. Desktop Styles (Base)
  3. Mobile Overrides (@media max-width: 1023px)
*/

/* ============================================
   1. GLOBAL STYLES
   ============================================ */

html, body {
  scroll-behavior: smooth;
}

body {
  height: auto !important;
}

/* Main Campaign Container */
#event_2026_dance {
  width: 100%;
  position: relative;
  font-family: "Noto Sans TC", "Montserrat", sans-serif;
  overflow: visible;
  background: white;
}

.mobile_br {
  display: none;
}


/* ============================================
   2. DESKTOP STYLES (BASE)
   ============================================ */

/* ========== Hero Section ========== */
#event_2026_dance #hero {
  width: 100%;
  background: white;
  position: relative;
  padding: 8rem 2rem 3rem;
  min-height: 45vw;
  text-align: center;
  overflow: visible;
  z-index: 20;
}

#event_2026_dance #hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/section1-3.svg') no-repeat center top;
  background-size: cover;
  z-index: 0;
}

#event_2026_dance #hero .hero_content {
  position: relative;
  z-index: 10;
}

#event_2026_dance #hero .hero_chars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Characters */
#event_2026_dance #hero .char_left {
  position: absolute;
  bottom: -3rem;
  left: 4.8%;
  width: 24.47%;
  max-width: 470px;
  height: auto;
  z-index: 5;
  transform: translateX(-10%);
}

#event_2026_dance #hero .char_right {
  position: absolute;
  bottom: -1rem;
  right: 6%;
  width: 19.27%;
  max-width: 370px;
  height: auto;
  z-index: 5;
  transform: translateX(10%);
}

#event_2026_dance #hero .hero_title {
  margin-bottom: 2rem;
}

#event_2026_dance #hero .hero_title .slash {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

#event_2026_dance #hero .hero_title .line1 {
  font-size: clamp(1rem, 3.8vw, 4.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
}

#event_2026_dance #hero .hero_title .line1 .yellow {
  color: #FFC83B;
}

#event_2026_dance #hero .hero_title .line1 .black {
  color: #3F3F3F;
}

#event_2026_dance #hero .hero_title .line2 {
  font-size: clamp(1rem, 4.3vw, 5.2rem);
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  white-space: nowrap;
}

#event_2026_dance #hero .hero_title .line2 .yellow {
  color: #FFC83B;
}

#event_2026_dance #hero .hero_title .line2 .black {
  color: #3F3F3F;
}

#event_2026_dance #hero .hero_title .line2 .dance-text {
  margin-left: -0.4em;
}

#event_2026_dance #hero .hero_subtitle {
  font-size: clamp(1.5rem, 3.6vw, 4.5rem);
  font-weight: 800;
  color: #3F3F3F;
  /* Base 1920px: ~154px (8.02vw). Scales down smoothly. */
  margin-top: 8.02vw;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1vw);
}

#event_2026_dance #hero .hero_subtitle .big_num {
  font-size: clamp(2.5rem, 6vw, 7.2rem);
  line-height: 1;
  margin: 0 0.25rem;
  transform: translateY(-2px);
}

#event_2026_dance #hero .hero_cta {
  display: flex;
  justify-content: center;
  gap: 2.708vw;
  margin-bottom: 3rem;
  flex-wrap: nowrap;
  max-width: clamp(500px, 48vw, 1000px);
  margin-left: auto;
  margin-right: auto;
}

#event_2026_dance #hero .hero_cta .btn {
  flex: 0 0 auto;
  width: 22.396vw;
  height: 5.469vw;
  min-width: 100px;
  font-size: clamp(1rem, 2.34vw, 2.8125rem);
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0;
  gap: 1rem;
  /* height: auto; removed */
  background: #FFC83B;
  color: #3F3F3F;
  text-align: center;
  margin-left: 0 !important;
}

#event_2026_dance #hero .hero_cta .btn::after {
  content: '';
  position: relative;
  display: block;
  width: 0.75rem;
  height: 2rem;
  background: url('../images/icon-arrow--line.svg') no-repeat center center;
  background-size: contain;
}

#event_2026_dance #hero .hero_cta .btn:hover {
  background: #d9a83a;
}


/* ========== Steps Section ========== */
#event_2026_dance #steps {
  width: 100%;
  background: #ccffe1;
  padding: 2rem 0rem 2rem;
  position: relative;
  scroll-margin-top: 72px;
}

/* Wave decoration */
#event_2026_dance #steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.86vw;
  background: #ccffe1;
  clip-path: polygon(0 100%, 43% 100%, 50% 0, 57% 100%, 100% 100%);
  transform: translateY(-100%);
  z-index: 21;
}

#event_2026_dance #steps .steps_title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #3F3F3F;
}

#event_2026_dance #steps .steps_grid {
  display: grid;
  grid-template-columns: 1fr 23.4375vw 23.4375vw 23.4375vw 1fr;
  grid-template-rows: auto auto auto;
  gap: 0;
  column-gap: 5.5vw;
  max-width: none;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Step Cards */
#event_2026_dance #steps .step_main {
  background: #FFC83B;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 1px 1px 1px;
  position: relative;
  z-index: 2;
  height: 25.26vw;
  overflow: visible;
}

#event_2026_dance #steps .step_card_body {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  width: 100%;
}

#event_2026_dance #steps .step_badge {
  background: transparent;
  color: #3F3F3F;
  font-weight: 700;
  padding: 1rem 0;
  text-align: center;
  font-size: clamp(1.25rem, 2.34vw, 3rem);
  width: 100%;
}

#event_2026_dance #steps .step_title {
  font-size: clamp(1rem, 1.67vw, 2rem);
  font-weight: 450;
  margin: 1rem;
  line-height: 1.4;
  color: #3F3F3F;
  text-align: center;
}

#event_2026_dance #steps .step_image {
  margin: 0 1rem;
  display: flex;
  justify-content: center;
  height: 12.5vw;
  align-items: flex-end;
  margin-top: auto;
}

#event_2026_dance #steps .step_image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

#event_2026_dance #steps .step1_main .step_image img,
#event_2026_dance #steps .step2_main .step_image img {
  transform: scale(1.15);
  transform-origin: bottom center;
}

#event_2026_dance #steps .step3_main .step_image {
  align-items: center;
  margin-top: 0;
}

#event_2026_dance #steps .step3_main .step_image img {
  max-height: 85%;
  max-width: 85%;
}

#event_2026_dance #steps .step_footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding-top: 3rem;
}

#event_2026_dance #steps .step_btn {
  display: flex;
  background: #FFC83B;
  color: #3F3F3F;
  text-align: center;
  padding: 0;
  border-radius: 9999px;
  font-size: clamp(1rem, 2.34vw, 2.8125rem);
  font-weight: 700;
  text-decoration: none;
  width: 27.344vw;
  height: 5.469vw;
  max-width: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  flex: 0 0 auto;
}

#event_2026_dance #steps .step_btn .arrow {
  display: inline-block;
  width: 0.4em;
  height: 1em;
  background: url('../images/icon-arrow--line.svg') no-repeat center center;
  background-size: contain;
}

#event_2026_dance #steps .step_note {
  font-size: clamp(0.75rem, 1.35vw, 1.5rem);
  color: #3F3F3F;
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.4;
  text-align: center;
}

/* Grid Placement */
#event_2026_dance #steps .step1_main { grid-column: 2; grid-row: 1; }
#event_2026_dance #steps .step2_main { grid-column: 3; grid-row: 1; }
#event_2026_dance #steps .step3_main { grid-column: 4; grid-row: 1; }
#event_2026_dance #steps .step1_footer { grid-column: 2; grid-row: 2; }
#event_2026_dance #steps .step2_footer { grid-column: 3; grid-row: 2; }
#event_2026_dance #steps .step3_footer { grid-column: 4; grid-row: 2; }

/* Arrows between steps */
#event_2026_dance #steps .step1_main::after,
#event_2026_dance #steps .step2_main::after {
  content: '';
  position: absolute;
  left: calc(100% + 2.75vw);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  background: url('../images/icon-arrow--line.svg') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 10;
}

/* Background Layer for Row 2 & 3 (White) */
#event_2026_dance #steps .steps_bg_layer {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2 / -1;
  position: absolute;
  z-index: 0;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  top: 2rem;
  bottom: -4rem;
  height: auto;
  background: white;
}

/* Incentive Banner */
#event_2026_dance #steps .incentive_banner {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 3rem;
  background: url('../images/newmember.svg') no-repeat center center;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 1rem;
  padding: 0;
  display: block;
  width: 73%;
  max-width: 1402px;
  aspect-ratio: 14/5;
  min-height: auto;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  container-type: inline-size;
}

#event_2026_dance #steps .incentive_banner .icon {
  display: none;
}

#event_2026_dance #steps .incentive_banner > div:last-child {
  position: absolute;
  top: 66%;
  right: 6%;
  transform: translateY(-50%);
  text-align: left;
  width: auto;
}

#event_2026_dance #steps .incentive_banner h3 {
  font-size: clamp(1rem, 2.34vw, 2.5rem);
  font-weight: 500;
  color: #3F3F3F;
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
}

@media (min-width: 768px) {
  #event_2026_dance #steps .incentive_banner .ib-line-3 {
    padding-left: 3rem;
  }
}

/* ========== Video Section ========== */
#event_2026_dance #video {
  width: 100%;
  background: white url('../images/section2.svg') no-repeat center top;
  background-size: 100% auto;
  padding: 2rem 1rem 4rem;
  text-align: center;
}

#event_2026_dance #video .video_title {
  font-size: clamp(1.1rem, 4.17vw, 5rem);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  margin-bottom: 2rem;
  color: #3F3F3F;
  display: block;
  line-height: 1.4;
}

#event_2026_dance #video .video_title::before {
  content: '';
  display: none;
}

#event_2026_dance #video .video_title::after {
  content: '';
  display: none;
}

#event_2026_dance #video .video_title span {
  color: #FFC83B;
}

#event_2026_dance #video .video_title .dance-name {
  margin-right: -0.3em;
  color: #3F3F3F;
}

#event_2026_dance #video .video_container {
  position: relative;
  width: 75vw;
  padding-bottom: 42.1875vw;
  height: 0;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: none;
  margin: 0 auto;
}

#event_2026_dance #video .video_container iframe,
#event_2026_dance #video .video_container video,
#event_2026_dance #video .video_container > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #000;
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-cover.hide {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.play-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #000;
  margin-left: 5px;
}


/* ========== Prizes Section ========== */
#event_2026_dance #prizes {
  width: 100%;
  background: white url('../images/section3.svg') no-repeat center top;
  background-size: 100% auto;
  padding: 6vw 1rem;
}

#event_2026_dance #prizes .prizes_title {
  font-size: clamp(1rem, 5.83vw, 7rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #3F3F3F;
}

#event_2026_dance #prizes .prizes_subtitle {
  font-size: clamp(1rem, 4.17vw, 5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  color: #3F3F3F;
}

#event_2026_dance #prizes .prizes_subtitle .green {
  color: #0ecd5c;
}

#event_2026_dance #prizes .prizes_grid {
  max-width: none;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  #event_2026_dance #prizes .prizes_grid .swiper-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    width: 100%;
    transform: none !important;
  }

  #event_2026_dance #prizes .prizes_grid .swiper-slide {
    margin-right: 0 !important;
    flex-shrink: 1;
  }
  
  /* Desktop Order: 2nd - 1st - 3rd */
  #event_2026_dance #prizes .prize_card.second { order: 1; }
  #event_2026_dance #prizes .prize_card.first { order: 2; }
  #event_2026_dance #prizes .prize_card.third { order: 3; }
  
  /* Hide duplicated slides on desktop */
  #event_2026_dance #prizes .prizes_grid .swiper-slide:nth-child(n+4) {
    display: none;
  }

  /* Reduce font size for 2nd prize title to prevent wrapping on desktop */
  #event_2026_dance #prizes .prize_card.second .prize_title {
    font-size: clamp(0.85rem, 1.3vw, 1.6rem) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1919px) {
  #event_2026_dance #steps .step1_main .step_image img,
  #event_2026_dance #steps .step2_main .step_image img  {
    transform: scale(1.15) translateY(10%);
  }
}

/* Mobile Swiper Wrapper reset is in mobile media query below */

#event_2026_dance #prizes .prize_card {
  background: #FFC83B;
  padding: 0 1px 1px 1px;
  border-radius: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

#event_2026_dance #prizes .prize_card:hover {
  transform: scale(1.02);
}

#event_2026_dance #prizes .prize_card.first {
  width: 26.822917vw;
  aspect-ratio: 26.822917 / 27.864583;
  height: auto;
}

#event_2026_dance #prizes .prize_card:not(.first) {
  width: 23.4375vw;
  aspect-ratio: 23.4375 / 24.47917;
  height: auto;
  align-self: center;
}

#event_2026_dance #prizes .prize_badge {
  background: transparent;
  color: #3F3F3F;
  font-weight: 700;
  padding: 2rem 0;
  text-align: center;
  width: 100%;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 32%;
  flex-basis: 32%;
}

#event_2026_dance #prizes .prize_badge .badge_rank {
  display: block;
  font-size: clamp(2rem, 3.2vw, 3.875rem);
}

#event_2026_dance #prizes .prize_badge .badge_count {
  display: block;
  font-size: clamp(1.5rem, 2.1vw, 2.5rem);
  margin-top: 0;
}

#event_2026_dance #prizes .prize_card_body {
  background: white;
  border-radius: 2rem;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

#event_2026_dance #prizes .prize_card.first .prize_card_body {
  padding: 2rem;
}

/* 2nd and 3rd prize card body - adjust padding */
#event_2026_dance #prizes .prize_card.second .prize_card_body {
  padding: 0.75rem 1rem 0;
}

#event_2026_dance #prizes .prize_card.third .prize_card_body {
  padding: 0.5rem 1rem 1rem;
}

#event_2026_dance #prizes .prize_card .prize_title {
  font-size: clamp(1rem, 1.67vw, 2rem) !important;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
  color: #3F3F3F;
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
}

#event_2026_dance #prizes .prize_card.first .prize_title {
  margin: 1.25rem 0 0.75rem;
}

#event_2026_dance #prizes .prize_card .prize_image {
  background: #FFFFFF;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  border-radius: 0.5rem;
  overflow: visible;
}

#event_2026_dance #prizes .prize_card .prize_image img {
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain; /* Ensures image maintains aspect ratio within the container */
}

/* Align 2nd prize image to bottom */
#event_2026_dance #prizes .prize_card.second .prize_image {
  align-items: flex-end;
}

#event_2026_dance #prizes .prizes_cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: clamp(600px, 60vw, 1200px);
  width: 100%; /* Ensure container takes up the max-width space */
  margin-left: auto;
  margin-right: auto;
}

#event_2026_dance #prizes .prizes_cta .btn {
  display: flex;
  padding: 0;
  width: 28.3854vw;
  height: 5.46875vw;
  max-width: 545px;
  max-height: 105px;
  font-size: clamp(1rem, 2.4vw, 2.8125rem);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  background: #FFC83B;
  color: #3F3F3F;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

#event_2026_dance #prizes .prizes_cta .btn .arrow {
  display: inline-block;
  width: 0.4em;
  height: 0.7em;
  background: url('../images/icon-arrow--line.svg') no-repeat center center;
  background-size: contain;
}

#event_2026_dance #prizes .prizes_cta .btn:hover {
  background: #d9a83a;
}

#event_2026_dance #prizes .prizes_cta_group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1; /* Allow group to grow to fill space */
  width: 100%; /* Ensure it takes available width on mobile wrap */
}

#event_2026_dance #prizes .cta_note {
  font-size: clamp(0.75rem, 1.35417vw, 1.625rem);
  color: #3F3F3F;
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.4;
  text-align: center;
}


/* ========== Rules Section ========== */
#event_2026_dance #rules {
  width: 100%;
  background: #FFFFFF;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
}

#event_2026_dance #rules .rules_container {
  width: 100%;
  max-width: 88.54vw;
  padding: 0 1rem;
}

#event_2026_dance #rules .rules_content {
  background: white;
  padding: 0 0 4rem 0; /* Increase bottom padding to accommodate button inside */
  border: 1px solid #a5a6ad;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  font-size: clamp(0.875rem, 1.61vw, 1.9375rem);
  color: #333;
  line-height: 1.75;
  max-height: 1080px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease-in-out;
}

#event_2026_dance #rules .rules_title {
  font-size: clamp(2rem, 4.17vw, 5rem);
  font-weight: 700;
  text-align: center;
  color: #838383;
  background-color: #f8f6f7;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #a5a6ad;
  width: 100%;
  border-radius: 1.5rem 1.5rem 0 0;
}

#event_2026_dance #rules .rules_content.expanded {
  max-height: 30000px;
}

#event_2026_dance #rules .rules_content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 480px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%); /* Adjusted gradient stops to increase white area */
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}

#event_2026_dance #rules .rules_content.expanded::after {
  opacity: 0;
  pointer-events: none;
}

#event_2026_dance #rules .rules_list {
  list-style: none;
  padding: 0 4.16667vw;
  margin: 0;
}

#event_2026_dance #rules .rules_list > li {
  position: relative;
  padding-left: 2rem;
}

#event_2026_dance #rules .rules_list > li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: #000;
  font-size: 0.8em;
  line-height: 2;
}

#event_2026_dance #rules .rules_list > li > strong {
  color: #000;
  font-weight: 700;
}

#event_2026_dance #rules .rules_sublist {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  margin-left: -1.5rem;
}

#event_2026_dance #rules .rules_sublist li {
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 2rem;
}

#event_2026_dance #rules .rules_sublist li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  color: #333;
}

#event_2026_dance #rules .rules_ordered_list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
  counter-reset: rules-counter;
  margin-left: -1.5rem;
}

#event_2026_dance #rules .rules_ordered_list > li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

#event_2026_dance #rules .rules_ordered_list > li::before {
  counter-increment: rules-counter;
  content: counter(rules-counter) ". ";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: normal;
}

#event_2026_dance #rules .rules_ordered_list > li:nth-child(n+10)::before {
  left: -0.6em;
}

#event_2026_dance #rules .rules_note {
  color: #333;
  font-weight: normal;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

#event_2026_dance #rules .rules_toggle_btn {
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  bottom: 2rem; /* Stick to bottom edge */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  z-index: 10;
  width: fit-content;
  box-shadow: none;
  transition: transform 0.3s;
  user-select: none;
}

#event_2026_dance #rules .rules_toggle_btn:hover {
  background: transparent;
  transform: translateX(-50%) scale(1.05); /* Maintain centering while scaling */
}

#event_2026_dance #rules .rules_toggle_btn img {
  display: block;
  height: 3rem;
  width: auto;
}


/* ========== Video Modal ========== */
.video_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video_modal.active {
  opacity: 1;
  pointer-events: auto;
}

.video_modal_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.video_modal_container {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: black;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 10000;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.video_modal.active .video_modal_container {
  transform: scale(1);
}

.video_modal_content {
  width: 100%;
  height: 100%;
}

.video_modal_close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: transparent;
  border: none;
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}


/* ========== Floating Camera Button (Desktop Visible) ========== */
.global_floating_camera_container {
  display: block;
  position: fixed;
  bottom: 5vh;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.global_floating_camera_container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating_camera_btn {
  width: 15vw;
  height: auto;
  aspect-ratio: 1 / 1.4;
  background: url('../images/button_qrcode.png') no-repeat center center;
  background-size: contain;
  border: none;
  cursor: default;
  pointer-events: none;
  padding: 0;
  transition: transform 0.3s ease;
  font-family: inherit;
}

.floating_camera_btn:hover {
  transform: scale(1.05);
}

.floating_camera_btn .btn_text.mobile_text {
  display: none;
}

.floating_camera_btn .btn_text.desktop_text {
  display: block;
  position: absolute;
  top: 13%; 
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  font-size: 1.2vw;
}

.floating_camera_btn .btn_text.desktop_text .text_lg {
  font-size: 1.375vw;
  display: block;
  color: white;
}


/* ============================================
   3. MOBILE OVERRIDES (@media max-width: 1023px)
   ============================================ */

@media (max-width: 1023px) {
  
  .mobile_br {
    display: inline;
  }

  /* ========== Hero Section Mobile ========== */
  #event_2026_dance #hero {
    padding: 2rem 1rem 1rem;
    display: flex;
    flex-direction: column;
  }

  #event_2026_dance #hero::before {
    background-image: url('../images/phonesec1_m.png');
    background-position: center -10vw;
    background-size: 100% auto;
    height: 100%;
  }

  #event_2026_dance #hero .hero_chars {
    position: relative;
    width: 100%;
    height: auto;
    order: -1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1rem;
    pointer-events: auto;
  }

  #event_2026_dance #hero .hero_cta {
    max-width: 100%;
    padding: 0 0.5rem;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
  }
  
  #event_2026_dance #hero .hero_cta .btn {
    flex: 0 1 auto; /* Allow shrink to prevent overflow */
    width: 44.47vw; /* 455px at 1023px width */
    height: 11.73vw; /* 120px at 1023px width */
    max-width: none;
    font-size: clamp(1rem, 4.583vw, 2.5rem); /* Adjust font size to scale */
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3em;
  }
  
  #event_2026_dance #hero .hero_cta .btn::after {
    height: 0.6em;
    width: 0.6em;
  }

  #event_2026_dance #hero .char_left {
    content: url('../images/phoneguy_m.png');
    position: static;
    width: 42.59vw; /* 460px / 1080px */
    max-width: none;
    height: auto;
    transform: translateY(-2vw);
  }
  
  #event_2026_dance #hero .char_right {
    content: url('../images/phonegirl_m.png');
    position: static;
    width: 38.89vw; /* 420px / 1080px */
    max-width: none;
    height: auto;
    transform: translateY(-4vw);
  }
  
  #event_2026_dance #hero .hero_title .line1 {
    font-size: 8.33vw;
  }
  
  #event_2026_dance #hero .hero_title .line2 {
    font-size: 7.87vw;
  }

  #event_2026_dance #hero .hero_subtitle {
    font-size: 8.194vw; /* 88.5px / 1080px */
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 20;
    transform: none;
  }

  #event_2026_dance #hero .hero_subtitle .big_num {
    font-size: 11.944vw; /* 129px / 1080px */
  }

  
  /* ========== Steps Section Mobile ========== */
  #event_2026_dance #steps {
    padding: 0;
    background: white;
  }
  
  #event_2026_dance #steps::before {
    height: 5vw;
    clip-path: polygon(0 100%, 35% 100%, 50% 0, 65% 100%, 100% 100%);
  }
  
  #event_2026_dance #steps .steps_title {
    padding-top: 3rem;
    margin-bottom: 2.5rem;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
  }
  
  #event_2026_dance #steps .steps_grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 3rem 0 0;
  }
  
  /* Green background for cards area */
  #event_2026_dance #steps .steps_grid::before {
    content: '';
    display: block;
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 78%;
    background: #ccffe1;
    z-index: 0;
  }
  
  /* White background layer for banner area - positioned after grid */
  #event_2026_dance #steps .steps_grid::after {
    content: '';
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 0px; /* Approximate banner height + margins */
    background: white;
    z-index: 0;
  }

  #event_2026_dance #steps .step_main {
    margin-bottom: 0;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    max-width: 700px;
    width: 64.8vw;
  }

  #event_2026_dance #steps .step_badge {
    font-size: 6.6vw;
    padding: 1.25rem 0;
  }

  #event_2026_dance #steps .step_title {
    font-size: 4.63vw;
    margin: 1.25rem 1.5rem;
    line-height: 1.6;
  }

  #event_2026_dance #steps .step_image {
    height: 12rem;
    margin: 0 1.5rem;
  }

  /* Reset image scaling for mobile */
  #event_2026_dance #steps .step1_main .step_image {
    height: 39.35vw; /* 425px / 1080px */
  }

  #event_2026_dance #steps .step1_main .step_image img {
    transform: none;
    width: 22.22vw; /* 240px / 1080px */
    height: 100%;
    max-width: none;
    max-height: none;
  }

  #event_2026_dance #steps .step2_main .step_image {
    height: 39.35vw; /* 425px / 1080px */
  }

  #event_2026_dance #steps .step2_main .step_image img {
    transform: none;
    width: 38.89vw; /* 420px / 1080px */
    height: 100%;
    max-width: none;
    max-height: none;
  }

  #event_2026_dance #steps .step3_main .step_image {
    height: 37.03vw; /* 400px * 85% / 1080px */
  }

  #event_2026_dance #steps .step3_main .step_image img {
    transform: none;
    width: 55.55vw; /* 600px * 85% / 1080px */
    height: 100%;
  }

  #event_2026_dance #steps .step_footer {
    margin-bottom: 0;
    padding-top: 0;
    grid-column: auto;
    grid-row: auto;
  }

  #event_2026_dance #steps .step_btn {
    width: 77.81vw; /* 796px / 1023px */
    height: 16.62vw; /* 170px / 1023px */
    max-width: 796px;
    padding: 0;
    font-size: clamp(1rem, 6.4vw, 4.375rem);
    border-radius: 9999px;
  }

  #event_2026_dance #steps .step_note {
    font-size: 3.75vw;
    margin-top: 1rem;
    padding: 0 1rem;
    line-height: 1.5;
  }

  /* Remove desktop arrows */
  #event_2026_dance #steps .step1_main::after,
  #event_2026_dance #steps .step2_main::after {
    display: none;
  }
  
  /* Remove desktop white background layer */
  #event_2026_dance #steps .steps_bg_layer {
    display: none;
  }

  /* Incentive Banner Mobile */
  #event_2026_dance #steps .incentive_banner {
    width: 95.37vw; /* 1030px / 1080px */
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    position: relative;
    z-index: 10;
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1030/950;
    justify-self: center;
    /* Keep background image from desktop */
    background: url('../images/pointwoman_m.png') no-repeat center center;
    background-size: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #event_2026_dance #steps .incentive_banner > div:last-child {
    position: absolute;
    top: auto;
    bottom: 7%;
    left: 9%;
    right: auto;
    transform: none;
    text-align: center;
    width: auto;
  }

  #event_2026_dance #steps .incentive_banner h3 {
    font-size: 4.167vw;
    line-height: 1.4;
    white-space: normal;
    font-weight: 600;
  }

  #event_2026_dance #steps .incentive_banner .ib-line-3 {
    padding-left: 0;
  }
  
  #event_2026_dance #steps .incentive_banner .icon {
    display: block;
    width: 60px;
    height: 60px;
  }
  
  /* ========== Video Section Mobile ========== */
  #event_2026_dance #video {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #event_2026_dance #video .video_container {
    width: 100vw;
    margin-left: -1rem;
    padding-bottom: 56.25%;
  }

  #event_2026_dance #video .video_title {
    font-size: 6.8vw;
  }

  
  /* ========== Prizes Section Mobile ========== */
  #event_2026_dance #prizes {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden; /* Hide scrollbar for section but allow grid to scroll */
    position: relative; /* Context for arrows */
  }

  /* Arrows for mobile prizes - handled by JS now for interactivity */
  /* Kept hidden to avoid duplication with JS inserted arrows */
  #event_2026_dance #prizes::before,
  #event_2026_dance #prizes::after {
    display: none;
  }

  #event_2026_dance #prizes .prizes_title {
    font-size: 10.37vw;
    margin-bottom: 6.5vw;
  }

  #event_2026_dance #prizes .prizes_subtitle {
    font-size: 7.4vw;
  }

  #event_2026_dance #prizes .prizes_grid {
    display: block; /* Swiper container */
    overflow: visible; /* Swiper handles scrolling */
    padding: 1rem 0 2rem; /* Remove side padding, Swiper centeredSlides handles alignment */
    margin: 0;
    width: 100%;
    max-width: none;
  }
  
  #event_2026_dance #prizes .prizes_grid .swiper-wrapper {
    gap: 0; /* Reset desktop gap */
  }
  
  #event_2026_dance #prizes .prizes_grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari hide scrollbar */
  }
  
  /* Reset Reorder items for mobile (1st -> 2nd -> 3rd in HTML) */
  #event_2026_dance #prizes .prize_card.first,
  #event_2026_dance #prizes .prize_card.second,
  #event_2026_dance #prizes .prize_card.third {
    order: unset; /* Reset desktop order */
  }

  #event_2026_dance #prizes .prize_card.first {
    /* order: -1; Removed for Swiper loop */
    width: 63.91vw; /* 654/1023 * 100% */
    max-width: 654px;
    height: auto;
    aspect-ratio: auto; /* Allow auto height based on content or reset if needed */
    align-self: stretch; /* Ensure it stretches to match tallest card */
  }
  
  #event_2026_dance #prizes .prize_card:not(.first) {
    width: 63.91vw; /* 654/1023 * 100% */
    max-width: 654px;
    height: auto;
    aspect-ratio: auto;
    align-self: stretch; /* Stretch to match height of tallest card if needed */
  }

  
  /* Ensure prizes_cta is within padding on mobile */
  #event_2026_dance #prizes .prizes_cta {
    padding: 0 1rem;
    width: auto;
    flex-direction: column; /* Stack vertically */
    gap: 1rem;
    max-width: none;
  }

  /* Force groups to be wide */
  #event_2026_dance #prizes .prizes_cta_group {
    width: 100%;
    flex: auto;
  }
  
  /* Adjust button for mobile */
  #event_2026_dance #prizes .prizes_cta .btn {
    padding: 0;
    width: 78.7vw; /* 850px / 1080px */
    height: 15.74vw; /* 170px / 1080px */
    max-width: none; /* Reset desktop max-width */
    max-height: none; /* Reset desktop max-height */
    font-size: clamp(1rem, 6.4vw, 4.375rem);
    border-radius: 999px;
  }
  
  #event_2026_dance #prizes .cta_note {
    font-size: 3.75vw;
  }
  #event_2026_dance #rules {
    padding: 2rem 1rem;
  }

  #event_2026_dance #rules .rules_container {
    max-width: 100%;
    padding: 0;
  }
  
  
  /* ========== Video Modal Mobile ========== */
  .video_modal_close {
    top: -40px;
    right: 0;
  }

  
  /* ========== Floating Camera Button Mobile ========== */
  .global_floating_camera_container {
    display: block;
    position: fixed;
    top: auto;
    bottom: 10vh;
    right: 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }
  
  .global_floating_camera_container.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .floating_camera_btn {
    position: relative;
    background: url('../images/button_m_new.svg') no-repeat center center;
    background-size: contain;
    border: none;
    border-radius: 0;
    cursor: pointer;
    pointer-events: auto;
    width: 28.6vw;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }
  
  .floating_camera_btn:active {
    transform: scale(0.95);
  }
  
  .floating_camera_btn img {
    display: none;
  }

  .floating_camera_btn .btn_text.desktop_text {
    display: none;
  }

  .floating_camera_btn .btn_text.mobile_text {
    display: block;
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4vw;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    text-align: center;
    white-space: nowrap;
    width: 80%;
  }

  #event_2026_dance #prizes .prize_badge .badge_rank {
    font-size: 7.685vw;
  }

  #event_2026_dance #prizes .prize_badge .badge_count {
    font-size: 5vw;
  }

  /* Unify Prize Card Padding and Spacing on Mobile */
  #event_2026_dance #prizes .prize_card.first .prize_card_body,
  #event_2026_dance #prizes .prize_card:not(.first) .prize_card_body {
    padding: 0.75rem 1rem; /* Reduce vertical padding significantly */
  }

  /* Remove bottom padding for 2nd prize to align image to bottom */
  #event_2026_dance #prizes .prize_card.second .prize_card_body {
    padding-bottom: 0;
  }
  
  #event_2026_dance #prizes .prize_card.first .prize_title,
  #event_2026_dance #prizes .prize_card:not(.first) .prize_title {
    margin-bottom: 0.25rem; /* Minimize margin */
    font-size: 3.98vw !important;
  }
  
  /* Reduce image container height */
  #event_2026_dance #prizes .prize_card .prize_image {
    padding: 0.25rem; /* Further reduce padding around image */
    flex: 1 1 auto; /* Allow growing to fill empty space */
    min-height: 8rem; /* Set a specific, smaller height for mobile images */
    height: auto;
  }

  /* Adjust image size on mobile */
  #event_2026_dance #prizes .prize_card .prize_image img {
    max-width: 80%;
    max-height: 80%;
  }

  /* Keep 2nd prize image smaller */
  #event_2026_dance #prizes .prize_card.second .prize_image img {
    max-width: 70%;
    max-height: 70%;
  }

  /* 2nd prize image bottom align on mobile */
  #event_2026_dance #prizes .prize_card.second .prize_image {
    padding-bottom: 0;
    align-items: flex-end;
  }
  
  /* Reduce Prize Badge height on Mobile - Restoring to safer value */
  #event_2026_dance #prizes .prize_badge {
    min-height: 30%; /* Increased from 20% */
    flex-basis: 30%;
  }

  /* Reduce Rules initial height on Mobile */
  #event_2026_dance #rules .rules_content {
    max-height: 800px;
    font-size: 4.35vw; /* 47px / 1080px */
  }
  
  #event_2026_dance #rules .rules_content::after {
    height: 200px; /* Reduced gradient height */
  }

  /* Mobile Prize Navigation Arrows (Controlled by JS) */
  .prize_nav_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background-image: url('../images/icon-arrow--line.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 40%; /* Icon size */
    z-index: 20;
    cursor: pointer;
    display: none; /* JS toggles this */
    background-color: rgba(255, 255, 255, 0.8); /* White circle background for visibility */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .prize_nav_prev {
    left: 0.25rem;
    transform: translateY(-50%) rotate(180deg);
  }

  .prize_nav_next {
    right: 0.25rem;
  }
  #event_2026_dance #rules .rules_title {
    font-size: 7.4vw;
  }

  #event_2026_dance #rules .rules_ordered_list > li {
    padding-left: 4vw;
  }
  
  #event_2026_dance #rules .rules_sublist li {
    padding-left: 4vw;
  }
  
}

  /* ========== 1440px - 1920px Adjustment ========== */                                                                                                                                         
@media (min-width: 1440px) {                                                                                                                                                                   
  #event_2026_dance #hero .hero_subtitle {                                                                                                                                                     
    margin-top: calc(17.71vw - 100px);                                                                                                                                                         
  }                                                                                                                                                                                            
}  

  /* ========== Large Screen Adjustments ========== */
  /* Prevent characters from moving too far out on very wide screens (>= 1920px) */
@media (min-width: 1920px) {
  #event_2026_dance #hero .char_left {
    /* Fixed position calculation: Center - (1920px * 0.05 left + 1920px * 0.23 width) + alignment adjustment */
    /* Original left: 5% -> 96px at 1920px width */
    /* Distance from center = 960px - 96px = 864px */
    left: calc(50% - 864px); 
    width: 470px; /* Fixed width at 1920px * 23% */
  }
  
  #event_2026_dance #hero .char_right {
    /* Fixed position calculation: Center - (1920px * 0.06 right + 1920px * 0.19 width) + alignment adjustment */
    /* Original right: 6% -> 115.2px at 1920px width */
    /* Distance from center = 960px - 115.2px = 844.8px -> 845px */
    right: calc(50% - 845px);
    width: 370px; /* Fixed width at 1920px * 19% */
  }

  #event_2026_dance #hero .hero_cta {
    gap: 52px;
  }

  #event_2026_dance #hero .hero_cta .btn {
    width: 430px;
    height: 105px;
    max-width: 430px;
    flex: 0 0 auto;
  }

  #event_2026_dance #steps .step_btn {
    width: 525px;
    height: 105px;
    max-width: 525px;
    flex: 0 0 auto;
  }

  #event_2026_dance #steps .steps_grid {
    grid-template-columns: 1fr 450px 450px 450px 1fr;
    column-gap: 105px;
  }

  #event_2026_dance #steps .step_main {
    height: 485px;
  }

  #event_2026_dance #steps .step_image {
    height: 240px;
  }

  /* Fix arrows position for 1920px+ */
  #event_2026_dance #steps .step1_main::after,
  #event_2026_dance #steps .step2_main::after {
    left: calc(100% + 52.5px);
  }

  #event_2026_dance #hero .hero_subtitle {
    margin-top: calc(38vw - 590px);
    transform: translateY(2.5vw);
  }

  #event_2026_dance #hero::before {
    background: url('../images/section1-3.svg') no-repeat center -100px;
  }

  #event_2026_dance #hero {
    padding: 8rem 2rem 0;
    min-height: 41.67vw;
  }
}

@media (max-width: 767px) {
  #event_2026_dance #steps::before {
    height: 9vw;
  }

  #event_2026_dance #steps .steps_grid::before {
    height: 81%;
  }

  #event_2026_dance #rules .rules_content {
    max-height: 500px; /* Increased from 400px to show more text */
  }
}