* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family: "Livvic", sans-serif;
  background-color: #030712;
}

/* ==========================================================================
   BẢO VỆ CHỐNG SAO CHÉP & KÉO THẢ TÀI NGUYÊN (ZERO-LAG CSS PROTECTION)
   ========================================================================== */
img, svg, video {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* ==========================================================================
   LỚP NỀN FANTASY ĐỒNG BỘ LIỀN MẠCH TOÀN TRANG (UNIFIED SEAMLESS BACKGROUND)
   Lam Ngọc Băng Tuyết - Cosmic Ice Navy & Arctic Abyss Gradient
   ========================================================================== */
.unified-site-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: transparent !important;
  background-image: 
    radial-gradient(ellipse at 50% 15%, rgba(56, 189, 248, 0.10) 0%, transparent 65%),
    radial-gradient(circle at 10% 45%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 90% 65%, rgba(0, 242, 254, 0.06) 0%, transparent 45%) !important;
}

/* Khung hiển thị bối cảnh hậu kỳ Băng Tuyết Vĩnh Cửu cố định toàn màn hình (z-index: 0) */
.winter-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

body.theme-winter .winter-backdrop,
body:not(.theme-spring):not(.theme-autumn):not(.theme-halloween):not(.theme-ocean) .winter-backdrop {
  display: block !important;
}

/* Hiệu ứng làm mờ nhẹ (depth-of-field) và giảm sáng để hậu kỳ chìm sâu làm nền tự nhiên */
.winter-backdrop-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0.72) saturate(0.95) blur(0px);
  transform: scale(1.02);
  transform-origin: center center;
  opacity: 0.90;
}

/* Lớp phủ màn đêm băng giá tạo chiều sâu không gian, giúp chữ và khung nổi bật sắc nét */
.winter-backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 50%, rgba(6, 18, 38, 0.20) 0%, rgba(2, 8, 20, 0.55) 90%),
    linear-gradient(180deg, rgba(4, 12, 28, 0.15) 0%, rgba(3, 10, 24, 0.40) 60%, rgba(2, 8, 18, 0.60) 100%);
  pointer-events: none;
}

/* Canvas hiển thị các hạt tàn lửa vàng li ti bay ngẫu nhiên */
.fire-sparks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Canvas hiệu ứng tuyết rơi tương tác va chạm đọng rìa */
.snow-fall-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
  pointer-events: none;
}

.video,
.wrapper,
.section-server-info,
.subgame-section,
.ingame-events-section,
.roadmap-section,
.master-top-section,
.footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HERO BANNER ĐẦU TRANG (DYNAMIC GRAPHICS & SERVER OPENING DATES)
   ========================================================================== */
.hero-banner {
  /* TÙY CHỈNH THỜI GIAN LOÉ SÁNG TIA CHÉO (Ví dụ: 1s, 1.5s, 2s, 3s, ...) */
  --hero-flash-time: 5s;
  --hero-logo-scale: 1;
  --hero-logo-offset-y: 0px;
  --hero-milestones-scale: 1;
  --hero-milestones-offset-y: 0px;

  width: 100%;
  min-height: 720px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--mu-header-h, 62px);
  padding-bottom: 25px;
  z-index: 1;
}

/* Lớp ảnh nền chính: Đứng yên cố định, co dãn lên xuống theo nhịp thở nhân vật sống động */
.hero-banner__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: center bottom;
  z-index: 1;
  pointer-events: none;
  transition: background-image 0.4s ease;
  animation: heroBgBreathing 4.2s ease-in-out infinite;
  will-change: transform;
}

/* Hiệu ứng nhịp thở nhân vật: Co dãn lên xuống theo chiều dọc (scaleY), chân đứng cố định, không phóng to thu nhỏ chiều ngang */
@keyframes heroBgBreathing {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.038);
  }
}

/* Lớp khí quyển sương băng bắc cực cuộn trôi huyền ảo */
.hero-banner__smoke-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.52;
}
.hero-banner__smoke-layer::before,
.hero-banner__smoke-layer::after {
  content: '';
  position: absolute;
  width: 180%;
  height: 100%;
  bottom: 0;
  left: -40%;
  pointer-events: none;
}
.hero-banner__smoke-layer::before {
  background: radial-gradient(circle at 30% 80%, rgba(8, 28, 64, 0.6) 0%, transparent 50%),
              radial-gradient(circle at 70% 85%, rgba(6, 40, 80, 0.5) 0%, transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(0, 242, 254, 0.16) 0%, transparent 55%);
  animation: heroSmokeDriftA 16s linear infinite alternate;
}
.hero-banner__smoke-layer::after {
  background: radial-gradient(circle at 40% 75%, rgba(10, 32, 70, 0.55) 0%, transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.14) 0%, transparent 50%);
  animation: heroSmokeDriftB 22s linear infinite alternate;
}
@keyframes heroSmokeDriftA {
  0% { transform: translateX(-5%) translateY(0); }
  100% { transform: translateX(5%) translateY(-18px); }
}
@keyframes heroSmokeDriftB {
  0% { transform: translateX(6%) translateY(-12px); }
  100% { transform: translateX(-6%) translateY(6px); }
}

/* Quầng cực quang lam ngọc băng tuyết rực rỡ */
.hero-banner__fire-aura {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  background: 
    radial-gradient(ellipse 85% 55% at 50% 100%, rgba(0, 242, 254, 0.38) 0%, rgba(14, 165, 233, 0.22) 40%, rgba(3, 105, 161, 0.08) 65%, transparent 80%),
    radial-gradient(ellipse 60% 40% at 50% 82%, rgba(56, 189, 248, 0.28) 0%, transparent 60%);
  animation: heroFireAuraPulse 2.8s infinite alternate ease-in-out;
}
@keyframes heroFireAuraPulse {
  0% { opacity: 0.72; transform: scaleY(0.96); filter: brightness(0.95); }
  50% { opacity: 1; transform: scaleY(1.06); filter: brightness(1.22); }
  100% { opacity: 0.82; transform: scaleY(0.98); filter: brightness(1.05); }
}

/* Viền chân sương băng lạnh tỏa sáng lượn sóng phía đáy banner */
.hero-banner__fire-rim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 242, 254, 0.32) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 100%);
  mix-blend-mode: screen;
  animation: heroFireRimFlicker 1.8s infinite alternate ease-in-out;
}
@keyframes heroFireRimFlicker {
  0% { opacity: 0.6; height: 110px; }
  50% { opacity: 0.95; height: 135px; }
  100% { opacity: 0.75; height: 120px; }
}

/* Canvas hạt tàn băng lấp lánh bên trong hero banner */
.hero-banner__fire-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Hiệu ứng chuyển gradient mượt mà nối liền vào phần nội dung bên dưới */
.hero-banner__gradient-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 0%, rgba(3, 7, 18, 0.82) 60%, #030712 100%);
  z-index: 4;
  pointer-events: none;
}

.hero-banner__container {
  position: relative;
  z-index: 5;
  width: 1180px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Khối nội dung trung tâm: Slogan -> Logo -> Slogan -> Milestones */
.hero-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 6px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.hero-banner__slogan-top {
  margin-bottom: 6px;
  text-align: center;
}
.hero-slogan-top {
  max-height: 52px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
  animation: heroSloganGlow 3.5s infinite ease-in-out;
}

/* Logo giữa: Luôn nằm ở vị trí trung tâm tuyệt đối, kích thước lớn nổi bật */
.hero-banner__logo-wrap {
  margin: 2px 0 8px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  transform: translateY(var(--hero-logo-offset-y, 0px));
  transition: transform 0.25s ease;
}

/* Khối wrapper logo ôm sát ảnh để chứa tia sáng loé qua */
.hero-logo-box {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.hero-logo-img {
  max-height: calc(340px * var(--hero-logo-scale, 1));
  transition: max-height 0.25s ease;
  max-width: 95%;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(0, 242, 254, 0.55)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95));
  animation: heroLogoFloat 4.5s infinite ease-in-out;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.015); }
}

@keyframes heroSloganGlow {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(0, 242, 254, 0.35)); }
  50% { filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(0, 242, 254, 0.75)); }
}

/* Mask mặt nạ ánh sáng ôm sát biên độ hình ảnh Logo - Không cắt drop shadow của ảnh */
.hero-sheen-beam-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  overflow: hidden;
  animation: heroLogoFloat 4.5s infinite ease-in-out;
}

/* Tia sáng chéo quét qua Logo đúng chu kỳ 1s (Diamond White & Ice Cyan) */
.hero-sheen-beam--logo {
  position: absolute;
  top: -40%;
  left: 0;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 20%,
    rgba(255, 255, 255, 0.98) 48%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.98) 52%,
    rgba(0, 242, 254, 0.5) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.95), 0 0 45px rgba(0, 242, 254, 0.8);
  transform: skewX(-25deg);
  pointer-events: none;
  animation: heroDiagonalFlash var(--hero-flash-time, 1s) cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  mix-blend-mode: screen;
}

.hero-banner__slogan-bottom {
  margin-top: 2px;
  margin-bottom: 10px;
  text-align: center;
}
.hero-slogan-bottom {
  max-height: 48px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9));
}

/* 2 Ô Khung Mốc Mở Máy Chủ: Alpha Test & Open Beta */
.hero-banner__milestones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 4px;
  margin-bottom: 12px;
  width: 100%;
  flex-wrap: wrap;
  transform: translateY(var(--hero-milestones-offset-y, 0px)) scale(var(--hero-milestones-scale, 1));
  transform-origin: center top;
  transition: transform 0.25s ease;
}

.milestone-box {
  position: relative;
  width: 390px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Đệm hit-test viền dưới: Tránh rung giật chuột khi khung nâng lên */
.milestone-box::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  bottom: -10px;
  z-index: 0;
  pointer-events: auto;
}

.milestone-box:hover {
  transform: translateY(-5px);
}

/* Mặt nạ ôm sát từng pixel ảnh khung đã tách nền: Chỉ loé ở phần có hình họa khung, phần nền trong suốt không bị loé */
.milestone-box__sheen-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  overflow: hidden;
}

/* Tia sáng chéo quét qua khung Alpha Test & Open Beta */
.hero-sheen-beam--milestone {
  position: absolute;
  top: -40%;
  left: 0;
  width: 50%;
  height: 180%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 20%,
    rgba(255, 255, 255, 0.98) 48%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.98) 52%,
    rgba(0, 242, 254, 0.5) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.9), 0 0 38px rgba(0, 242, 254, 0.75);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
  animation: heroDiagonalFlash var(--hero-flash-time, 1s) cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  mix-blend-mode: screen;
}

/* KEYFRAME TIA SÁNG CHÉO QUÉT QUA ĐÚNG 1 GIÂY LOÉ 1 LẦN:
   - 0s -> 0.48s: Tia sáng loé vút qua rực rỡ từ trái sang phải
   - 0.49s -> 1.00s: Giãn cách nghỉ ngơi, chuẩn bị đúng 1.0s tiếp theo phát tia sáng mới
*/
@keyframes heroDiagonalFlash {
  0% {
    transform: translateX(-220%) skewX(-25deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  48% {
    transform: translateX(340%) skewX(-25deg);
    opacity: 1;
  }
  49%, 100% {
    transform: translateX(340%) skewX(-25deg);
    opacity: 0;
  }
}

.milestone-box__frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  filter: brightness(100%) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
  transition: filter 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: filter;
}

.milestone-box:hover .milestone-box__frame-bg {
  filter: brightness(110%) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(0, 0, 0, 0.6));
}

/* Fallback khi chưa tải ảnh khung riêng */
.milestone-box__frame-bg.default-frame {
  background: linear-gradient(135deg, rgba(6, 17, 34, 0.92) 0%, rgba(12, 28, 54, 0.95) 50%, rgba(4, 10, 22, 0.92) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.7);
  border-radius: 12px;
  box-shadow: 
    0 0 20px rgba(0, 242, 254, 0.35),
    inset 0 0 15px rgba(56, 189, 248, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.85);
}

/* Căn chỉnh tuyệt đối lọt lòng vào dải ruy băng bên dưới tiêu đề Alpha Test / Open Beta */
/* Căn chỉnh tuyệt đối lọt lòng vào dải ruy băng bên dưới tiêu đề Alpha Test / Open Beta */
.milestone-box__content {
  position: absolute;
  left: 50%;
  top: 67%;
  transform: translate(-50%, -50%);
  width: 82%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
}

/* Typography thời gian: Lam Ngọc Băng Tuyết sắc nét, rộng đều 2 bên cân đối chuẩn xác */
.milestone-box__time {
  display: inline-block;
  font-family: 'Barlow Condensed', 'Cinzel', 'Livvic', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2.8px;
  word-spacing: 5px;
  transform: scaleX(1.06);
  text-transform: uppercase;
  color: #f0f9ff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.98),
    0 0 10px rgba(0, 242, 254, 0.75),
    0 0 18px rgba(14, 165, 233, 0.5);
  white-space: nowrap;
  text-align: center;
  transition: color 0.28s cubic-bezier(0.25, 1, 0.5, 1), text-shadow 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: color, text-shadow;
  -webkit-font-smoothing: antialiased;
}

