/* ============================================================================
   SỰ KIỆN ĐỘC QUYỀN: BÀ CHẢ HÚI (31/08/2000) — GỬI BÀ HOÀNG REAL TRONG LÒNG REN <3
   Thiết kế chuẩn 2D Pixel Art, KHÔNG CUỘN DỌC (Zero Vertical Scroll),
   chỉ giữ nền trắng ở tờ giấy thư bên trong, kèm Album 4 Ảnh Nền Mobile 9:16.
   ============================================================================ */

.lop-phu-su-kien-my-hoang {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  background: #14050b;
  animation: mh-HienLopPhu 0.25s ease-out;
}

.lop-phu-su-kien-my-hoang,
.lop-phu-su-kien-my-hoang * {
  box-sizing: border-box;
}

/* Tranh nền Pixel Art toàn màn hình: Ren hôn má Bà Hoàng trước tiệm */
.mh-LopTranhNenPixel {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/su_kien_my_hoang/anh_1_hon_ma_tap_hoa.jpg');
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: brightness(0.46) saturate(1.12);
  transform: scale(1.02);
  pointer-events: none;
  z-index: 0;
}

.mh-LopPhuToiVienPixel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 77, 109, 0.14) 0%, rgba(18, 4, 11, 0.78) 82%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 2px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
  z-index: 0;
}

@keyframes mh-HienLopPhu {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ─── BẦU TRỜI TIM PIXEL BAY NỀN ────────────────────────────────────────── */
.mh-BauTroiTimBay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.mh-HatTimBay {
  position: absolute;
  bottom: -36px;
  opacity: 0;
  animation: mh-BayLenTroi 9s linear infinite;
}

.mh-hat-1  { left: 5%;  animation-delay: 0s;   animation-duration: 7.5s; }
.mh-hat-2  { left: 14%; animation-delay: 1.4s; animation-duration: 9.2s; }
.mh-hat-3  { left: 23%; animation-delay: 0.6s; animation-duration: 8.1s; }
.mh-hat-4  { left: 32%; animation-delay: 2.3s; animation-duration: 10.4s; }
.mh-hat-5  { left: 42%; animation-delay: 0.9s; animation-duration: 8.6s; }
.mh-hat-6  { left: 51%; animation-delay: 3.1s; animation-duration: 9.5s; }
.mh-hat-7  { left: 60%; animation-delay: 1.7s; animation-duration: 7.8s; }
.mh-hat-8  { left: 69%; animation-delay: 2.8s; animation-duration: 10.1s; }
.mh-hat-9  { left: 78%; animation-delay: 0.3s; animation-duration: 8.4s; }
.mh-hat-10 { left: 86%; animation-delay: 1.9s; animation-duration: 9.0s; }
.mh-hat-11 { left: 92%; animation-delay: 3.6s; animation-duration: 8.2s; }
.mh-hat-12 { left: 96%; animation-delay: 1.1s; animation-duration: 7.9s; }

@keyframes mh-BayLenTroi {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(-105vh) scale(1.1);
    opacity: 0;
  }
}

/* Đinh tán 4 góc chuẩn hộp thoại Pixel Art */
.mh-DinhGocPixel {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fde047;
  box-shadow: 0 0 0 2px #4a0e24;
  z-index: 6;
  pointer-events: none;
}

.mh-DinhGocPixel.tren-trai { top: 6px; left: 6px; }
.mh-DinhGocPixel.tren-phai { top: 6px; right: 6px; }
.mh-DinhGocPixel.duoi-trai { bottom: 6px; left: 6px; }
.mh-DinhGocPixel.duoi-phai { bottom: 6px; right: 6px; }

.mh-SvgIconPixel,
.mh-SvgConDauTimPixel,
.icon-trai-tim-pixel-gonah {
  display: block;
  flex-shrink: 0;
  image-rendering: pixelated;
}

/* ============================================================================
   GIAI ĐOẠN 1: SÂN KHẤU PHONG BÌ PIXEL ART
   ============================================================================ */
