/* ==========================================================
   OQR x OKEYs - 7th Anniversary Full HD (1920x1080) Edge-to-Edge
   Tràn viền 100% toàn màn hình, không viền thừa
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Kiểm soát cuộn fullpage bằng script */
  background-color: #b7dcfd;
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
}

/* Fullpage Slider Container tràn 100% màn hình */
.slider-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Track trượt mượt mà từng slide */
.slider-track {
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* Từng slide chiếm trọn 100vw x 100vh */
.slide-section {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: #edf5fc;
}

#slide-1 { background-color: #dee3ed; }
#slide-2 { background-color: #edf5fc; }
#slide-3 { background-color: #edf5fc; }
#slide-4 { background-color: #3b3425; }
#slide-5 { background-color: #dfe4ed; }

/* Mặc định: Tràn kín full màn hình (100vw x 100vh) không viền */
.slide-content-box {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

/* Khi co lại (màn hình hẹp hơn tỷ lệ ảnh, ví dụ mở DevTools hoặc màn dọc):
   Giữ nguyên tỷ lệ ảnh 16:9, hiện khoảng đệm header & footer ở trên và dưới */
@media (max-aspect-ratio: 16/9) {
  .slide-content-box {
    width: 100vw;
    height: calc(100vw * (768 / 1366));
    max-height: 100vh;
  }

  .slide-img {
    object-fit: contain;
  }
}

/* ----------------------------------------------------
   SLIDE 2: INTERACTIVE SEARCH OVERLAY (1920x1080)
   ---------------------------------------------------- */
.search-pill-overlay {
  position: absolute;
  left: 54.58%;
  top: 56.39%;
  width: 40.05%;
  height: 7.59%;
  z-index: 20;
  display: flex;
  align-items: center;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hiệu ứng rung lắc khi cố cuộn mà chưa tìm kiếm */
@keyframes shakeLock {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-10px);
  }

  40%,
  80% {
    transform: translateX(10px);
  }
}

.search-pill-overlay.shake {
  animation: shakeLock 0.5s ease-in-out;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6);
}

.search-input-field {
  width: 89%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 clamp(10px, 1.8cqw, 28px);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(12px, 1.6cqw, 24px);
  font-weight: 600;
  color: #0f172a;
}

.search-input-field::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.search-action-btn {
  width: 11%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  outline: none;
  transition: transform 0.15s ease;
}

.search-action-btn:hover {
  transform: scale(1.1);
}

.search-action-btn:active {
  transform: scale(0.95);
}

/* ----------------------------------------------------
   SLIDE 3: INTERACTIVE ID BADGE NUMBER OVERLAY (1366x768)
   ---------------------------------------------------- */
.id-card-content-overlay {
  position: absolute;
  left: 52.7%;
  top: 54.0%;
  transform: translate(-50%, -50%);
  width: 22%;
  height: 16%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}

.card-counter-number-text {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 6cqw, 86px);
  font-weight: 900;
  color: #1b45b4;
  letter-spacing: -1.5px;
  line-height: 1;
  text-align: center;
  display: inline-block;
  text-shadow: 0 3px 15px rgba(27, 69, 180, 0.2);
  transition: color 0.2s ease, transform 0.2s ease;
}

/* Hiệu ứng đang quay hàng loạt dạng xổ số */
.card-counter-number-text.spinning {
  color: #2563eb;
  transform: scale(1.06);
  text-shadow: 0 0 25px rgba(37, 99, 235, 0.45);
}

/* Hiệu ứng chốt số cuối nảy lên ăn mừng */
@keyframes jackpotLock {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.25);
    color: #1d4ed8;
    text-shadow: 0 0 35px rgba(29, 78, 216, 0.65);
  }

  75% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.card-counter-number-text.jackpot-locked {
  animation: jackpotLock 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ----------------------------------------------------
   TOAST NOTIFICATION (Căn thẳng hàng với thiệp bên dưới)
   ---------------------------------------------------- */
.toast-popup {
  position: fixed;
  top: 24px;
  left: 52.6%;
  transform: translateX(-50%) translateY(-100px);
  background: #1b45b4;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 700;
  box-shadow: 0 15px 35px rgba(27, 69, 180, 0.4);
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-popup.visible {
  transform: translateX(-50%) translateY(0);
}

/* ----------------------------------------------------
   ANIMATION ICON SCROLL TRONG SUỐT (CHỈ TRANG 1)
   ---------------------------------------------------- */
.scroll-down-indicator {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #1b45b4;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  animation: bounceJump 2s infinite ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
}

.scroll-down-indicator:hover {
  color: #0f2b7a;
}

@keyframes bounceJump {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-12px);
  }

  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.scroll-mouse-icon {
  width: 20px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel-dot {
  width: 4px;
  height: 6px;
  background-color: currentColor;
  border-radius: 2px;
  position: absolute;
  top: 4px;
  animation: mouseWheelMove 1.5s infinite ease-in-out;
}

@keyframes mouseWheelMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  75% {
    transform: translateY(8px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.scroll-arrow-chevron {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

.scroll-text-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.scroll-down-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ----------------------------------------------------
   NÚT BẬT / TẮT NHẠC NỀN (FLOATING MUSIC TOGGLE)
   ---------------------------------------------------- */
.music-toggle-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(27, 69, 180, 0.25);
  box-shadow: 0 6px 20px rgba(27, 69, 180, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b45b4;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(27, 69, 180, 0.28);
}

.music-toggle-btn:active {
  transform: scale(0.95);
}

.music-disc-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sóng equalizer nhảy theo nhạc */
.music-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-left: 2px;
}

.eq-bar {
  width: 2.5px;
  background-color: #1b45b4;
  border-radius: 1px;
  height: 4px;
}

.music-toggle-btn.playing .music-icon-note {
  display: block;
}

.music-toggle-btn.playing .music-equalizer {
  display: flex;
}

.music-toggle-btn.playing .music-icon-mute {
  display: none;
}

.music-toggle-btn.playing .bar-1 {
  animation: eqJump 0.8s ease-in-out infinite alternate;
}

.music-toggle-btn.playing .bar-2 {
  animation: eqJump 0.6s ease-in-out infinite alternate 0.2s;
}

.music-toggle-btn.playing .bar-3 {
  animation: eqJump 0.9s ease-in-out infinite alternate 0.4s;
}

@keyframes eqJump {
  0% {
    height: 3px;
  }
  100% {
    height: 14px;
  }
}

/* Trạng thái Mute / Tắt */
.music-toggle-btn.muted {
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.3);
  background: rgba(255, 255, 255, 0.65);
}

.music-toggle-btn.muted .music-icon-note,
.music-toggle-btn.muted .music-equalizer {
  display: none;
}

.music-toggle-btn.muted .music-icon-mute {
  display: block;
}