.milestone-box:hover .milestone-box__time {
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.98),
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(0, 242, 254, 0.9),
    0 0 36px rgba(14, 165, 233, 0.7);
}

/* Hào quang hổ phách ánh vàng riêng cho mốc Open Beta */
.milestone-box--open .milestone-box__time {
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.98),
    0 0 10px rgba(255, 160, 40, 0.85),
    0 0 18px rgba(249, 115, 22, 0.6);
}

.milestone-box--open:hover .milestone-box__time {
  color: #ffffff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.98),
    0 0 14px rgba(255, 255, 255, 0.95),
    0 0 24px rgba(255, 170, 50, 0.95),
    0 0 36px rgba(249, 115, 22, 0.75);
}

/* Khối 4 nút Server nằm ngoài và bên dưới Hero Banner */
.section-servers-bar {
  width: 100%;
  position: relative;
  z-index: 10;
  padding: 15px 0 35px 0;
  display: flex;
  justify-content: center;
}

.section-servers-bar .servers {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 0;
  position: relative;
  z-index: 10;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media screen and (max-width: 1185px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .hero-banner {
    min-height: auto;
    padding-bottom: 30px;
  }

  .hero-logo-img {
    max-height: 280px;
  }

  .section-servers-bar {
    padding: 10px 0 25px 0;
  }

  .section-servers-bar .servers {
    justify-content: center;
    padding-left: 0;
  }
  
  .container {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
}

@media screen and (max-width: 900px) {
  .hero-logo-img {
    max-height: 220px;
  }
  .hero-banner__milestones {
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .milestone-box {
    width: 330px;
    height: 128px;
  }
  .milestone-box__content {
    top: 67%;
    height: 28px;
    width: 82%;
  }
  .milestone-box__time {
    font-size: 17px;
    letter-spacing: 2.2px;
    word-spacing: 4px;
    transform: scaleX(1.05);
  }
}

@media screen and (max-width: 480px) {
  .hero-logo-img {
    max-height: 140px;
  }
  .hero-slogan-top, .hero-slogan-bottom {
    max-height: 32px;
  }
  .milestone-box {
    width: 290px;
    height: 112px;
  }
  .milestone-box__content {
    top: 67%;
    height: 24px;
    width: 84%;
  }
  .milestone-box__time {
    font-size: 14.5px;
    letter-spacing: 1.5px;
    word-spacing: 3px;
    transform: scaleX(1.04);
  }
}

.container {
  width: 1180px;
  margin: 0 auto;
  position: relative;
}

.links {
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.links ul {
  border-radius: 60px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(10, 18, 32, 0.88);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
.links a {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  padding: 3px 12px;
  display: block;
  transition: all 0.2s ease;
}
.links a:hover {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
  text-decoration: none;
}

.servers {
  margin-top: 1032px;
  display: flex;
  flex-wrap: wrap;
  padding-left: 39px;
  position: relative;
  z-index: 10;
}
.servers .server {
  width: 270px;
  height: 112px;
  margin: 0;
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  position: relative;
  display: block;
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 10px rgba(56, 189, 248, 0.28));
}
.servers .server.coming{
  background-image: url(../images/coming.png);
}
.servers .server + .server:before {
  display: none !important;
}
.servers .server:hover,
.servers .server.active {
  filter: brightness(120%) drop-shadow(0 14px 26px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 24px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.85)) !important;
  transform: translateY(-6px) scale(1.04);
}
.servers .server.server-hk {
  background: url(../images/sv-hk.png);
}
.servers .server.server-tl {
  background: url(../images/sv-tl.png);
}
.servers .server.server-tm {
  background: url(../images/sv-tm.png);
}
.servers .server.server-bv {
  background: url(../images/sv-bv.png);
}
.servers .server.server-ht {
  background: url(../images/sv-ht.png);
}
.servers .server .countdown{
  width: 180px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 5px #000;
  position: absolute;
  bottom: 10px;
}
.servers .server .countdown .kkc-days-text{
  margin-right: 20px;
}

.servers .server .new{
  width: 74px;
  height: 43px;
  background: url(../images/new.png) no-repeat;
  position: absolute;
  top: -2px;
  left: 64px;
}
.servers .server .event{
  width: 74px;
  height: 43px;
  background: url(../images/event.png) no-repeat;
  position: absolute;
  top: 32px;
  left: 58px;
}


#svg-servers {
  display: none !important;
}

.footer {
  text-align: center;
  font-size: 14px;
  padding-bottom: 60px;
  padding-top: 30px;
}
.footer .ft1 {
  font-weight: 700;
  color: #fff;
}
.footer .ft2 {
  color: #a0a0a0;
}
.footer .ft3 a {
  color: #ffba00;
  text-decoration: none;
}
.footer .ft3 a:hover {
  color: #ff0;
}
/* ===== CHAT FLOAT BUTTON ===== */
.chat-group {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .3s ease, box-shadow .3s ease;
}

.chat-btn img {
  width: 32px;
  height: 32px;
}

.chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* màu nền theo dịch vụ */
.chat-btn.mess { background: #0084ff; }
.chat-btn.zalo { background: #0068ff; }

/* ===== PULSE EFFECT ===== */
.pulse {
  position: relative;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  background: inherit;
  opacity: .6;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .chat-btn {
    width: 50px;
    height: 50px;
  }
  .chat-btn img {
    width: 28px;
    height: 28px;
  }
}

@media screen and (max-width: 1185px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .wrapper {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .container {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  #svg-servers {
    max-width: 100% !important;
    height: auto !important;
  }
  .servers {
    overflow: hidden !important;
    max-width: 100vw !important;
  }
}

/*# sourceMappingURL=style.css.map */

/* ==========================================================================
   SECTION 2: THÔNG TIN SUB GAME
   ========================================================================== */

.subgame-section {
  width: 100%;
  position: relative;
  background: transparent !important;
  background-image: none !important;
  padding: 40px 20px 70px 20px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subgame-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* SECTION HEADER & TITLE */
.subgame-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
  z-index: 4;
}

.subgame-title-frame {
  position: relative;
  width: 460px;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subgame-title-frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}

.subgame-section-title {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.98),
    0 4px 16px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(56, 189, 248, 0.4);
  margin: 0;
  padding: 0 45px;
  padding-top: 50px; /* Căn giữa trong plaque tối của khung */
  text-align: center;
  white-space: nowrap;
}

.subgame-divider {
  margin-top: -6px;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.subgame-divider-img {
  width: 250px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

/* TABLE CONTAINER */
.subgame-table-container {
  position: relative;
  width: 760px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  margin-top: 15px;
}

/* TABLE HEADER BANNER */
.subgame-table-banner {
  position: relative;
  width: 440px;
  max-width: 90%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -36px;
  z-index: 5;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95));
  transition: transform 0.25s ease;
}

.subgame-table-banner:hover {
  transform: translateY(-2px);
}

.subgame-table-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85));
}

.subgame-table-title {
  position: relative;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.98),
    0 0 12px rgba(56, 189, 248, 0.6);
  margin-top: 4px;
  white-space: nowrap;
  text-align: center;
}

/* TABLE PANEL CARD */
.subgame-panel-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  z-index: 3;
  padding: 44px 24px 20px 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95), inset 0 0 20px rgba(56, 189, 248, 0.08);
  background: rgba(10, 18, 32, 0.94);
  border: 1.5px solid rgba(125, 211, 252, 0.35);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

.subgame-panel-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
}

/* TABLE CONTENT */
.subgame-table-element {
  position: relative;
  z-index: 2;
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.subgame-table-element thead th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  padding: 12px 10px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98);
  width: 16.666%;
  white-space: nowrap;
  border-bottom: 2px solid rgba(56, 189, 248, 0.4);
}

.subgame-table-element tbody td {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 10px;
  text-align: center;
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.subgame-table-element tbody td.status-yes {
  color: #7dd3fc;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.subgame-table-element tbody td.status-no {
  color: #fca5a5;
  font-weight: 700;
}

.subgame-row-alt-0 {
  background: rgba(13, 24, 42, 0.95);
}

.subgame-row-alt-1 {
  background: rgba(22, 38, 62, 0.95);
}

/* RESPONSIVE TABLET */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .subgame-table-container {
    width: 100%;
    max-width: 700px;
  }
  .subgame-table-banner {
    width: 390px;
    height: 72px;
  }
  .subgame-table-title {
    font-size: 19px;
  }
  .subgame-table-element thead th {
    font-size: 17px;
    padding: 10px 6px;
  }
  .subgame-table-element tbody td {
    font-size: 16px;
    padding: 10px 6px;
  }
}

/* RESPONSIVE MOBILE (< 768px) */
@media screen and (max-width: 767px) {
  .subgame-section {
    padding: 30px 12px 50px 12px;
    width: 100%;
    overflow-x: hidden;
  }
  .subgame-header {
    margin-bottom: 15px;
  }
  .subgame-title-frame {
    width: 290px;
    height: 100px;
  }
  .subgame-section-title {
    font-size: 16px;
    padding: 0 35px;
    padding-top: 20px;
    letter-spacing: 1.2px;
  }
  .subgame-divider-img {
    width: 190px;
  }
  .subgame-table-container {
    width: 100%;
    max-width: 360px;
    margin-top: 10px;
  }
  .subgame-table-banner {
    width: min(300px, 92%);
    height: 60px;
    margin-bottom: -25px;
  }
  .subgame-table-title {
    font-size: 15px;
    letter-spacing: 0.8px;
    margin-top: 3px;
  }
  .subgame-panel-card {
    padding: 34px 12px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(155, 90, 23, 0.4);
  }
  .subgame-panel-card-bg {
    display: none;
  }
  
  /* Chuyển từng dòng thành thẻ dọc trên mobile */
  .subgame-table-element,
  .subgame-table-element thead,
  .subgame-table-element tbody,
  .subgame-table-element th,
  .subgame-table-element td,
  .subgame-table-element tr {
    display: block;
    width: 100%;
  }
  
  .subgame-table-element thead {
    display: none;
  }
  
  .subgame-table-element tbody tr {
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(155, 90, 23, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  }
  
  .subgame-table-element tbody tr:last-child {
    margin-bottom: 0;
  }
  
  .subgame-table-element tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    font-size: 15px;
    border-bottom: 1px solid rgba(155, 90, 23, 0.18);
    text-align: right;
    box-sizing: border-box;
  }
  
  .subgame-table-element tbody td:last-child {
    border-bottom: none;
  }
  
  .subgame-table-element tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    color: #ffeab0;
    text-align: left;
    padding-right: 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
  }
}

/* ==========================================================================
   SECTION 3: SỰ KIỆN INGAME
   ========================================================================== */

.ingame-events-section {
  width: 100%;
  position: relative;
  background: transparent !important;
  background-image: none !important;
  padding: 40px 20px 80px 20px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ingame-events-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* HEADER & TITLES */
.ingame-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 25px;
  z-index: 4;
}

.ingame-title-frame {
  position: relative;
  width: 360px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingame-title-frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.85));
}

.ingame-section-title {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f0f9ff;
  text-transform: uppercase;
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.95),
    0 4px 16px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 242, 254, 0.7),
    0 0 28px rgba(56, 189, 248, 0.4);
  margin: 0;
  padding: 0 45px;
  padding-top: 26px; /* Căn giữa trong plaque tối của khung */
  text-align: center;
  white-space: nowrap;
}

/* SUBTITLE FRAME */
.ingame-subtitle-frame {
  position: relative;
  width: 480px;
  max-width: 95%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  z-index: 4;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.ingame-subtitle-frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
}

.ingame-subtitle-text {
  position: relative;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f0f9ff;
  text-transform: uppercase;
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.98),
    0 0 12px rgba(0, 242, 254, 0.8),
    0 0 20px rgba(56, 189, 248, 0.5);
  margin: 0;
  padding: 0 40px;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

/* FANTASY PANEL CARD */
.ingame-panel-card {
  position: relative;
  width: 1100px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  z-index: 3;
  padding: 30px 24px 35px 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 242, 254, 0.16), inset 0 0 20px rgba(56, 189, 248, 0.08);
  background: rgba(6, 17, 34, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
}

/* EVENT GROUPS */
.event-group-block {
  margin-bottom: 30px;
}
.event-group-block:last-child {
  margin-bottom: 0;
}

.event-group-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.event-group-banner {
  width: 320px;
  height: 46px;
  box-sizing: border-box;
  border-style: solid;
  border-width: 0 46px 0 46px;
  border-image-source: url('../assets/ui/Titles/frame_title_wing_02.png');
  border-image-slice: 0 46 0 46 fill;
  border-image-repeat: stretch;
  background: url('../assets/ui/Titles/frame_title_wing_02.png') no-repeat center center / 100% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

.event-group-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98);
  margin-top: -2px;
  white-space: nowrap;
}

/* EVENT TABLE (4 COLUMNS) */
.event-table-element {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  overflow: hidden;
}

.event-table-element thead th {
  background: rgba(10, 18, 32, 0.98);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18.5px;
  font-weight: 800;
  color: #ffffff;
  padding: 12px 14px;
  text-align: left;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98);
  border-bottom: 2px solid rgba(56, 189, 248, 0.4);
}

.event-table-element thead th.col-center {
  text-align: center;
}