.mh-SanKhauPhongBi {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: mh-PhongBiXuatHien 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mh-PhongBiXuatHien {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mh-HuyHieuDacQuyenTren {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 0;
  background: #3b0819;
  border: 3px solid #fde047;
  box-shadow:
    0 0 0 3px #1f040d,
    0 4px 0 #1f040d;
}

.mh-ChuHuyHieuTren {
  color: #fef08a;
  font-family: 'Viet Pixel Game', 'Chakra Petch', 'Be Vietnam Pro', monospace !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 0 #1f040d;
}

/* Vỏ phong bì Pixel Art đỏ đô sẫm (KHÔNG nền trắng ở vỏ ngoài) */
.mh-ThePhongBi3D {
  position: relative;
  width: 100%;
  padding: 36px 18px 20px;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0px,
      rgba(255, 255, 255, 0.025) 2px,
      transparent 2px,
      transparent 4px
    ),
    linear-gradient(180deg, #590d22 0%, #3b0716 55%, #28040e 100%);
  border: 4px solid #fbbf24;
  box-shadow:
    0 0 0 4px #1f040d,
    inset 0 0 0 3px #800f2f,
    0 12px 0 #160208,
    0 18px 34px rgba(0, 0, 0, 0.78);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.16s steps(3);
}

.mh-ThePhongBi3D:hover {
  transform: translateY(-2px);
}

/* Nắp phong bì tam giác */
.mh-NapPhongBiTamGiac {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: linear-gradient(180deg, #800f2f 0%, #590d22 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 3px solid #fbbf24;
  transform-origin: top center;
  transition: transform 0.38s steps(5), opacity 0.38s ease;
  z-index: 3;
}

.mh-ThePhongBi3D.dang-mo-nap .mh-NapPhongBiTamGiac {
  transform: rotateX(170deg);
  opacity: 0.25;
}

.mh-ToGiayNhoLenKhiMo {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  height: 46px;
  border-radius: 0;
  background: #ffffff;
  border: 2px solid #f43f5e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.38s steps(4), opacity 0.32s ease;
  z-index: 2;
}

.mh-ToGiayNhoLenKhiMo span {
  font-family: 'Mali', 'Patrick Hand', 'Be Vietnam Pro', cursive !important;
  font-size: 13px;
  font-weight: 700;
  color: #be123c;
  text-align: center;
}

.mh-ThePhongBi3D.dang-mo-nap .mh-ToGiayNhoLenKhiMo {
  opacity: 1;
  transform: translateY(-8px);
}

/* Tờ giấy nhãn người nhận dán giữa phong bì — NỀN TRẮNG */
.mh-KhungNguoiNhanPhongBi {
  position: relative;
  z-index: 4;
  width: 100%;
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 0;
  background: #ffffff;
  border: 3px solid #4a0e24;
  box-shadow:
    inset 0 0 0 2px #fecdd3,
    0 5px 0 #1f040d;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mh-NhanNhoNguoiNhan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mh-NhanNhoNguoiNhan span {
  font-family: 'Mali', 'Patrick Hand', 'Be Vietnam Pro', sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  color: #9f1239;
}

.mh-TenNguoiNhanChinh {
  font-family: 'Viet Pixel Game', 'Paytone One', 'Mali', monospace !important;
  font-size: clamp(16px, 4.3vw, 20px);
  font-weight: 700;
  color: #be123c;
  line-height: 1.35;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 0 #ffe4e6;
}

.mh-GhiChuQuaBenTrong {
  margin-top: 2px;
  padding: 4px 10px;
  background: #fff1f2;
  border: 2px dashed #fb7185;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mh-GhiChuQuaBenTrong span {
  font-family: 'Mali', 'Patrick Hand', 'Be Vietnam Pro', sans-serif !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #881337;
}

/* Nút Trái Tim Pixel 8-bit Viền Vàng (KHÔNG khung vuông bo góc, KHÔNG emoji) */
.mh-ConDauSapTraiTim {
  position: relative;
  z-index: 5;
  padding: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 5px 0 #1a030a) drop-shadow(0 8px 14px rgba(255, 42, 109, 0.55));
  animation: mh-TimPixelDapPhongBi 1.2s steps(2) infinite;
}

.mh-ConDauSapTraiTim:hover {
  filter: brightness(1.1) drop-shadow(0 6px 0 #1a030a) drop-shadow(0 10px 18px rgba(255, 42, 109, 0.75));
}

.mh-ConDauSapTraiTim:active {
  transform: translateY(3px);
}

@keyframes mh-TimPixelDapPhongBi {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.mh-DongGoiYChamMo {
  position: relative;
  z-index: 4;
  font-family: 'Viet Pixel Game', 'Chakra Petch', 'Be Vietnam Pro', monospace !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #fef08a;
  text-align: center;
  text-shadow: 0 2px 0 #1a030a;
}

.mh-NutMoPhongBiChinh {
  width: 100%;
  padding: 12px 18px;
  border-radius: 0;
  border: 3px solid #4a0e24;
  background: linear-gradient(180deg, #ff85a1 0%, #ff4d79 52%, #e11d48 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    inset 0 3px 0 #ffc2d1,
    inset 0 -3px 0 #9f1239,
    0 5px 0 #1f040d,
    0 8px 18px rgba(225, 29, 72, 0.45);
  transition: transform 0.12s steps(2), filter 0.12s ease;
}

.mh-NutMoPhongBiChinh span {
  font-family: 'Viet Pixel Game', 'Chakra Petch', 'Be Vietnam Pro', monospace !important;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 0 #800f2f;
}

.mh-NutMoPhongBiChinh:hover {
  filter: brightness(1.06);
}

.mh-NutMoPhongBiChinh:active {
  transform: translateY(3px);
}

/* ============================================================================
   GIAI ĐOẠN 2: HỘP MODAL THƯ TÌNH & ALBUM 4 ẢNH NỀN MOBILE (KHÔNG CUỘN DỌC!)
   ============================================================================ */
.mh-HopModalThuTinh {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  height: min(96dvh, 720px);
  max-height: calc(100dvh - 12px);
  border-radius: 0;
  /* Khung ngoài Pixel Art gỗ đỏ rượu sẫm — KHÔNG nền trắng */
  background: linear-gradient(180deg, #3b0819 0%, #24040e 100%);
  border: 4px solid #fbbf24;
  box-shadow:
    0 0 0 4px #140208,
    inset 0 0 0 3px #800f2f,
    0 10px 0 #140208,
    0 18px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: mh-MoLaThu 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mh-MoLaThu {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 1. Đầu Modal Gọn */
.mh-DauModalThuTinh {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #590d22 0%, #800f2f 50%, #590d22 100%);
  border-bottom: 3px solid #fbbf24;
}

.mh-CumTieuDeModal {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mh-KhoiChuTieuDeModal {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mh-TieuDeModalChinh {
  color: #fef08a;
  font-family: 'Viet Pixel Game', 'Chakra Petch', 'Be Vietnam Pro', monospace !important;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 0 #2b0510;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-PhuDeModalNho {
  color: #fecdd3;
  font-family: 'Mali', 'Patrick Hand', 'Be Vietnam Pro', sans-serif !important;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-CumNutDauModal {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mh-NutBamThaTimDau {
  height: 30px;
  padding: 0 9px;
  border-radius: 0;
  border: 2px solid #fde047;
  background: linear-gradient(180deg, #ff758f 0%, #e11d48 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 2px 0 #1f040d;
}

.mh-NutBamThaTimDau span {
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.mh-NutBamThaTimDau:active {
  transform: translateY(2px);
}

.mh-NutDongGocModal {
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: 2px solid #fde047;
  background: #3b0819;
  color: #fef08a;
  font-family: 'Viet Pixel Game', monospace !important;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 #1f040d;
}

.mh-NutDongGocModal:hover {
  background: #be123c;
  color: #ffffff;
}

/* 2. Thanh Tab Chuyển Slide (Lá Thư <-> 4 Ảnh Nền Mobile) */
.mh-ThanhDieuHuongSlide {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 10px;
  background: #23040e;
  border-bottom: 3px solid #800f2f;
}

.mh-NutChonSlideTab {
  padding: 5px 4px;
  border-radius: 0;
  border: 2px solid #800f2f;
  background: #3b0819;
  color: #fda4af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 0 #140208;
  transition: transform 0.1s steps(2);
}

.mh-NutChonSlideTab span {
  font-family: 'Viet Pixel Game', 'Chakra Petch', 'Be Vietnam Pro', monospace !important;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.mh-NutChonSlideTab.dang-chon {
  background: linear-gradient(180deg, #ff758f 0%, #e11d48 100%);
  color: #ffffff;
  border-color: #fde047;
  box-shadow:
    inset 0 2px 0 #ffb3c6,
    0 2px 0 #140208;
}

.mh-NutChonSlideTab.dang-chon span {
  color: #ffffff;
  text-shadow: 0 1px 0 #800f2f;
}

/* 3. Thân Modal KHÔNG CUỘN DỌC (overflow: hidden) */
.mh-ThanModalThuTinh {
  flex: 1;
  min-height: 0;
  padding: 8px 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   SLIDE 0: BỐ CỤC TRANG LÁ THƯ + LÌ XÌ GỌN (VỪA KHÍT 100% KHÔNG SCROLL)
   ============================================================================ */
.mh-BoCucTrangLaThuKhongCuon {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  overflow: hidden;
}

/* Tranh đôi uyên ương đầu thư (đã căn chuẩn tỷ lệ 2:1 trọn gương mặt & nụ hôn, không che mặt) */
.mh-KhungTranhDauThu {
  position: relative;
  width: 100%;
  height: clamp(84px, 14dvh, 114px);
  flex-shrink: 0;
  border-radius: 0;
  border: 3px solid #fde047;
  background: #2b0712;
  box-shadow: 0 3px 0 #140208;
  overflow: hidden;
}

.mh-AnhMinhHoaDauThu {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  image-rendering: pixelated;
  display: block;
}

/* Tờ giấy thư tình bên trong — DUY NHẤT PHẦN NÀY NỀN TRẮNG (#ffffff) */
.mh-ToGiayThuTinh {
  flex: 1;
  min-height: 0;
  border-radius: 0;
  padding: 10px 12px;
  background-color: #ffffff;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 23px,
    rgba(244, 63, 94, 0.08) 23px,
    rgba(244, 63, 94, 0.08) 24px
  );
  border: 3px solid #4a0e24;
  box-shadow:
    inset 0 0 0 2px #fecdd3,
    0 4px 0 #140208;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  overflow: hidden;
}

.mh-DauToGiayThu {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 2px dashed #fda4af;
}

.mh-DongKinhGuiThu {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mh-DongKinhGuiThu span {
  font-family: 'Viet Pixel Game', 'Paytone One', 'Mali', monospace !important;
  font-size: clamp(11px, 2.85vw, 12.8px);
  font-weight: 800;
  color: #be123c;
  line-height: 1.25;
}

.mh-NgaySinhDauThu {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 0;
  background: #ffe4e6;
  border: 2px solid #f43f5e;
  color: #9f1239;
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 10.5px;
  font-weight: 800;
}

.mh-NoiDungChinhThu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2px 0;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mh-NoiDungChinhThu::-webkit-scrollbar {
  display: none;
}

.mh-DoanVanThu {
  margin: 0;
  font-family: 'Mali', 'Patrick Hand', 'Be Vietnam Pro', sans-serif !important;
  font-size: clamp(12px, 1.72dvh, 13.5px);
  line-height: 1.38;
  font-weight: 700;
  color: #1e293b;
}

.mh-con-tro-go-chu::after {
  content: '▋';
  display: inline-block;
  margin-left: 3px;
  color: #e11d48;
  animation: mh-NhayConTro 0.7s steps(2) infinite;
}

@keyframes mh-NhayConTro {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mh-KhungCauChotVaChuKy {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Hộp câu chốt: "Game là AI làm nhưng mà tình cảm của Ren là thật <3" */
.mh-HopCauChotChanThanh {
  padding: 5px 8px;
  border-radius: 0;
  background: #fff1f2;
  border: 2px solid #e11d48;
  box-shadow: 0 2px 0 #fda4af;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.mh-ChuCauChotChanThanh {
  font-family: 'Viet Pixel Game', 'Paytone One', 'Mali', monospace !important;
  font-size: clamp(10.5px, 2.75vw, 12.2px);
  font-weight: 800;
  color: #be123c;
  line-height: 1.25;
}

.mh-HangChuKyGon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.mh-ConDauBaHoangReal {
  padding: 2px 7px;
  border-radius: 0;
  border: 2px solid #e11d48;
  background: #ffe4e6;
  color: #be123c;
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 10px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.mh-TenChuKyRen {
  font-family: 'Mali', 'Patrick Hand', 'Be Vietnam Pro', cursive !important;
  font-size: 13.5px;
  font-weight: 800;
  color: #be123c;
}

/* Thanh Lì Xì Sinh Nhật 31/08/2000 gọn 1 hàng ngang */
.mh-ThanhLiXiGon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 0;
  background: linear-gradient(90deg, #590d22 0%, #800f2f 100%);
  border: 3px solid #fbbf24;
  box-shadow: 0 3px 0 #140208;
}

.mh-CumThongTinLiXiGon {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mh-ChuLiXiGon {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mh-TieuDeLiXiGon {
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12.5px;
  font-weight: 800;
  color: #fde047;
  line-height: 1.2;
  text-shadow: 0 1px 0 #1f040d;
}

.mh-PhuDeLiXiGon {
  font-family: 'Mali', 'Be Vietnam Pro', sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  color: #fecdd3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-NutNhanLiXiGon {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 0;
  border: 2px solid #4a0e24;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #3b0819;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 #fef9c3,
    0 3px 0 #1f040d;
}

.mh-NutNhanLiXiGon span {
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12px;
  font-weight: 900;
  color: #3b0819;
}

.mh-NutNhanLiXiGon.da-nhan {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border-color: #ecfdf5;
}

.mh-NutNhanLiXiGon.da-nhan span {
  color: #ffffff;
}

.mh-NutNhanLiXiGon:active {
  transform: translateY(2px);
}

/* ============================================================================
   SLIDE 1..4: SÂN KHẤU XEM ẢNH NỀN MOBILE 9:16 (KHÔNG CUỘN DỌC!)
   ============================================================================ */
.mh-KhungSlideAnhNen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  animation: mh-HienSlideAnh 0.2s ease-out;
}

@keyframes mh-HienSlideAnh {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mh-SanKhauXemAnhDoc {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}

.mh-NutMuiTenCanhAnh {
  width: 36px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 0;
  border: 3px solid #fde047;
  background: #590d22;
  color: #fef08a;
  font-family: 'Viet Pixel Game', monospace !important;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #140208;
}

.mh-NutMuiTenCanhAnh:hover {
  background: #be123c;
  color: #ffffff;
}

.mh-NutMuiTenCanhAnh:active {
  transform: translateY(2px);
}

/* Khung ảnh dọc 9:16 tự co giãn vừa khít chiều cao sân khấu */
.mh-KhungHienThiAnhDoc916 {
  position: relative;
  height: 100%;
  max-height: clamp(250px, 58dvh, 430px);
  aspect-ratio: 9 / 16;
  border-radius: 0;
  border: 3px solid #fde047;
  background: #1a030a;
  box-shadow:
    0 0 0 3px #4a0e24,
    0 8px 20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  flex-shrink: 1;
}

.mh-AnhNenMobile916 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}

.mh-NhanGocAnh916 {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 0;
  background: rgba(36, 4, 14, 0.88);
  border: 2px solid #fde047;
  color: #fef08a;
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 10.5px;
  font-weight: 800;
}

/* Thanh thông tin & 2 nút tải ảnh gọn ở đáy sân khấu ảnh */
.mh-ThanhTaiAnhNenGon {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 0;
  background: #3b0819;
  border: 2px solid #fb7185;
  box-shadow: 0 3px 0 #140208;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mh-HangChuMoTaAnhGon {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1px;
}

.mh-TieuDeAnhNen {
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 13px;
  font-weight: 800;
  color: #fde047;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-MoTaAnhNen {
  font-family: 'Mali', 'Be Vietnam Pro', sans-serif !important;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffe4e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mh-CumNutTaiAnhNen {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 6px;
}

.mh-NutTaiAnhVeMay {
  padding: 8px 10px;
  border-radius: 0;
  border: 2px solid #4a0e24;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #3b0819;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 #fef9c3,
    0 3px 0 #140208;
}

.mh-NutTaiAnhVeMay span {
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12px;
  font-weight: 900;
  color: #3b0819;
}

.mh-NutTaiAnhVeMay:active {
  transform: translateY(2px);
}

.mh-NutTaiTronBoAnh {
  padding: 8px 8px;
  border-radius: 0;
  border: 2px solid #fb7185;
  background: #590d22;
  color: #ffe4e6;
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #140208;
}

.mh-NutTaiTronBoAnh:hover {
  background: #800f2f;
  color: #ffffff;
}

/* 4. Chân Modal Gọn */
.mh-ChanModalThuTinh {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  background: #1f040d;
  border-top: 3px solid #800f2f;
}

.mh-NutPhuXemLaiPhongBi {
  padding: 8px 10px;
  border-radius: 0;
  border: 2px solid #fb7185;
  background: #3b0819;
  color: #fecdd3;
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #110207;
  white-space: nowrap;
}

.mh-NutPhuXemLaiPhongBi:hover {
  background: #590d22;
  color: #ffffff;
}

.mh-NutChuyenXemAnhChinh {
  flex: 1;
  padding: 8px 10px;
  border-radius: 0;
  border: 2px solid #fde047;
  background: linear-gradient(180deg, #ff85a1 0%, #e11d48 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 #ffc2d1,
    0 3px 0 #110207;
}

.mh-NutChuyenXemAnhChinh span {
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 0 #800f2f;
  white-space: nowrap;
}

.mh-NutChuyenXemAnhChinh:active {
  transform: translateY(2px);
}

.mh-NutChinhVaoTiem {
  padding: 8px 12px;
  border-radius: 0;
  border: 2px solid #4a0e24;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%);
  color: #3b0819;
  font-family: 'Viet Pixel Game', 'Chakra Petch', monospace !important;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 #fef9c3,
    0 3px 0 #110207;
  white-space: nowrap;
}

.mh-NutChinhVaoTiem:active {
  transform: translateY(2px);
}

/* ============================================================================
   HIỆU ỨNG NỔ PHÁO HOA TRÁI TIM PIXEL TRÊN MÀN HÌNH
   ============================================================================ */
.mh-LopPhaoHoaTim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100005;
  overflow: hidden;
}

.mh-TiaTimNo {
  position: absolute;
  left: 50%;
  top: 52%;
  opacity: 0;
  animation: mh-NoTiaTim 1.15s ease-out forwards;
}

@keyframes mh-NoTiaTim {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--mh-tx, 0px)), calc(-50% + var(--mh-ty, -120px)))
      scale(1.25) rotate(var(--mh-rot, 0deg));
  }
}

.mh-tia-1  { --mh-tx: -130px; --mh-ty: -150px; --mh-rot: -25deg; }
.mh-tia-2  { --mh-tx: -70px;  --mh-ty: -190px; --mh-rot: -12deg; }
.mh-tia-3  { --mh-tx: 0px;    --mh-ty: -210px; --mh-rot: 0deg;   }
.mh-tia-4  { --mh-tx: 75px;   --mh-ty: -185px; --mh-rot: 14deg;  }
.mh-tia-5  { --mh-tx: 135px;  --mh-ty: -145px; --mh-rot: 28deg;  }
.mh-tia-6  { --mh-tx: -155px; --mh-ty: -70px;  --mh-rot: -35deg; }
.mh-tia-7  { --mh-tx: 155px;  --mh-ty: -70px;  --mh-rot: 35deg;  }
.mh-tia-8  { --mh-tx: -110px; --mh-ty: 25px;   --mh-rot: -18deg; }
.mh-tia-9  { --mh-tx: 110px;  --mh-ty: 25px;   --mh-rot: 18deg;  }
.mh-tia-10 { --mh-tx: -45px;  --mh-ty: -125px; --mh-rot: -8deg;  }
.mh-tia-11 { --mh-tx: 45px;   --mh-ty: -125px; --mh-rot: 8deg;   }
.mh-tia-12 { --mh-tx: 0px;    --mh-ty: -95px;  --mh-rot: 5deg;   }

/* Thẻ đặc quyền trong Studio */
.the-cai-dat-su-kien-my-hoang {
  border: 2px solid #fb7185 !important;
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.28) 0%, rgba(76, 5, 25, 0.45) 100%) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22) !important;
}

/* ============================================================================
   NÚT HỒNG PIXEL ART "GỬI GONAH" (HIỂN THỊ TRONG CÀI ĐẶT KHI LOG ĐÚNG MAIL)
   ============================================================================ */
.nut-pixel-gui-gonah {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 0;
  border: 3px solid #4a0e24;
  background: linear-gradient(180deg, #ff85a1 0%, #ff5c8a 52%, #e01e5a 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 3px 0 #ffc2d1,
    inset 0 -3px 0 #a4133c,
    0 4px 0 #4a0e24,
    0 6px 14px rgba(255, 77, 136, 0.38);
  transition: transform 0.12s steps(2), filter 0.12s steps(2), box-shadow 0.12s steps(2);
}

.nut-pixel-gui-gonah:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    inset 0 3px 0 #ffd6e0,
    inset 0 -3px 0 #a4133c,
    0 5px 0 #4a0e24,
    0 8px 18px rgba(255, 77, 136, 0.48);
}

.nut-pixel-gui-gonah:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 #ffc2d1,
    inset 0 -1px 0 #a4133c,
    0 1px 0 #4a0e24;
}

.icon-trai-tim-pixel-gonah {
  flex-shrink: 0;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(74, 14, 36, 0.55));
  animation: mh-TimPixelDapNhe 1.2s steps(2) infinite;
}

.nhan-nut-gui-gonah {
  font-family: 'Viet Pixel Game', 'Chakra Petch', 'Be Vietnam Pro', monospace !important;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-shadow: 0 2px 0 #800f2f;
}

@keyframes mh-TimPixelDapNhe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}