/* 5 Cột: Sự kiện (18%), Phần thưởng (31%), Thời gian (22%), Bản đồ (12%), Trạng thái (17%) */
.event-table-element th:nth-child(1),
.event-table-element td:nth-child(1) { width: 18%; }

.event-table-element th:nth-child(2),
.event-table-element td:nth-child(2) { width: 31%; }

.event-table-element th:nth-child(3),
.event-table-element td:nth-child(3) { width: 22%; }

.event-table-element th:nth-child(4),
.event-table-element td:nth-child(4) { width: 12%; text-align: center; }

.event-table-element th:nth-child(5),
.event-table-element td:nth-child(5) { width: 17%; text-align: center; }

.event-table-element tbody td {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding: 12px 14px;
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1.4;
  word-break: break-word;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.event-row-alt-0 {
  background: rgba(13, 24, 42, 0.95);
}

.event-row-alt-1 {
  background: rgba(22, 38, 62, 0.95);
}

.event-table-element tbody tr:hover {
  background: rgba(20, 36, 64, 0.98);
}

.event-col-name {
  color: #7dd3fc !important;
  font-weight: 800 !important;
  font-size: 17.5px !important;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.98) !important;
}

.wc-highlight {
  color: #fb923c !important;
  font-weight: 800 !important;
  text-shadow: 0 0 6px rgba(249, 115, 22, 0.6) !important;
}

/* EVENT LIVE STATUS BADGES */
.event-col-status {
  text-align: center !important;
  vertical-align: middle;
}

.event-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Đang diễn ra: Màu lửa rực rỡ, pulse nhấp nháy */
.event-live-badge.badge-ongoing {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.35));
  border: 1px solid #ef4444;
  color: #ffedd5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
  animation: ongoingPulse 2s infinite ease-in-out;
}

.event-live-badge.badge-ongoing .badge-text {
  color: #fca5a5;
  font-weight: 800;
  text-transform: uppercase;
}

.event-live-badge.badge-ongoing .badge-timer {
  color: #fef08a;
  font-weight: 800;
  font-family: 'Consolas', monospace;
  font-size: 13px;
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 4px #ef4444); }
}

@keyframes ongoingPulse {
  0%, 100% { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 0 10px rgba(239, 68, 68, 0.4); }
  50% { border-color: rgba(251, 146, 60, 1); box-shadow: 0 0 16px rgba(249, 115, 22, 0.7); }
}

/* Đếm ngược: Màu vàng kim / xanh cyan thanh lịch */
.event-live-badge.badge-countdown {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #e2e8f0;
}

.event-live-badge.badge-countdown .badge-hourglass {
  font-size: 13px;
  animation: hourglassRotate 4s infinite ease-in-out;
}

.event-live-badge.badge-countdown .badge-text {
  color: #94a3b8;
  font-size: 12.5px;
}

.event-live-badge.badge-countdown .badge-timer {
  color: #fbbf24;
  font-weight: 800;
  font-family: 'Consolas', monospace;
  font-size: 13.5px;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.event-live-badge.badge-notice {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 12px;
}

@keyframes hourglassRotate {
  0%, 100% { transform: rotate(0deg); }
  45% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  95% { transform: rotate(180deg); }
}

/* GROUP DIVIDER */
.event-group-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px auto 10px auto;
}

.event-group-divider-img {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

/* RESPONSIVE TABLET */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .ingame-events-section {
    padding: 35px 15px 70px 15px;
    box-sizing: border-box;
  }
  .ingame-events-inner {
    width: 100%;
    max-width: 96%;
    box-sizing: border-box;
  }
  .ingame-panel-card {
    width: 100%;
    box-sizing: border-box;
    padding: 24px 16px;
  }
  .event-table-element thead th {
    font-size: 16.5px;
    padding: 10px 8px;
  }
  .event-table-element tbody td {
    font-size: 15px;
    padding: 9px 8px;
  }
  .event-col-name {
    font-size: 16px !important;
  }
}

/* RESPONSIVE MOBILE (< 768px) */
@media screen and (max-width: 767px) {
  .ingame-events-section {
    width: 100%;
    padding: 30px 10px 60px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .ingame-events-inner {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
  }
  .ingame-title-frame {
    width: 290px;
    height: 100px;
  }
  .ingame-section-title {
    font-size: 16px;
    padding: 0 35px;
    padding-top: 20px;
  }
  .ingame-subtitle-frame {
    width: 320px;
    height: 65px;
    margin-top: -5px;
  }
  .ingame-subtitle-text {
    font-size: 15px;
    padding: 0 25px;
    letter-spacing: 1px;
  }
  .ingame-panel-card {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 10px;
    border-radius: 14px;
  }
  .event-group-banner {
    width: 270px;
    height: 40px;
    border-width: 0 38px 0 38px;
  }
  .event-group-title {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  /* Chuyển từng sự kiện thành 1 thẻ dọc */
  .event-table-element,
  .event-table-element thead,
  .event-table-element tbody,
  .event-table-element th,
  .event-table-element td,
  .event-table-element tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  .event-table-element thead {
    display: none;
  }
  
  .event-table-element tbody tr {
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    padding: 6px 0;
    box-sizing: border-box;
  }
  
  .event-table-element tbody td {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 7px 10px;
    font-size: 14px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    text-align: right;
    box-sizing: border-box;
  }
  
  .event-table-element tbody td:last-child {
    border-bottom: none;
  }
  
  .event-table-element tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    color: #38bdf8;
    text-align: left;
    padding-right: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    min-width: 76px;
    flex-shrink: 0;
  }
  
  .event-cell-val {
    text-align: right;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    font-size: 14px;
  }

  .event-table-element th:nth-child(1),
  .event-table-element td:nth-child(1),
  .event-table-element th:nth-child(2),
  .event-table-element td:nth-child(2),
  .event-table-element th:nth-child(3),
  .event-table-element td:nth-child(3),
  .event-table-element th:nth-child(4),
  .event-table-element td:nth-child(4),
  .event-table-element th:nth-child(5),
  .event-table-element td:nth-child(5) {
    width: 100%;
    text-align: right;
  }
}

/* ==========================================================================
   SECTION 4: LỘ TRÌNH PHÁT TRIỂN (DEVELOPMENT ROADMAP)
   Fantasy MU Timeline with 8 unique text-highlight-frames
   ========================================================================== */

.roadmap-section {
  position: relative;
  width: 100%;
  background: transparent !important;
  background-image: none !important;
  padding: 45px 20px 50px 20px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roadmap-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

/* HEADER & TITLE */
.roadmap-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 25px;
  z-index: 4;
}

.roadmap-title-frame {
  position: relative;
  width: 460px;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadmap-title-frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}

.roadmap-section-title {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f0f9ff;
  text-transform: uppercase;
  text-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.95),
    0 4px 16px rgba(0, 0, 0, 0.9),
    0 0 16px rgba(0, 242, 254, 0.7),
    0 0 28px rgba(56, 189, 248, 0.4);
  margin: 0;
  padding: 0 45px;
  padding-top: 50px;
  text-align: center;
  white-space: nowrap;
}

.roadmap-divider {
  margin-top: -12px;
  display: flex;
  justify-content: center;
}

.roadmap-divider-img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

/* ROADMAP CONTENT WRAPPER (Khung định vị chuẩn xác để viền trên nhân vật luôn bằng với ô lộ trình) */
.roadmap-content-wrap {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 20px auto 0 auto;
}

/* TIMELINE CONTAINER */
.roadmap-timeline-container {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Trục dọc timeline phát sáng nối từ mốc 1 đến mốc 8 */
.roadmap-timeline-line {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, 
    #38bdf8 0%, 
    #f97316 35%, 
    #ef4444 65%, 
    #38bdf8 100%);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* TIMELINE ITEM (1 HÀNG TOÀN CHIỀU RỘNG ĐỂ GỐI LÊN NHAU) */
.roadmap-item {
  position: relative;
  width: 100%;
  display: flex;
  box-sizing: border-box;
  margin-bottom: 0;
  margin-top: 0;
  z-index: 2;
}

.roadmap-item-left {
  justify-content: flex-start;
  left: 0;
  padding: 0;
}

.roadmap-item-right {
  justify-content: flex-end;
  left: 0;
  padding: 0;
}

/* Khoảng cách giữa card và timeline: đúng 34px (nằm trong khoảng chuẩn 28-40px) */
.roadmap-item-left .roadmap-card {
  width: calc(50% - 34px);
  max-width: 520px;
  margin-left: 0;
  margin-right: auto;
}

.roadmap-item-right .roadmap-card {
  width: calc(50% - 34px);
  max-width: 520px;
  margin-left: auto;
  margin-right: 0;
}

/* Milestone Diamond Marker: Luôn nằm chính giữa đường timeline */
.roadmap-milestone {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.milestone-diamond {
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, #fef08a 0%, #f97316 60%, #c2410c 100%);
  transform: rotate(45deg);
  border: 2px solid #fed7aa;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.8), 0 0 24px rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milestone-number {
  transform: rotate(-45deg);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
  line-height: 1;
}

.roadmap-item:hover .milestone-diamond {
  transform: rotate(45deg) scale(1.18);
  box-shadow: 0 0 20px rgba(249, 115, 22, 1), 0 0 30px rgba(239, 68, 68, 0.8);
}

/* Connector Lines: Nối từ mép card đến trục timeline (34px) */
.roadmap-item-left::after {
  content: '';
  position: absolute;
  left: calc(50% - 34px);
  top: 41px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), #f97316);
  pointer-events: none;
}

.roadmap-item-right::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 41px;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, #f97316, rgba(56, 189, 248, 0.2));
  pointer-events: none;
}

/* ROADMAP CARD */
.roadmap-card {
  position: relative;
  background: rgba(10, 18, 32, 0.94);
  border: 1.5px solid rgba(125, 211, 252, 0.35);
  border-radius: 12px;
  padding: 22px 20px 24px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.75);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.95), 0 0 22px rgba(249, 115, 22, 0.4);
}

/* Card Header & Highlight Frame */
.roadmap-card-header {
  text-align: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-title-highlight-wrap {
  position: relative;
  width: 290px;
  max-width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.roadmap-title-highlight-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

.roadmap-stage-title {
  position: relative;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98);
  margin: 0;
  padding: 0 32px;
  text-align: center;
  white-space: nowrap;
}

.roadmap-stage-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.roadmap-stage-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.roadmap-stage-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.roadmap-stage-date .date-label {
  color: #cbd5e1;
  margin-right: 4px;
}

.roadmap-stage-date .date-value {
  color: #fbbf24;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.roadmap-repeat-badge-wrap {
  margin-top: 5px;
}

.roadmap-repeat-badge {
  display: inline-block;
  color: #ffffff;
  background: linear-gradient(90deg, #ef4444, #f97316);
  border: 1px solid #fed7aa;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Card Body Groups */
.roadmap-card-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.roadmap-group {
  background: rgba(15, 24, 42, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
}

.roadmap-group-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16.5px;
  font-weight: 800;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
  display: flex;
  align-items: center;
}

.roadmap-group-title::before {
  content: '★';
  font-size: 11px;
  color: #f97316;
  margin-right: 6px;
  text-shadow: 0 0 6px rgba(249, 115, 22, 0.8);
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.roadmap-list li {
  position: relative;
  padding-left: 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.45;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  word-break: break-word;
}

.roadmap-list li:last-child {
  margin-bottom: 0;
}

.roadmap-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 9px;
  color: #38bdf8;
  text-shadow: 0 0 5px rgba(56, 189, 248, 0.6);
}

/* MAX Badge Highlight */
.stat-max {
  display: inline-block;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: 1px solid rgba(254, 202, 202, 0.5);
  padding: 1px 7px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
  font-size: 12.5px;
  vertical-align: middle;
  margin-left: 4px;
}

/* RESPONSIVE TABLET */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .roadmap-section {
    padding: 40px 15px 70px 15px;
    box-sizing: border-box;
  }
  .roadmap-inner {
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .roadmap-timeline-container {
    max-width: 100%;
  }
  .roadmap-item-left .roadmap-card {
    width: calc(50% - 28px);
  }
  .roadmap-item-right .roadmap-card {
    width: calc(50% - 28px);
  }
  .roadmap-item-left::after {
    left: calc(50% - 28px);
    width: 28px;
  }
  .roadmap-item-right::after {
    left: 50%;
    width: 28px;
  }
  .roadmap-card {
    padding: 18px 15px;
  }
  .roadmap-title-highlight-wrap {
    width: 250px;
    height: 52px;
  }
  .roadmap-stage-title {
    font-size: 16.5px;
    padding: 0 24px;
  }
  .roadmap-list li {
    font-size: 14.5px;
  }
}

/* RESPONSIVE MOBILE (< 768px) */
@media screen and (max-width: 767px) {
  .roadmap-section {
    width: 100%;
    padding: 30px 10px 50px 10px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .roadmap-inner {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    padding: 0;
  }
  .roadmap-title-frame {
    width: 290px;
    height: 100px;
  }
  .roadmap-section-title {
    font-size: 16px;
    padding: 0 35px;
    padding-top: 20px;
  }
  .roadmap-divider-img {
    width: 210px;
  }
  .roadmap-timeline-container {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 0 0 0;
    margin-top: 10px;
  }
  .roadmap-timeline-line {
    left: 14px;
    transform: none;
  }
  .roadmap-item {
    width: 100%;
    display: block;
    padding-left: 36px !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .roadmap-item-left .roadmap-card,
  .roadmap-item-right .roadmap-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .roadmap-item::after {
    left: 14px !important;
    right: auto !important;
    width: 22px !important;
    top: 34px;
  }
  .roadmap-milestone {
    left: 1px !important;
    right: auto !important;
    transform: none !important;
    top: 20px;
    width: 26px;
    height: 26px;
  }
  .milestone-diamond {
    width: 22px;
    height: 22px;
  }
  .milestone-number {
    font-size: 11.5px;
  }
  .roadmap-card {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 12px;
    border-radius: 10px;
  }
  .roadmap-title-highlight-wrap {
    width: min(260px, 100%);
    height: 52px;
  }
  .roadmap-stage-title {
    font-size: 15.5px;
    padding: 0 20px;
  }
  .roadmap-group {
    padding: 10px 11px;
  }
  .roadmap-group-title {
    font-size: 15px;
  }
  .roadmap-list li {
    font-size: 14px;
    padding-left: 16px;
    margin-bottom: 5px;
  }
}

/* ==========================================================================
   SECTION 6: SỰ KIỆN ĐUA TOP MASTER
   Podium Ranking with Top 1, Top 2, Top 3 frames & Event Rules
   ========================================================================== */

.master-top-section {
  position: relative;
  width: 100%;
  background: transparent !important;
  background-image: none !important;
  padding: 55px 20px 65px 20px;
  box-sizing: border-box;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.master-top-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 4;
}

/* HEADER & TITLE (Trang trí bằng đường kẻ và hình thoi CSS) */
.master-top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
  z-index: 4;
  width: 100%;
}

.master-top-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 12px;
}

.master-title-line-left,
.master-title-line-right {
  flex: 1;
  max-width: 160px;
  height: 2px;
}

.master-title-line-left {
  background: linear-gradient(90deg, transparent, #0284c7, #38bdf8);
}

.master-title-line-right {
  background: linear-gradient(90deg, #38bdf8, #0284c7, transparent);
}

.master-title-diamond {
  color: #00f2fe;
  font-size: 15px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
  line-height: 1;
}

.master-top-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f0f9ff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 242, 254, 0.7);
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* META: TIME & TARGET BADGE */
.master-top-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.master-top-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17.5px;
  font-weight: 600;
  color: #e0f2fe;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.master-top-time strong {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.master-top-target-badge {
  display: inline-block;
  color: #e0f2fe;
  background: linear-gradient(90deg, rgba(2, 132, 199, 0.9), rgba(6, 17, 34, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.75);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 20px;
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4), inset 0 0 8px rgba(56, 189, 248, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 242, 254, 0.6);
}

/* PODIUM RANKING AREA (CSS GRID) */
.master-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "top2 top1 top3";
  align-items: start;
  gap: 26px;
  padding-top: 60px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* RANK ARTICLES & 3D FLIP CONTAINER */
.master-rank {
  position: relative;
  justify-self: center;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease, filter 0.25s ease;
  outline: none;
}

.master-rank:focus-visible {
  outline: 2px solid #ffca42;
  outline-offset: 4px;
  border-radius: 8px;
}

/* 3D FLIPPER ELEMENT */
.rank-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  will-change: transform;
}

/* ==========================================================================
   KINETIC 3D CARD SLAM & IMPACT EFFECT (ĐUA TOP THẦN THOẠI)
   ========================================================================== */
.rank-slam-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99998;
}

/* Local Ranking Container Shake (Chấn động va đập uy lực không lag trang) */
@keyframes rankingSlamShake {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-8px, 10px) rotate(-0.5deg); }
  25% { transform: translate(10px, -8px) rotate(0.4deg); }
  38% { transform: translate(-7px, -5px) rotate(-0.3deg); }
  50% { transform: translate(6px, 6px) rotate(0.2deg); }
  65% { transform: translate(-4px, 3px) rotate(-0.1deg); }
  80% { transform: translate(2px, -1px); }
  100% { transform: translate(0, 0); }
}

.ranking-slam-shake {
  animation: rankingSlamShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Màu hào quang nguyên tố theo từng Rank */
.master-rank--1 { --rank-glow-color: #ffd700; --rank-glow-rgb: 255, 215, 0; }
.master-rank--2 { --rank-glow-color: #38bdf8; --rank-glow-rgb: 56, 189, 248; }
.master-rank--3 { --rank-glow-color: #f43f5e; --rank-glow-rgb: 244, 63, 94; }

/* Sóng Xung Kích Hình Thể Khung Thật Đã Tách Nền (Sculpted Silhouette Shockwave) */
.rank-silhouette-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transform-origin: 50% 50%;
}

@keyframes rankSilhouetteShockwave {
  0% {
    transform: scale(1.0);
    opacity: 0.95;
    filter: brightness(2.8) drop-shadow(0 0 25px var(--rank-glow-color, #ffd700));
  }
  40% {
    opacity: 0.7;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
    filter: brightness(1.6) drop-shadow(0 0 45px var(--rank-glow-color, #ffd700));
  }
}

.rank-silhouette-anim {
  animation: rankSilhouetteShockwave 0.52s cubic-bezier(0.12, 0.85, 0.28, 1) forwards;
}

/* Chớp sáng chấn động trên chính khung thật (Panel Impact Flash) */
.master-rank__panel.panel-impact-flash {
  filter: brightness(2.5) drop-shadow(0 0 35px var(--rank-glow-color, #ffd700)) !important;
  transition: filter 0.08s ease;
}


/* KHUNG THẬT KHÔNG PHẲNG: TÔN TẠO CHIỀU SÂU ĐA TẦNG TRỤC Z (3D PARALLAX DEPTH) */
.rank-card-face {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rank-card-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}

.rank-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
  z-index: 1;
}

.master-rank.is-flipped .rank-card-front {
  pointer-events: none;
}

.master-rank.is-flipped .rank-card-back {
  pointer-events: auto;
}

/* Lớp khung ảnh nền chạm nổi (Base Layer Z=1px) */
.master-rank__panel {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s ease;
}

.master-rank__panel--back {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.95));
}

/* Dải băng tuyết đỉnh ôm sát vương miện nằm nổi phía trước - BẮT BUỘC absolute để không đội chiều cao thẻ */
.master-rank .snow-crest {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Nhũ băng bừng sáng khi va đập */
.snow-crest.frost-glint-flash {
  filter: drop-shadow(0 0 16px #ffffff) drop-shadow(0 0 28px rgba(0, 242, 254, 1)) brightness(1.7) !important;
  transition: filter 0.1s ease;
}

.master-rank.is-flipped .rank-flipper {
  transform: rotateY(180deg);
}

/* LÒNG KHUNG: THÔNG TIN PHẦN THƯỞNG MẶT TRƯỚC (NỔI CAO Z=30px, ĐẢM BẢO 100% RÕ RÀNG TRÊN NỀN KHUNG) */
.master-rank__content {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  height: 26%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  pointer-events: none;
}

.master-rank__content--back {
  z-index: 10;
}

/* MẶT SAU: KHỐI TÔN VINH CHỦ NHÂN ĐẠT TOP (NỔI CAO Z=32px, KHÔNG BỊ KHUNG MẶT SAU CHE KHUẤT) */
.rank-card-back__content {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  gap: 5px;
}

.rank-badge-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
  padding: 2px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
}

.master-rank--1 .rank-badge-title {
  color: #00f2fe;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.9), 0 2px 4px rgba(0, 0, 0, 0.95);
  border-color: rgba(0, 242, 254, 0.5);
}

.master-rank--2 .rank-badge-title {
  color: #e0f2fe;
  text-shadow: 0 0 10px rgba(224, 242, 254, 0.8), 0 2px 4px rgba(0, 0, 0, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
}

.master-rank--3 .rank-badge-title {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.8), 0 2px 4px rgba(0, 0, 0, 0.95);
  border-color: rgba(14, 165, 233, 0.4);
}

.rank-winner-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #f0f9ff;
  text-shadow: 0 0 10px #00f2fe, 0 0 20px rgba(0, 242, 254, 0.75), 0 2px 4px rgba(0, 0, 0, 0.95);
  background: linear-gradient(180deg, rgba(12, 28, 54, 0.92), rgba(6, 17, 34, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.7);
  border-radius: 6px;
  padding: 5px 20px;
  min-width: 140px;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), inset 0 0 12px rgba(0, 242, 254, 0.22);
  line-height: 1.3;
}

.master-rank--1 .rank-winner-name {
  font-size: 26px;
  border-color: rgba(0, 242, 254, 0.88);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.92), 0 0 16px rgba(0, 242, 254, 0.4), inset 0 0 14px rgba(0, 242, 254, 0.28);
}

.rank-winner-name--empty {
  font-size: 16px !important;
  font-style: italic;
  font-weight: 600;
  color: #94a3b8 !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  text-shadow: 0 0 6px rgba(148, 163, 184, 0.4) !important;
}

.rank-winner-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6), 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-top: 2px;
}

.rank-winner-tag--empty {
  color: #0284c7;
  text-shadow: 0 0 8px rgba(2, 132, 199, 0.5), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.rank-star {
  color: #00f2fe;
  font-size: 10px;
}

/* NÚT CHỈ DẪN LẬT THẺ (FLIP BADGE) */
.rank-flip-badge {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e0f2fe;
  background: rgba(6, 17, 34, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 242, 254, 0.15);
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.rank-flip-badge .flip-icon {
  display: inline-block;
  font-size: 13px;
  transition: transform 0.35s ease;
}

.master-rank:hover .rank-flip-badge {
  border-color: #00f2fe;
  color: #fff;
  background: rgba(12, 28, 54, 0.95);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.6);
}

.master-rank:hover .rank-flip-badge .flip-icon {
  transform: rotate(180deg);
}

.rank-flip-badge--back {
  border-color: rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
  background: rgba(10, 18, 30, 0.9);
}

.master-rank:hover .rank-flip-badge--back {
  border-color: #60a5fa;
  color: #fff;
  background: rgba(15, 28, 48, 0.95);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.6);
}

.master-rank__position,
.master-rank__label {
  display: none !important;
}

/* HIERARCHY FOR TOP 1, TOP 2, TOP 3 */
/* Top 1: Chính giữa, cao nhất, kích thước lớn nhất */
.master-rank--1 {
  grid-area: top1;
  width: min(100%, 340px);
  transform: translateY(-42px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
  z-index: 3;
}

.master-rank--1 .master-rank__panel {
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.95));
}

.master-rank--1:hover {
  transform: translateY(-48px);
  filter: brightness(1.08);
}

.master-rank--1 .master-rank__reward {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.3;
}

.master-rank--1 .master-rank__reward--wcoin {
  font-size: 24px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: 0.8px;
  text-shadow: 0 0 14px rgba(249, 115, 22, 0.85), 0 2px 4px rgba(0, 0, 0, 0.95);
  margin-bottom: 2px;
}

.master-rank--1 .master-rank__reward--bs {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* Top 2: Bên trái, thấp hơn Top 1 một chút */
.master-rank--2 {
  grid-area: top2;
  width: min(100%, 315px);
  transform: translateY(-16px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
  z-index: 2;
}

.master-rank--2 .master-rank__panel {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.9));
}

.master-rank--2:hover {
  transform: translateY(-22px);
  filter: brightness(1.06);
}

.master-rank--2 .master-rank__reward {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.3;
}

.master-rank--2 .master-rank__reward--wcoin {
  font-size: 22px;
  font-weight: 800;
  color: #7dd3fc;
  letter-spacing: 0.6px;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.75), 0 2px 4px rgba(0, 0, 0, 0.95);
  margin-bottom: 2px;
}

.master-rank--2 .master-rank__reward--bs {
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* Top 3: Bên phải, thấp hơn Top 2 một chút */
.master-rank--3 {
  grid-area: top3;
  width: min(100%, 295px);
  transform: translateY(12px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
  z-index: 1;
}

.master-rank--3 .master-rank__panel {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85));
}

.master-rank--3:hover {
  transform: translateY(6px);
  filter: brightness(1.06);
}

.master-rank--3 .master-rank__reward {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1.3;
}

.master-rank--3 .master-rank__reward--wcoin {
  font-size: 20px;
  font-weight: 800;
  color: #bae6fd;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.65), 0 2px 4px rgba(0, 0, 0, 0.95);
  margin-bottom: 2px;
}

.master-rank--3 .master-rank__reward--bs {
  font-size: 17px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* RULES SECTION (THỂ LỆ SỰ KIỆN) */
.master-rules-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 50px auto 0 auto;
  background: rgba(10, 18, 32, 0.94);
  border: 1.5px solid rgba(125, 211, 252, 0.35);
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
}

.master-rules-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin: 0 0 16px 0;
  text-align: center;
}

.master-rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.master-rules-list li {
  position: relative;
  padding-left: 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.55;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  word-break: break-word;
}

.master-rules-list li:last-child {
  margin-bottom: 0;
}

.master-rules-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 10px;
  color: #f97316;
  text-shadow: 0 0 6px rgba(249, 115, 22, 0.8);
}

.rule-highlight {
  color: #fbbf24;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(249, 115, 22, 0.5);
}

/* RESPONSIVE TABLET (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .master-top-section {
    padding: 40px 15px 55px 15px;
  }
  .master-ranking {
    gap: 14px;
    padding-top: 45px;
  }
  .master-rank--1 {
    width: min(100%, 265px);
    transform: translateY(-26px);
  }
  .master-rank--1:hover {
    transform: translateY(-30px);
  }
  .master-rank--2 {
    width: min(100%, 245px);
    transform: translateY(-10px);
  }
  .master-rank--2:hover {
    transform: translateY(-14px);
  }
  .master-rank--3 {
    width: min(100%, 230px);
    transform: translateY(6px);
  }
  .master-rank--3:hover {
    transform: translateY(2px);
  }
  .master-rank--1 .master-rank__position {
    font-size: 24px;
  }
  .master-rank--2 .master-rank__position {
    font-size: 22px;
  }
  .master-rank--3 .master-rank__position {
    font-size: 20px;
  }
  .master-rank--1 .master-rank__reward--wcoin {
    font-size: 19px;
  }
  .master-rank--1 .master-rank__reward--bs {
    font-size: 16.5px;
  }
  .master-rank--2 .master-rank__reward--wcoin {
    font-size: 17.5px;
  }
  .master-rank--2 .master-rank__reward--bs {
    font-size: 15.5px;
  }
  .master-rank--3 .master-rank__reward--wcoin {
    font-size: 16.5px;
  }
  .master-rank--3 .master-rank__reward--bs {
    font-size: 14.5px;
  }
  .master-rules-container {
    max-width: 95%;
    padding: 20px 22px;
  }
}

/* RESPONSIVE MOBILE (< 768px) */
@media screen and (max-width: 768px) {
  .master-top-section {
    width: 100%;
    padding: 35px 12px 50px 12px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .master-top-inner {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    padding: 0;
  }
  .master-top-title-wrap {
    gap: 8px;
    width: 100%;
  }
  .master-top-title {
    font-size: clamp(14px, 4vw, 17px);
    letter-spacing: 0.8px;
    white-space: normal;
    line-height: 1.25;
  }
  .master-title-line-left,
  .master-title-line-right {
    max-width: 25px;
    min-width: 12px;
  }
  .master-top-time {
    font-size: 15px;
  }
  .master-top-target-badge {
    font-size: 14px;
    letter-spacing: 1px;
    padding: 3px 12px;
  }
  .master-ranking {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
  }
  .master-rank {
    width: min(100%, 280px);
    transform: none !important;
  }
  .master-rank:hover {
    transform: none !important;
  }
  .master-rank--1 {
    order: 1;
    z-index: 3;
  }
  .master-rank--2 {
    order: 2;
    z-index: 2;
  }
  .master-rank--3 {
    order: 3;
    z-index: 1;
  }
  .master-rank--1 .master-rank__position {
    font-size: 24px;
  }
  .master-rank--2 .master-rank__position {
    font-size: 22px;
  }
  .master-rank--3 .master-rank__position {
    font-size: 20px;
  }
  .master-rank__label {
    font-size: 12px;
    margin-bottom: 4px;
    padding-bottom: 2px;
  }
  .master-rank__reward {
    font-size: 16px;
  }
  .master-rank--1 .master-rank__reward--wcoin {
    font-size: 18.5px;
  }
  .rank-card-back__content {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    bottom: auto;
    height: auto;
    gap: 4px;
  }
  .rank-badge-title {
    font-size: 11.5px;
    font-size: 12px;
    letter-spacing: 1.5px;
    padding: 1px 10px;
  }
  .rank-winner-name {
    font-size: 18px !important;
    padding: 2px 10px;
    min-width: 110px;
    font-size: 19px !important;
    padding: 3px 12px;
    min-width: 120px;
  }
  .master-rank--1 .rank-winner-name {
    font-size: 19px !important;
    font-size: 20px !important;
  }
  .rank-winner-tag {
    font-size: 10px;
    font-size: 10.5px;
  }
  .rank-flip-badge {
    bottom: 6px;
    font-size: 10px;
    padding: 2px 10px;
  }
  .master-rules-container {
    width: 100%;
    margin-top: 35px;
    padding: 18px 14px;
  }
  .master-rules-heading {
    font-size: 16.5px;
  }
  .master-rules-list li {
    font-size: 14.5px;
    line-height: 1.45;
  }
}

/* ==========================================================================
   BOSS & DV TOP REWARDS TYPOGRAPHY SCOPE
   ========================================================================== */
.boss-top-section .master-rank__content,
.dv-top-section .master-rank__content {
  gap: 3px;
  padding: 0 10px;
  box-sizing: border-box;
}

.boss-top-section .master-rank--1 .master-rank__reward--wcoin,
.dv-top-section .master-rank--1 .master-rank__reward--wcoin {
  font-size: 16px;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 2px;
}

.boss-top-section .master-rank--1 .master-rank__reward--bs,
.dv-top-section .master-rank--1 .master-rank__reward--bs {
  font-size: 18px;
  font-weight: 800;
  color: #00f2fe;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.8), 0 2px 4px rgba(0, 0, 0, 0.95);
}

.boss-top-section .master-rank--2 .master-rank__reward--wcoin,
.boss-top-section .master-rank--3 .master-rank__reward--wcoin,
.dv-top-section .master-rank--2 .master-rank__reward--wcoin,
.dv-top-section .master-rank--3 .master-rank__reward--wcoin {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 2px;
}

.boss-top-section .master-rank--2 .master-rank__reward--bs,
.dv-top-section .master-rank--2 .master-rank__reward--bs {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.boss-top-section .master-rank--3 .master-rank__reward--bs,
.dv-top-section .master-rank--3 .master-rank__reward--bs {
  font-size: 14.5px;
  font-weight: 800;
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.6), 0 1px 3px rgba(0, 0, 0, 0.95);
}

@media screen and (max-width: 768px) {
  .boss-top-section .master-rank__content,
  .dv-top-section .master-rank__content {
    padding: 0 8px;
  }
  .boss-top-section .master-rank--1 .master-rank__reward--wcoin,
  .dv-top-section .master-rank--1 .master-rank__reward--wcoin {
    font-size: 14.5px;
  }
  .boss-top-section .master-rank--1 .master-rank__reward--bs,
  .dv-top-section .master-rank--1 .master-rank__reward--bs {
    font-size: 16px;
  }
  .boss-top-section .master-rank--2 .master-rank__reward--wcoin,
  .boss-top-section .master-rank--3 .master-rank__reward--wcoin,
  .dv-top-section .master-rank--2 .master-rank__reward--wcoin,
  .dv-top-section .master-rank--3 .master-rank__reward--wcoin {
    font-size: 14px;
  }
  .boss-top-section .master-rank--2 .master-rank__reward--bs,
  .boss-top-section .master-rank--3 .master-rank__reward--bs,
  .dv-top-section .master-rank--2 .master-rank__reward--bs,
  .dv-top-section .master-rank--3 .master-rank__reward--bs {
    font-size: 13.5px;
  }
}

/* ==========================================================================
   2-COLUMN PODIUM: SỰ KIỆN ĐUA TOP HUYẾT LÂU (Top 1 trái, Top 2 phải)
   ========================================================================== */
.master-ranking--two-cols {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 50px;
}

.master-ranking--two-cols .master-rank--1 {
  grid-area: auto;
  width: min(100%, 335px);
  transform: translateY(-16px);
  z-index: 2;
}

.master-ranking--two-cols .master-rank--1:hover {
  transform: translateY(-22px);
}

.master-ranking--two-cols .master-rank--2 {
  grid-area: auto;
  width: min(100%, 310px);
  transform: translateY(12px);
  z-index: 1;
}

.master-ranking--two-cols .master-rank--2:hover {
  transform: translateY(6px);
}

.bc-top-section .master-rank__content,
.guild-top-section .master-rank__content,
.forge-top-section .master-rank__content {
  gap: 3px;
  padding: 0 10px;
  box-sizing: border-box;
}

.guild-top-section .master-rank--1 .master-rank__reward--wcoin {
  font-size: 16px;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 2px;
}

.guild-top-section .master-rank--1 .master-rank__reward--bs {
  font-size: 17px;
  font-weight: 800;
  color: #00f2fe;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.8), 0 2px 4px rgba(0, 0, 0, 0.95);
}

.guild-top-section .master-rank--2 .master-rank__reward--wcoin {
  font-size: 15.5px;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 2px;
}

.guild-top-section .master-rank--2 .master-rank__reward--bs {
  font-size: 14.5px;
  font-weight: 800;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7), 0 1px 3px rgba(0, 0, 0, 0.95);
}

/* HUYẾT LÂU (BC) & THẦN RÈN +11 (3 NGÀY): Highlight độc quyền Top 1, Top 2 & Top 3 không highlight và giống nhau */
.bc-top-section .master-rank--1 .master-rank__reward--wcoin,
.forge-top-section .master-rank--1 .master-rank__reward--wcoin {
  font-size: 17px;
  font-weight: 800;
  color: #00f2fe;
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.9), 0 2px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 2px;
}

.bc-top-section .master-rank--1 .master-rank__reward--bs,
.forge-top-section .master-rank--1 .master-rank__reward--bs {
  font-size: 15px;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.75), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.bc-top-section .master-rank--2 .master-rank__reward--wcoin,
.bc-top-section .master-rank--3 .master-rank__reward--wcoin,
.forge-top-section .master-rank--2 .master-rank__reward--wcoin,
.forge-top-section .master-rank--3 .master-rank__reward--wcoin {
  font-size: 15px;
  font-weight: 700;
  color: #f0f9ff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 2px;
  letter-spacing: normal;
}

.bc-top-section .master-rank--2 .master-rank__reward--bs,
.bc-top-section .master-rank--3 .master-rank__reward--bs,
.forge-top-section .master-rank--2 .master-rank__reward--bs,
.forge-top-section .master-rank--3 .master-rank__reward--bs {
  font-size: 14px;
  font-weight: 600;
  color: #bae6fd;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  letter-spacing: normal;
}

@media screen and (max-width: 768px) {
  .master-ranking--two-cols {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
  }
  .master-ranking--two-cols .master-rank--1,
  .master-ranking--two-cols .master-rank--2 {
    transform: none !important;
    width: min(100%, 280px);
  }
  .bc-top-section .master-rank__content,
  .guild-top-section .master-rank__content,
  .forge-top-section .master-rank__content {
    padding: 0 8px;
  }
  .guild-top-section .master-rank--1 .master-rank__reward--wcoin {
    font-size: 14.5px;
  }
  .guild-top-section .master-rank--1 .master-rank__reward--bs {
    font-size: 16px;
  }
  .guild-top-section .master-rank--2 .master-rank__reward--wcoin {
    font-size: 14px;
  }
  .guild-top-section .master-rank--2 .master-rank__reward--bs {
    font-size: 13.5px;
  }
  .bc-top-section .master-rank--1 .master-rank__reward--wcoin,
  .forge-top-section .master-rank--1 .master-rank__reward--wcoin {
    font-size: 15.5px;
  }
  .bc-top-section .master-rank--1 .master-rank__reward--bs,
  .forge-top-section .master-rank--1 .master-rank__reward--bs {
    font-size: 13.5px;
  }
  .bc-top-section .master-rank--2 .master-rank__reward--wcoin,
  .bc-top-section .master-rank--3 .master-rank__reward--wcoin,
  .forge-top-section .master-rank--2 .master-rank__reward--wcoin,
  .forge-top-section .master-rank--3 .master-rank__reward--wcoin {
    font-size: 14px;
  }
  .bc-top-section .master-rank--2 .master-rank__reward--bs,
  .bc-top-section .master-rank--3 .master-rank__reward--bs,
  .forge-top-section .master-rank--2 .master-rank__reward--bs,
  .forge-top-section .master-rank--3 .master-rank__reward--bs {
    font-size: 13px;
  }
}

/* ==========================================================================
   MODULE: BẢNG ĐIỀU HƯỚNG NHANH / MỤC LỤC SỰ KIỆN NỔI (QUICK FLOATING NAV)
   ========================================================================== */

/* Khung bọc menu cố định ở góc trên bên trái */
.quick-nav-menu {
  position: fixed;
  top: calc(var(--mu-header-h, 62px) + 14px);
  left: 20px;
  z-index: 995;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-35px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Livvic', 'Segoe UI', Tahoma, sans-serif;
  user-select: none;
}

/* Kích hoạt hiển thị khi cuộn tới Thông Tin Máy Chủ */
.quick-nav-menu.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Nút huy hiệu thu gọn/mở rộng ở góc trái */
.quick-nav-badge {
  display: none;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(32, 16, 20, 0.96) 0%, rgba(16, 8, 10, 0.96) 100%);
  border: 1.5px solid #d4af37;
  border-radius: 6px;
  padding: 8px 14px;
  color: #f9e295;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 12px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
  outline: none;
}

.quick-nav-badge:hover {
  background: linear-gradient(135deg, #441c0d, #240e06);
  border-color: #ffd700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 16px rgba(255, 215, 0, 0.6);
  color: #fffdf0;
  transform: scale(1.04);
}

.quick-nav-badge-icon {
  font-size: 15px;
}

.quick-nav-badge-arrow {
  font-size: 10px;
  color: #ffd700;
  transition: transform 0.2s ease;
}

/* Trạng thái thu gọn */
.quick-nav-menu.is-collapsed .quick-nav-badge {
  display: flex;
}

.quick-nav-menu.is-collapsed .quick-nav-panel {
  display: none !important;
}

/* Khung bảng mục lục chính */
.quick-nav-panel {
  width: 275px;
  max-height: calc(100vh - var(--mu-header-h, 62px) - 28px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(22, 12, 15, 0.97) 0%, rgba(12, 6, 8, 0.98) 100%);
  border: 1.5px solid #c8a355;
  border-radius: 8px;
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.9),
    inset 0 0 15px rgba(200, 163, 85, 0.12),
    0 0 20px rgba(200, 163, 85, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Header bảng mục lục */
.quick-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(65, 26, 12, 0.9) 0%, rgba(26, 11, 14, 0.9) 100%);
  border-bottom: 1px solid rgba(200, 163, 85, 0.45);
}

.quick-nav-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-nav-title-icon {
  font-size: 10px;
  color: #ffca42;
  text-shadow: 0 0 6px rgba(255, 202, 66, 0.8);
}

.quick-nav-title-text {
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #fffdf0;
  letter-spacing: 0.6px;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.quick-nav-btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(200, 163, 85, 0.5);
  border-radius: 4px;
  color: #f3d382;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
  outline: none;
}

.quick-nav-btn-close:hover {
  background: rgba(200, 163, 85, 0.3);
  border-color: #ffd700;
  color: #fff;
  transform: scale(1.1);
}

/* Thân bảng mục lục chứa danh sách */
.quick-nav-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 6px 12px 6px;
  scrollbar-width: thin;
  scrollbar-color: #9e7d3b #15090b;
}

.quick-nav-body::-webkit-scrollbar {
  width: 5px;
}

.quick-nav-body::-webkit-scrollbar-track {
  background: #14080a;
}

.quick-nav-body::-webkit-scrollbar-thumb {
  background: #9e7d3b;
  border-radius: 3px;
}

.quick-nav-body::-webkit-scrollbar-thumb:hover {
  background: #d4af37;
}

/* Tiêu đề phân nhóm danh mục */
.quick-nav-category-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a48148;
  padding: 7px 8px 3px 8px;
  margin-top: 4px;
  border-bottom: 1px dashed rgba(164, 129, 72, 0.25);
  margin-bottom: 4px;
}

/* Khối từng mục */
.quick-nav-item-wrap {
  margin-bottom: 2px;
}

/* Dòng mục chính */
.quick-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 4px;
  text-decoration: none;
  color: #d6c6b4;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border-left: 2px solid transparent;
}

.quick-nav-row:hover {
  background: rgba(200, 163, 85, 0.15);
  color: #fffcf0;
  transform: translateX(2px);
}

/* Highlight ScrollSpy cho mục chính */
.quick-nav-item-wrap.is-active > .quick-nav-row {
  background: linear-gradient(90deg, rgba(200, 163, 85, 0.28) 0%, rgba(200, 163, 85, 0.06) 100%);
  color: #ffd700;
  border-left-color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.quick-nav-row-main {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.quick-nav-item-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.quick-nav-item-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Mũi tên toggle mở rộng mục con */
.quick-nav-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 6px;
  background: rgba(200, 163, 85, 0.08);
  border: 1px solid rgba(200, 163, 85, 0.25);
  color: #cbb387;
  font-size: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  outline: none;
}

.quick-nav-arrow-btn:hover {
  background: rgba(200, 163, 85, 0.35);
  border-color: rgba(255, 215, 0, 0.6);
  color: #ffd700;
  transform: scale(1.12);
}

.quick-nav-item-wrap.is-open .quick-nav-arrow-btn {
  transform: rotate(90deg);
  color: #ffd700;
  background: rgba(200, 163, 85, 0.25);
  border-color: rgba(255, 215, 0, 0.4);
}

/* Danh sách mục con (Accordion sublist) */
.quick-nav-sublist {
  display: none;
  padding-left: 14px;
  margin: 2px 0 4px 10px;
  border-left: 1px dashed rgba(200, 163, 85, 0.35);
}

.quick-nav-item-wrap.is-open .quick-nav-sublist {
  display: block;
  animation: quickNavSlideDown 0.22s ease forwards;
}

@keyframes quickNavSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dòng từng mục con */
.quick-nav-subitem {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  color: #b09e8c;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quick-nav-subitem:hover {
  color: #fffdf0;
  background: rgba(255, 215, 0, 0.12);
  padding-left: 11px;
}

.quick-nav-subitem-bullet {
  font-size: 7px;
  color: #8c6f3d;
  transition: color 0.18s ease;
}

.quick-nav-subitem:hover .quick-nav-subitem-bullet {
  color: #ffd700;
}

/* Active cho mục con */
.quick-nav-subitem.is-sub-active {
  color: #ffd700;
  font-weight: 700;
  background: rgba(255, 215, 0, 0.15);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.quick-nav-subitem.is-sub-active .quick-nav-subitem-bullet {
  color: #ffd700;
}

/* Hiệu ứng viền phát sáng khi bấm nhảy tới thẻ lộ trình */
@keyframes cardPulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.85);
  }
  50% {
    box-shadow: 0 0 30px 6px rgba(255, 215, 0, 0.95);
    border-color: #ffd700 !important;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
  }
}

.roadmap-item.is-target-highlight .roadmap-card {
  animation: cardPulseHighlight 1.6s ease-out;
}

/* Responsive Mobile (< 768px) */
@media screen and (max-width: 768px) {
  .quick-nav-menu {
    top: calc(var(--mu-header-h, 62px) + 10px);
    left: 12px;
  }
  
  /* Trên mobile mặc định ở dạng huy hiệu nút nổi */
  .quick-nav-menu:not(.is-mobile-open) .quick-nav-badge {
    display: flex !important;
    padding: 6px 10px;
    font-size: 11.5px;
  }
  
  .quick-nav-menu:not(.is-mobile-open) .quick-nav-panel {
    display: none !important;
  }
  
  /* Khi click mở trên mobile: hiển thị panel popup */
  .quick-nav-menu.is-mobile-open .quick-nav-badge {
    display: none !important;
  }
  
  .quick-nav-menu.is-mobile-open .quick-nav-panel {
    display: flex !important;
    width: min(88vw, 290px);
    max-height: 82vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.45);
  }
}

/* ==========================================================================
   BACKGROUND ATMOSPHERIC CHARACTERS (Hiệu Ứng Nhân Vật Nền)
   ========================================================================== */

/* Cho phép nhân vật nền lớn x3 hiển thị liền mạch không bị cắt phẳng bởi khung section */
.subgame-section,
.ingame-events-section,
.roadmap-section,
.master-top-section {
  overflow: visible !important;
}

.wrapper {
  overflow-x: clip;
}

.bg-char-wrapper {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  opacity: 0;
  will-change: transform, opacity, filter;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Direction Initial States */
.bg-char--left {
  left: -80px;
  top: 50%;
  transform: translateY(-50%) translateX(-140px) scale(0.96);
  filter: blur(5px) brightness(0.7);
}

.bg-char--right {
  right: -80px;
  top: 50%;
  transform: translateY(-50%) translateX(140px) scale(0.96);
  filter: blur(5px) brightness(0.7);
}

/* Riêng ảnh căn giữa và nằm ở giữa (photo-1-1625461232437573416380-Photoroom) */
.bg-char--center {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, calc(-50% + 80px)) scale(0.96);
  filter: blur(5px) brightness(0.7);
}

.bg-char--bottom-up {
  right: 15px;
  bottom: -20px;
  top: auto;
  transform: translateY(120px) scale(0.96);
  filter: blur(5px) brightness(0.7);
}

/* In-View Active States (Cuộn tới kích hoạt rõ nét, ít mờ hơn và lướt vào) */
.bg-char-wrapper.is-inview.bg-char--left {
  opacity: 0.5;
  transform: translateY(-50%) translateX(0) scale(1);
  filter: blur(0px) brightness(0.96) contrast(1.06);
}

.bg-char-wrapper.is-inview.bg-char--right {
  opacity: 0.5;
  transform: translateY(-50%) translateX(0) scale(1);
  filter: blur(0px) brightness(0.96) contrast(1.06);
}

.bg-char-wrapper.is-inview.bg-char--center {
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0px) brightness(0.96) contrast(1.06);
}

.bg-char-wrapper.is-inview.bg-char--bottom-up {
  opacity: 0.63;
  transform: translateY(0) scale(1);
  filter: blur(0px) brightness(0.96) contrast(1.06);
}

/* Character Image Styling - Chiều dài x3, chiều rộng x3, ít mờ và viền làm mờ tự nhiên */
.bg-char-img {
  display: block;
  max-height: 2000px;
  width: auto;
  max-width: none;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 88% 85% at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.65) 85%, transparent 99%);
  mask-image: radial-gradient(ellipse 88% 85% at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.65) 85%, transparent 99%);
}

/* Atmospheric Ambient Glow Behind Character */
.bg-char-glow {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

/* Character Palette Custom Glows & Individual 3x Scaling */
/* 1. Fairy Elf (Section 2 - Glacial Teal Glow) */
.bg-char--elf .bg-char-glow {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, rgba(14, 165, 233, 0.18) 50%, transparent 75%);
}
.bg-char--elf .bg-char-img {
  max-height: 5050px;
  width: min(88vw, 1950px);
}

/* 2. Ice Dark Knight (Section 3 - Frost Cyan Glow) */
.bg-char--ice-knight .bg-char-glow {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.52) 0%, rgba(56, 189, 248, 0.22) 50%, transparent 75%);
}
.bg-char--ice-knight .bg-char-img {
  max-height: 2050px;
  width: auto;
}

/* 3. Golden Valkyrie (Section 5 - Radiant Frost Sapphire Glow) */
.bg-char--valkyrie .bg-char-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(2, 132, 199, 0.2) 50%, transparent 75%);
}
.bg-char--valkyrie .bg-char-img {
  max-height: 2000px;
  width: auto;
}

/* 4. Phoenix Maiden (Section 6 - Northern Aurora Cyan Glow)
   Tạo hiệu ứng 3D đè lên bảng Chuỗi Sự Kiện Đua Top (bảng nằm dưới nhân vật) */
.bg-char--fire-maiden {
  right: -30px;
  top: -240px;
  transform: translateY(0) translateX(120px) scale(0.96);
  z-index: 2;
  pointer-events: none;
}

@media screen and (min-width: 1440px) {
  .bg-char--fire-maiden {
    right: calc(50% - 900px);
  }
}

.bg-char-wrapper.is-inview.bg-char--fire-maiden,
.bg-char--fire-maiden.is-inview {
  opacity: 0.5;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0px) brightness(1.02) contrast(1.08) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(0, 242, 254, 0.45));
}

.bg-char--fire-maiden .bg-char-glow {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.45) 0%, rgba(239, 68, 68, 0.25) 45%, transparent 75%);
  inset: -20%;
  filter: blur(75px);
}

.bg-char--fire-maiden .bg-char-img {
  max-height: 1950px;
  width: auto;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 85%, transparent 99%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 85%, transparent 99%);
}

/* 5. Ethereal Jade Goddess (Section 9 - Mystical Frost Glow) */
.bg-char--goddess .bg-char-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(2, 132, 199, 0.18) 50%, transparent 75%);
}
.bg-char--goddess .bg-char-img {
  max-height: 2000px;
  width: auto;
}

/* 6. Dragon Knight Team (Section 12 - Căn giữa và nằm ở giữa, Epic Dragon Fire Glow) */
.bg-char--dragon-team {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
}
.bg-char--dragon-team .bg-char-glow {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(249, 115, 22, 0.25) 50%, transparent 75%);
}
.bg-char--dragon-team .bg-char-img {
  max-height: 1350px;
  width: min(92vw, 1900px);
  max-width: none;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.65) 85%, transparent 99%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.65) 85%, transparent 99%);
}

/* 7. Five Characters Dragon & Full Sword (Section 8: khoảng giữa Section 6 và Section 9 - Căn giữa, Epic Cyan-Frost Glow) */
.bg-char--five-chars {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
}
.bg-char--five-chars .bg-char-glow {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.45) 0%, rgba(56, 189, 248, 0.25) 45%, transparent 75%);
}
.bg-char--five-chars .bg-char-img {
  max-height: 1400px;
  width: min(92vw, 1900px);
  max-width: none;
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.65) 85%, transparent 99%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 50%, rgba(0, 0, 0, 1) 62%, rgba(0, 0, 0, 0.65) 85%, transparent 99%);
}

/* 8. Blue Glow Angel Knight (Section 10 - Frost & Divine Cyan Glow) */
.bg-char--angel-knight .bg-char-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.52) 0%, rgba(0, 242, 254, 0.35) 45%, transparent 75%);
}
.bg-char--angel-knight .bg-char-img {
  max-height: 1850px;
  width: auto;
}

/* 9. Chiến Binh Hoàng Kim (Section 4: Lộ Trình - Nằm hẳn qua bên trái và tụt xuống phía dưới) */
.bg-char--donghua-warrior {
  left: -80px;
  top: 55%;
  transform: translateY(-50%) translateX(-140px) scale(0.96);
  filter: blur(5px) brightness(0.7);
}

.bg-char-wrapper.is-inview.bg-char--donghua-warrior,
.bg-char--donghua-warrior.is-inview {
  opacity: 0.5;
  transform: translateY(-50%) translateX(0) scale(1);
  filter: blur(0px) brightness(0.96) contrast(1.06);
}

.bg-char--donghua-warrior .bg-char-glow {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.45) 0%, rgba(2, 132, 199, 0.22) 45%, transparent 75%);
}

.bg-char--donghua-warrior .bg-char-img {
  max-height: 1200px;
  width: auto;
  object-fit: contain;
}

/* 10. Mỹ Nhân Cổ Trang Full Cánh (Section 4: Lộ Trình - Đứng ngang với roadmap-title-frame) */
.bg-char--beauty-wings {
  position: absolute;
  top: -400px;
  left: calc(100% - 100px);
  right: auto;
  pointer-events: none;
  z-index: 0; /* Đẩy lên cao hơn 1 lớp (nằm trên lớp nền) */
  user-select: none;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform: translateX(60px) scale(0.96);
  filter: blur(5px) brightness(0.7);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bg-char--beauty-wings.is-inview,
.bg-char-wrapper.is-inview.bg-char--beauty-wings {
  opacity: 0.5;
  transform: translateX(0) scale(1);
  filter: blur(0px) brightness(0.96) contrast(1.06);
}

.bg-char--beauty-wings .bg-char-glow {
  background: radial-gradient(circle, rgba(0, 242, 254, 0.42) 0%, rgba(125, 211, 252, 0.22) 45%, transparent 75%);
}

.bg-char--beauty-wings .bg-char-img {
  max-height: 2700px;
  width: auto;
  object-fit: contain;
}

/* Responsive Scaling */
@media screen and (max-width: 1400px) {
  .bg-char-img {
    max-height: 1400px;
  }
  .bg-char--elf .bg-char-img,
  .bg-char--dragon-team .bg-char-img,
  .bg-char--five-chars .bg-char-img {
    width: min(90vw, 1400px);
    max-height: 1000px;
  }
  .bg-char--donghua-warrior .bg-char-img {
    max-height: 950px;
  }
  .bg-char--beauty-wings {
    left: calc(100% + 15px);
    right: auto;
  }
  .bg-char--beauty-wings .bg-char-img {
    max-height: 800px;
  }
  .bg-char-wrapper.is-inview.bg-char--left,
  .bg-char-wrapper.is-inview.bg-char--right,
  .bg-char-wrapper.is-inview.bg-char--center,
  .bg-char-wrapper.is-inview.bg-char--bottom-up,
  .bg-char--beauty-wings.is-inview {
    opacity: 0.55;
  }
}

@media screen and (max-width: 1024px) {
  .bg-char-img {
    max-height: 950px;
  }
  .bg-char--elf .bg-char-img,
  .bg-char--dragon-team .bg-char-img,
  .bg-char--five-chars .bg-char-img {
    width: min(92vw, 950px);
    max-height: 700px;
  }
  .bg-char--donghua-warrior .bg-char-img {
    max-height: 700px;
  }
  .bg-char--beauty-wings {
    left: calc(100% + 10px);
    right: auto;
  }
  .bg-char--beauty-wings .bg-char-img {
    max-height: 600px;
  }
  .bg-char-wrapper.is-inview.bg-char--left,
  .bg-char-wrapper.is-inview.bg-char--right,
  .bg-char-wrapper.is-inview.bg-char--center,
  .bg-char-wrapper.is-inview.bg-char--bottom-up,
  .bg-char--beauty-wings.is-inview {
    opacity: 0.42;
  }
}

@media screen and (max-width: 768px) {
  .bg-char-img {
    max-height: 600px;
  }
  .bg-char--elf .bg-char-img,
  .bg-char--dragon-team .bg-char-img,
  .bg-char--five-chars .bg-char-img {
    width: 95vw;
    max-height: 450px;
  }
  .bg-char--donghua-warrior .bg-char-img {
    max-height: 450px;
  }
  .bg-char--beauty-wings {
    left: calc(100% + 5px);
    right: auto;
  }
  .bg-char--beauty-wings .bg-char-img {
    max-height: 400px;
  }
  .bg-char-wrapper.is-inview.bg-char--left,
  .bg-char-wrapper.is-inview.bg-char--right,
  .bg-char-wrapper.is-inview.bg-char--center,
  .bg-char-wrapper.is-inview.bg-char--bottom-up,
  .bg-char--beauty-wings.is-inview {
    opacity: 0.32;
  }
}

/* ==========================================================================
   MULTI-STAGE TOP EVENTS SELECTOR (CHỌN GIAI ĐOẠN ĐUA TOP)
   ========================================================================== */
.top-stage-selector-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 60px auto 30px auto;
  padding: 0 20px;
  z-index: 1; /* Nằm dưới nhân vật 6b09dda0158801c566f383bf4b18a856 để tạo hiệu ứng 3D */
}

.top-stage-selector-inner {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(18, 32, 54, 0.85) 0%, rgba(10, 18, 32, 0.94) 70%, rgba(6, 11, 23, 0.98) 100%);
  border: 1.5px solid rgba(125, 211, 252, 0.35);
  border-radius: 14px;
  padding: 30px 24px 24px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  backdrop-filter: blur(8px);
}

.top-stage-header {
  position: relative;
  margin-bottom: 22px;
  width: 100%;
}

.top-stage-title-row {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.top-stage-title-frame {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.top-stage-title-frame-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  max-height: 250px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.8));
}

.top-stage-main-title {
  position: relative;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  padding: 50px 50px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.7), 0 0 30px rgba(249, 115, 22, 0.4), 0 3px 6px rgba(0, 0, 0, 0.98);
  transform: translateY(30px);
}

.top-stage-subtitle-badge {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding: 6px 18px;
  background: rgba(10, 18, 32, 0.88);
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7dd3fc;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  z-index: 3;
}

.top-stage-badge-icon {
  color: #f97316;
  font-size: 11px;
  text-shadow: 0 0 6px #f97316;
}

.top-stage-divider {
  margin: 14px auto 0 auto;
  line-height: 1;
}

.top-stage-divider-img {
  max-width: 480px;
  width: 80%;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

/* HORIZONTAL TABS LIST */
.top-stage-nav-wrapper {
  position: relative;
  margin: 18px 0 14px 0;
  display: flex;
  justify-content: center;
}

.top-stage-tabs-list {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(10, 18, 32, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 12px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.top-stage-tabs-list::-webkit-scrollbar {
  display: none;
}

/* INDIVIDUAL STAGE TAB */
.top-stage-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(180deg, rgba(13, 24, 42, 0.9) 0%, rgba(10, 18, 32, 0.98) 100%);
  border: 1.5px solid rgba(125, 211, 252, 0.3);
  border-radius: 8px;
  color: #cbd5e1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.top-stage-tab:hover {
  border-color: #fbbf24;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7), 0 0 16px rgba(249, 115, 22, 0.4);
}

.top-stage-tab.is-active {
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.45) 0%, rgba(13, 24, 42, 0.98) 100%);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 20px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.top-stage-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.top-stage-tab-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.6));
}

.top-stage-tab-name {
  display: inline-block;
}

.top-stage-badge-latest {
  display: inline-block;
  padding: 2px 7px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border: 1px solid #fed7aa;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
  animation: stagePulse 2s infinite ease-in-out;
}

@keyframes stagePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

/* ACTIVE STAGE INFO BANNER */
.top-stage-info-banner {
  margin-top: 14px;
  padding: 12px 20px;
  background: rgba(10, 18, 32, 0.85);
  border: 1px dashed rgba(125, 211, 252, 0.35);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  color: #e2e8f0;
  max-width: 95%;
}

/* BĂNG HỎA: FAST CATEGORY NAV PILLS */
.top-category-nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.top-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.top-cat-pill--fire {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fed7aa;
}

.top-cat-pill--fire:hover {
  background: rgba(249, 115, 22, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.6);
}

.top-cat-pill--ice {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.top-cat-pill--ice:hover {
  background: rgba(56, 189, 248, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.top-stage-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-stage-info-item strong {
  color: #00f2fe;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.5);
}

.top-stage-info-hint {
  width: 100%;
  font-size: 12.5px;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* SMOOTH TRANSITION FOR TOP SECTIONS UPON STAGE SWITCH */
.master-top-section {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.master-top-section.stage-switching {
  opacity: 0.2;
  transform: translateY(8px);
}

@media screen and (max-width: 991px) {
  .top-stage-title-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: auto;
  }
  .top-stage-subtitle-badge {
    position: static;
    transform: none;
    align-self: flex-start;
    margin: 0 0 6px 0;
  }
}

@media screen and (max-width: 768px) {
  .top-stage-selector-container {
    margin: 40px auto 20px auto;
    padding: 0 12px;
  }
  .top-stage-selector-inner {
    padding: 20px 14px 16px 14px;
  }
  .top-stage-main-title {
    font-size: 24px;
    padding: 6px 16px;
  }
  .top-stage-tabs-list {
    width: 100%;
    justify-content: flex-start;
  }
  .top-stage-tab {
    padding: 9px 16px;
    font-size: 15px;
  }
  .top-stage-info-banner {
    font-size: 13.5px;
    gap: 8px;
    flex-direction: column;
  }
  .bg-char--fire-maiden {
    top: -50px;
    right: -20px;
  }
  .bg-char-wrapper.is-inview.bg-char--fire-maiden,
  .bg-char--fire-maiden.is-inview {
    opacity: 0.35;
  }
  .bg-char--fire-maiden .bg-char-img {
    max-height: 520px;
  }
}

/* ==========================================================================
   THANH THÔNG BÁO CLICK ĐUA TOP TRÊN NỀN BG.MP4 (HERO TOP EVENT CTA BAR)
   Thiết kế hình chữ nhật dài chuẩn hoàng kim MU, glassmorphism, hiệu ứng ánh sáng
   ========================================================================== */
.video-top-cta {
  position: fixed;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  transform: translate(-50%, 30px);
  width: 780px;
  max-width: calc(100vw - 36px);
  min-height: 72px;
  padding: 10px 24px 10px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  z-index: 999;
  cursor: pointer;
  border-radius: 12px;
  
  /* Băng Hỏa Glassmorphism background */
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.95) 0%, rgba(20, 34, 58, 0.96) 50%, rgba(10, 18, 32, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  
  /* Frostfire border with multi-layer outer amber & cyan glow */
  border: 1.5px solid rgba(249, 115, 22, 0.6);
  box-shadow: 
    0 0 25px rgba(249, 115, 22, 0.35),
    0 0 50px rgba(56, 189, 248, 0.2),
    inset 0 0 16px rgba(249, 115, 22, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.85);
  
  /* Transition for smooth show / hide when scrolling */
  opacity: 0;
  pointer-events: none;
  transition: 
    opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    filter 0.3s ease;
  overflow: hidden;
}

/* Khi đang ở khu vực bg.mp4 -> Hiển thị rực rỡ */
.video-top-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  animation: videoTopCtaBreath 3.5s infinite ease-in-out;
}

/* Hover effect */
.video-top-cta:hover {
  border-color: #fbbf24;
  filter: brightness(1.1);
  transform: translate(-50%, -4px) scale(1.015) !important;
  box-shadow: 
    0 0 35px rgba(249, 115, 22, 0.75),
    0 0 60px rgba(56, 189, 248, 0.4),
    inset 0 0 22px rgba(249, 115, 22, 0.3),
    0 14px 40px rgba(0, 0, 0, 0.95);
}

.video-top-cta:active {
  transform: translate(-50%, 0) scale(0.99) !important;
}

/* Shimmer flare animation */
.video-top-cta__shimmer {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(224, 242, 254, 0.25) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(224, 242, 254, 0.25) 55%,
    transparent 80%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: videoTopCtaShimmer 4.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes videoTopCtaShimmer {
  0% { left: -120%; }
  35% { left: 160%; }
  100% { left: 160%; }
}

@keyframes videoTopCtaBreath {
  0%, 100% {
    box-shadow: 
      0 0 25px rgba(0, 242, 254, 0.35),
      0 0 50px rgba(14, 165, 233, 0.15),
      inset 0 0 16px rgba(0, 242, 254, 0.2),
      0 10px 30px rgba(0, 0, 0, 0.85);
  }
  50% {
    box-shadow: 
      0 0 38px rgba(0, 242, 254, 0.6),
      0 0 75px rgba(14, 165, 233, 0.3),
      inset 0 0 22px rgba(0, 242, 254, 0.35),
      0 12px 35px rgba(0, 0, 0, 0.9);
  }
}

/* Ornate corner brackets */
.video-top-cta__decor {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  border-color: #fbbf24;
  border-style: solid;
  opacity: 0.85;
}
.video-top-cta__decor--left-top {
  top: 4px; left: 4px;
  border-width: 2px 0 0 2px;
}
.video-top-cta__decor--right-top {
  top: 4px; right: 4px;
  border-width: 2px 2px 0 0;
}
.video-top-cta__decor--left-bottom {
  bottom: 4px; left: 4px;
  border-width: 0 0 2px 2px;
}
.video-top-cta__decor--right-bottom {
  bottom: 4px; right: 4px;
  border-width: 0 2px 2px 0;
}

/* Frostfire Badge on the left */
.video-top-cta__badge {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #f97316 60%, #c2410c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  border: 1.5px solid #fed7aa;
}
.video-top-cta__badge-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  animation: videoTopCtaTrophy 2.5s infinite ease-in-out;
}

@keyframes videoTopCtaTrophy {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(-6deg); }
}

/* Content */
.video-top-cta__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.video-top-cta__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(249, 115, 22, 0.75);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: -2px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.video-top-cta:hover .video-top-cta__title {
  color: #ffffff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.98), 0 0 18px rgba(251, 191, 36, 0.95);
}

.video-top-cta__sparkle {
  color: #fbbf24;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.85);
  animation: videoTopCtaSparkle 1.8s infinite ease-in-out;
}

@keyframes videoTopCtaSparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); filter: drop-shadow(0 0 6px #fbbf24); }
}

.video-top-cta__desc {
  font-family: 'Livvic', sans-serif;
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Action button on the right */
.video-top-cta__action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 8px 16px;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.6);
  transition: all 0.25s ease;
}

.video-top-cta:hover .video-top-cta__action {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.85);
}

.video-top-cta__btn-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.video-top-cta__arrow-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.6;
  gap: 1px;
}

.video-top-cta__chevron {
  font-size: 11px;
  color: #fed7aa;
  animation: videoTopCtaBounce 1.4s infinite ease-in-out;
}
.video-top-cta__chevron.c2 {
  animation-delay: 0.2s;
  opacity: 0.75;
}

@keyframes videoTopCtaBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); color: #fff; }
}

/* Responsive on Mobile (< 768px) */
@media screen and (max-width: 768px) {
  .video-top-cta {
    width: calc(100vw - 20px);
    bottom: clamp(14px, 3vh, 25px);
    padding: 8px 12px;
    gap: 10px;
    min-height: 58px;
    border-radius: 10px;
  }
  .video-top-cta__badge {
    width: 38px;
    height: 38px;
  }
  .video-top-cta__badge-icon {
    font-size: 19px;
  }
  .video-top-cta__title {
    font-size: 15px;
    letter-spacing: 1px;
  }
  .video-top-cta__desc {
    display: none;
  }
  .video-top-cta__action {
    padding: 6px 10px;
    gap: 5px;
  }
  .video-top-cta__btn-text {
    font-size: 13px;
  }
}

/* =============================================================================
   CỔNG CỔ NGỮ & HOA TUYẾT XOAY TÂM (QUAD MAGIC PORTALS COUNTDOWN)
   ============================================================================= */
.quad-portals-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin: 4px auto 36px auto;
  user-select: none;
  z-index: 10;
}

/* TIÊU ĐỀ TRẠNG THÁI */
.portal-banner-status {
  position: relative;
  z-index: 5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffd778;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.4);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.portal-banner-status::before, .portal-banner-status::after {
  content: "✦";
  color: #00e5ff;
  animation: runeStarBlink 2s infinite alternate;
}
@keyframes runeStarBlink {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); filter: drop-shadow(0 0 6px #00e5ff); }
}

/* HÀNG LIÊN KẾT 4 CỔNG */
.portals-row {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ỐNG NỐI DẪN NĂNG LƯỢNG GIỮA CÁC CỔNG */
.portal-conduit {
  position: relative;
  flex: 1;
  max-width: 70px;
  height: 16px;
  margin: 0 -4px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conduit-track {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.25), rgba(255, 215, 0, 0.4), rgba(0, 229, 255, 0.25));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  position: relative;
  overflow: hidden;
}
.conduit-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: microStream 2.5s linear infinite;
}
@keyframes microStream {
  0% { left: 100%; }
  100% { left: -100%; }
}

.conduit-joint {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ffffff 0%, #00e5ff 60%, #005580 100%);
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5ff;
  border: 1px solid #ffd700;
  z-index: 2;
}

/* LUỒNG TIA NĂNG LƯỢNG PHÓNG QUA LẠI */
.energy-bullet {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -6px;
  height: 12px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.conduit-sec-min .energy-bullet {
  width: 28px;
  background: linear-gradient(270deg, #ffffff 0%, #00f2ff 50%, rgba(0, 229, 255, 0) 100%);
  filter: drop-shadow(0 0 6px #00f2ff) drop-shadow(0 0 12px #00aaff);
}
.conduit-sec-min.active-surge .energy-bullet {
  animation: surgeRightToLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.conduit-min-hour .energy-bullet {
  width: 36px;
  background: linear-gradient(270deg, #ffffff 0%, #ffd700 50%, rgba(255, 170, 0, 0) 100%);
  filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 16px #ff8800);
}
.conduit-min-hour.active-surge .energy-bullet {
  animation: surgeRightToLeft 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.conduit-hour-day .energy-bullet {
  width: 44px;
  background: linear-gradient(270deg, #ffffff 0%, #ff5500 40%, #ffd700 80%, rgba(255, 0, 0, 0) 100%);
  filter: drop-shadow(0 0 12px #ff3b30) drop-shadow(0 0 22px #ffd700);
}
.conduit-hour-day.active-surge .energy-bullet {
  animation: surgeRightToLeft 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes surgeRightToLeft {
  0% { right: 0%; opacity: 0; transform: scale(0.6) scaleX(0.7); }
  25% { opacity: 1; transform: scale(1.3) scaleX(1.4); }
  75% { opacity: 1; transform: scale(1.1) scaleX(1.1); }
  100% { right: 85%; opacity: 0; transform: scale(0.6) scaleX(0.7); }
}

/* TỪNG CỔNG MA THUẬT ĐƠN */
.magic-circle-pod {
  position: relative;
  width: 155px;
  height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* HÀO QUANG PHÁT SÁNG NỀN */
.pod-core-aura {
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22) 0%, rgba(13, 110, 253, 0.08) 60%, transparent 75%);
  filter: blur(12px);
  z-index: 1;
  animation: auraGentleBreathe 4s ease-in-out infinite alternate;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes auraGentleBreathe {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0.85; }
}

/* HOA TUYẾT 6 CÁNH XOAY TRÒN Ở TÂM */
.center-snowflake-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105px;
  height: 105px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: all 0.4s ease;
}
.center-snowflake-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.75)) drop-shadow(0 0 12px rgba(0, 150, 255, 0.4));
}

.pod-days .center-snowflake-svg { animation: spinSnowflakeCenter 24s linear infinite reverse; }
.pod-hours .center-snowflake-svg { animation: spinSnowflakeCenter 18s linear infinite reverse; }
.pod-mins .center-snowflake-svg { animation: spinSnowflakeCenter 14s linear infinite reverse; }
.pod-secs .center-snowflake-svg { animation: spinSnowflakeCenter 9s linear infinite reverse; }

@keyframes spinSnowflakeCenter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* VÒNG MA THUẬT & CHỮ CỔ NGỮ RUNE */
.pod-rune-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.rune-text-path {
  font-family: 'Segoe UI Historic', 'Noto Sans Runic', 'Cinzel', serif;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 2.8px;
  fill: #bbf0ff;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.8), 0 0 10px rgba(255, 215, 0, 0.6);
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotateCounterClockwise {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.pod-days .ring-outer { animation: rotateClockwise 60s linear infinite; }
.pod-days .ring-inner { animation: rotateCounterClockwise 42s linear infinite; }

.pod-hours .ring-outer { animation: rotateClockwise 40s linear infinite; }
.pod-hours .ring-inner { animation: rotateCounterClockwise 28s linear infinite; }

.pod-mins .ring-outer { animation: rotateClockwise 26s linear infinite; }
.pod-mins .ring-inner { animation: rotateCounterClockwise 18s linear infinite; }

.pod-secs .ring-outer { animation: rotateClockwise 14s linear infinite; }
.pod-secs .ring-inner { animation: rotateCounterClockwise 10s linear infinite; }

/* HIỆU ỨNG HẤP THỤ NĂNG LƯỢNG */
.pod-mins.absorb-surge .center-snowflake-wrapper {
  animation: snowPulseMin 0.6s ease-out;
}
@keyframes snowPulseMin {
  0% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; filter: drop-shadow(0 0 16px #00ffff); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.72; }
}
.pod-mins.absorb-surge .pod-core-aura {
  animation: absorbMin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes absorbMin {
  0% { transform: scale(1.4); opacity: 1; background: radial-gradient(circle, rgba(0, 255, 255, 0.7) 0%, rgba(255, 215, 0, 0.4) 60%, transparent 80%); filter: blur(16px); }
  100% { transform: scale(1); opacity: 0.85; }
}

.pod-hours.absorb-surge .center-snowflake-wrapper {
  animation: snowPulseHour 0.7s ease-out;
}
@keyframes snowPulseHour {
  0% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; filter: drop-shadow(0 0 20px #ffd700); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.72; }
}
.pod-hours.absorb-surge .pod-core-aura {
  animation: absorbHour 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes absorbHour {
  0% { transform: scale(1.55); opacity: 1; background: radial-gradient(circle, rgba(255, 215, 0, 0.9) 0%, rgba(255, 120, 0, 0.6) 50%, transparent 80%); filter: blur(20px); }
  100% { transform: scale(1); opacity: 0.85; }
}
.pod-hours.absorb-surge .pod-number {
  animation: numPulseGold 0.6s ease-out;
}
@keyframes numPulseGold {
  0% { transform: scale(1.2); filter: drop-shadow(0 0 25px #ffd700); }
  100% { transform: scale(1); }
}

.pod-days.absorb-surge .center-snowflake-wrapper {
  animation: snowPulseDay 0.9s ease-out;
}
@keyframes snowPulseDay {
  0% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; filter: drop-shadow(0 0 28px #ff4500) drop-shadow(0 0 15px #ffd700); }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.72; }
}
.pod-days.absorb-surge .pod-core-aura {
  animation: absorbDay 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes absorbDay {
  0% { transform: scale(1.7); opacity: 1; background: radial-gradient(circle, #ffffff 0%, rgba(255, 60, 0, 0.8) 40%, rgba(255, 215, 0, 0.6) 70%, transparent 85%); filter: blur(24px); }
  100% { transform: scale(1); opacity: 0.85; }
}
.pod-days.absorb-surge .pod-number {
  animation: numPulseDay 0.8s ease-out;
}
@keyframes numPulseDay {
  0% { transform: scale(1.25); filter: drop-shadow(0 0 35px #ff4500) drop-shadow(0 0 20px #ffd700); }
  100% { transform: scale(1); }
}

/* SỐ VÀ NHÃN CHỮ NỔI TRÊN HOA TUYẾT */
.pod-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pod-number {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  font-family: "Impact", -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #d4f7ff 45%, #ffd700 85%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8)) drop-shadow(0 0 18px rgba(255, 215, 0, 0.35));
  letter-spacing: 1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pod-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #bbf0ff;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 6;
  text-shadow: 0 1px 3px #000000, 0 0 8px rgba(0, 229, 255, 0.95), 0 0 16px rgba(0, 150, 255, 0.6);
  pointer-events: none;
}
.pod-secs.tick-flash .pod-number {
  animation: secFlash 0.35s ease-out;
}
@keyframes secFlash {
  0% { filter: drop-shadow(0 0 18px #00ffff) drop-shadow(0 0 25px #ffd700); transform: scale(1.08); }
  100% { filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.75)) drop-shadow(0 0 18px rgba(255, 215, 0, 0.35)); transform: scale(1); }
}

/* RESPONSIVE CHO CÁC CỔNG */
@media (max-width: 992px) {
  .magic-circle-pod { width: 130px; height: 130px; }
  .center-snowflake-wrapper { width: 90px; height: 90px; }
  .pod-number { font-size: 42px; }
  .pod-label { font-size: 13.5px; letter-spacing: 2.5px; top: calc(100% + 8px); }
  .rune-text-path { font-size: 6px; letter-spacing: 2px; }
  .portal-conduit { max-width: 50px; }
}

@media (max-width: 768px) {
  .magic-circle-pod { width: 105px; height: 105px; }
  .center-snowflake-wrapper { width: 72px; height: 72px; }
  .pod-number { font-size: 34px; }
  .pod-label { font-size: 12px; letter-spacing: 2px; top: calc(100% + 6px); }
  .rune-text-path { font-size: 5px; letter-spacing: 1.6px; }
  .portal-conduit { max-width: 32px; }
  .portal-banner-status { font-size: 11px; margin-bottom: 14px; }
}

@media (max-width: 520px) {
  .magic-circle-pod { width: 78px; height: 78px; }
  .center-snowflake-wrapper { width: 52px; height: 52px; }
  .pod-number { font-size: 24px; }
  .pod-label { font-size: 10.5px; letter-spacing: 1.2px; top: calc(100% + 5px); }
  .pod-core-aura { width: 50px; height: 50px; }
  .rune-text-path { font-size: 4px; letter-spacing: 1px; }
  .portal-conduit { max-width: 16px; }
  .conduit-joint { width: 6px; height: 6px; }
}
