/* ============================================================================
   NAPVNX5.NET — DEMO V2 UNIFIED FLAPPY BIRD PIXEL 3D ARCADE THEME & LIVE CSKH
   Đồng bộ 100% Font Pixel Flappy Bird Việt Hóa Tiếng Việt (FlappyPixelVN)
   ============================================================================ */

@font-face {
  font-family: 'FlappyPixelVN';
  src: url('/games/flappy/VT323-VN.ttf') format('woff'),
       url('/games/flappy/VT323-VN.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* 1. ĐỒNG BỘ 100% FONT PIXEL FLAPPY BIRD VIỆT HÓA CHO CẢ KHUNG CHAT CSKH TRONG GAME */
.cskh-floating-btn,
.cskh-floating-btn *,
.cskh-chat-panel,
.cskh-chat-panel * {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-weight: 400 !important;
}

/* 2. TINH GỌN KHUNG GAME FLAPPY BIRD & TÁCH ĐỘC LẬP 100% KHỎI PHẦN NẠP THẺ BÊN NGOÀI */
#mg-winner-showcase-wrap,
#mg-attached-topup-banner,
.mg-pkg-bonus-badge,
#mg-btn-event-info {
  display: none !important;
}

.pkg-card.has-mg-bonus {
  border-color: rgba(226, 232, 240, 0.9) !important;
  box-shadow: none !important;
}
.pkg-card.has-mg-bonus.selected {
  border-color: #DC2626 !important;
}

.mg-arena-modal {
  position: relative !important;
  max-width: 430px !important;
  border-radius: 26px !important;
  border: 3px solid #FACC15 !important;
  background: #1A2436 !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 0 2px rgba(255, 255, 255, 0.15) inset !important;
  overflow: hidden !important;
}

.mg-arena-header {
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%) !important;
  border-bottom: 2px solid #38BDF8 !important;
  padding: 10px 14px !important;
}

.mg-arena-hud {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%) !important;
  padding: 8px 12px !important;
  border-bottom: 2px solid rgba(56, 189, 248, 0.35) !important;
}

/* Đồng bộ Font Pixel Flappy Bird Việt Hóa cho thanh Header & HUD trên đỉnh bàn chơi */
.mg-brand-wordmark-3d,
.mg-brand-wordmark-3d span,
.mg-player-badge-mini,
.mg-player-badge-mini *,
.mg-hud-stat-label,
.mg-hud-pipes,
.mg-hud-score,
.mg-wallet-lbl,
.mg-wallet-val,
.mg-wallet-pct,
.fb-board-card,
.fb-board-card *,
.fb-buy-turns-board,
.fb-buy-turns-board *,
.fb-ingame-pay-board,
.fb-ingame-pay-board *,
.fb-scenario-popup-card,
.fb-scenario-popup-card * {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-weight: 400 !important;
}

.mg-arena-topbar {
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%) !important;
  padding: 7px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  border-bottom: 2px solid rgba(250, 204, 21, 0.32) !important;
}

.mg-arena-title {
  gap: 6px !important;
}

.mg-brand-icon-3d {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  border: 1.5px solid #000000 !important;
  box-shadow: 0 2px 0 #000000 !important;
}

.mg-brand-wordmark-3d,
.mg-brand-wordmark-3d span {
  font-size: 1.24rem !important;
  letter-spacing: 0.4px !important;
}

.mg-brand-wordmark-3d .c-space {
  width: 4px !important;
}

.mg-arena-topbar-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 0 !important;
}

/* HUY HIỆU HIỂN THỊ TÊN & UID NGƯỜI CHƠI TRÊN CÙNG MÀN HÌNH (CHUẨN 3D PIXEL FLAPPY BIRD) */
.mg-player-badge-mini {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 3.5px 9px 3.5px 5px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #1E293B 0%, #090D16 100%) !important;
  border: 2px solid #FACC15 !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.28), 0 2.5px 0 #000000 !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, border-color 0.12s ease !important;
}

.mg-player-badge-mini:hover {
  border-color: #FEF08A !important;
  transform: translateY(-1px) !important;
}

.mg-player-badge-mini:active {
  transform: translateY(1px) !important;
}

.fb-top-user-avatar {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FDE047 0%, #F97316 100%);
  border: 1.5px solid #000000;
  box-shadow: 0 1.5px 0 #000000;
  padding: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-top-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.fb-top-user-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  border: 1.5px solid #000000;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

.fb-top-user-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.02;
  min-width: 0;
}

.fb-top-user-name {
  font-family: 'FlappyPixelVN', 'Jersey10', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem !important;
  color: #FEF08A !important;
  letter-spacing: 0.35px !important;
  white-space: nowrap !important;
  text-shadow:
    -1.2px -1.2px 0 #000000,
     1.2px -1.2px 0 #000000,
    -1.2px  1.2px 0 #000000,
     1.2px  1.2px 0 #000000 !important;
}

.fb-top-user-uid {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.84rem !important;
  color: #7DD3FC !important;
  letter-spacing: 0.35px !important;
  white-space: nowrap !important;
  margin-top: 1px;
  text-shadow:
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000 !important;
}

.mg-sound-btn,
.mg-arena-close {
  width: 31px !important;
  height: 31px !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #334155 0%, #1E293B 100%) !important;
  border: 2px solid #000000 !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.22), 0 2px 0 #000000 !important;
  flex-shrink: 0 !important;
}

.mg-arena-close:hover {
  background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%) !important;
}

.mg-hud-stat-label,
.mg-wallet-lbl {
  font-size: 0.92rem !important;
}

.mg-hud-pipes {
  font-size: 1rem !important;
}

.mg-hud-score,
.mg-wallet-val {
  font-size: 1.25rem !important;
}

.mg-wallet-pct {
  font-size: 1.05rem !important;
}

/* ============================================================================
   BƯỚC 1: BẢNG ĐĂNG NHẬP UID GAME (CHUẨN PIXEL FLAPPY BIRD VIỆT HÓA 100%)
   ============================================================================ */
.fb-sky-stage-wrap {
  position: relative;
  width: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 14px 46px;
  overflow: hidden;
  background: linear-gradient(180deg, #38BDF8 0%, #4EC0CA 62%, #E2F1B8 78%, #DED895 100%);
}

.fb-sky-clouds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 90px;
  background:
    radial-gradient(circle at 15% 60%, rgba(255, 255, 255, 0.85) 28px, transparent 30px),
    radial-gradient(circle at 32% 45%, rgba(255, 255, 255, 0.9) 38px, transparent 40px),
    radial-gradient(circle at 52% 65%, rgba(255, 255, 255, 0.85) 30px, transparent 32px),
    radial-gradient(circle at 72% 48%, rgba(255, 255, 255, 0.9) 36px, transparent 38px),
    radial-gradient(circle at 90% 60%, rgba(255, 255, 255, 0.85) 28px, transparent 30px);
  pointer-events: none;
}

.fb-sky-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background:
    repeating-linear-gradient(
      -45deg,
      #73BF2E 0px,
      #73BF2E 12px,
      #558022 12px,
      #558022 24px
    );
  border-top: 4px solid #543847;
  box-shadow: inset 0 -42px 0 #DED895;
  pointer-events: none;
}

/* Khung Bảng Vàng Pixel 3D Chuẩn Flappy Bird */
.fb-board-card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 392px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 48%, #FDE68A 100%);
  border: 4px solid #543847;
  box-shadow:
    0 8px 0 #543847,
    0 18px 40px rgba(0, 0, 0, 0.48),
    inset 0 3px 0 #FFFFFF;
  padding: 20px 16px 18px;
  text-align: center;
  animation: mgModalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
}

/* Cụm Logo Pixel Flappy Bird Chính Gốc & Hiệu Ứng Động Sống Động Đẹp Mắt */
.fb-pixel-hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 13px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0284C7 0%, #38BDF8 45%, #4EC0CA 75%, #73BF2E 100%);
  border: 3px solid #543847;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.65),
    0 5px 0 rgba(84, 56, 71, 0.32),
    0 0 22px rgba(56, 189, 248, 0.35);
  overflow: hidden;
}

/* Tia sáng Mặt Trời Hoàng Kim xoay tròn phía sau Logo Flappy Bird */
.fb-hero-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(254, 240, 138, 0.22) 0deg 12deg,
    transparent 12deg 24deg
  );
  pointer-events: none;
  z-index: 0;
  animation: fbSunburstSpin 18s linear infinite;
}

@keyframes fbSunburstSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dải ánh sáng kim cương quét ngang qua khung Logo */
.fb-hero-shimmer {
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-24deg);
  pointer-events: none;
  z-index: 1;
  animation: fbHeroShineSweep 3.4s ease-in-out infinite;
}

@keyframes fbHeroShineSweep {
  0% { left: -130%; }
  45%, 100% { left: 165%; }
}

/* Đám mây Pixel trôi nhẹ dưới chân bầu trời */
.fb-hero-clouds-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 36px;
  background:
    radial-gradient(circle at 12% 75%, rgba(255, 255, 255, 0.65) 16px, transparent 18px),
    radial-gradient(circle at 28% 60%, rgba(255, 255, 255, 0.72) 22px, transparent 24px),
    radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.6) 18px, transparent 20px),
    radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.72) 22px, transparent 24px),
    radial-gradient(circle at 90% 75%, rgba(255, 255, 255, 0.65) 16px, transparent 18px);
  pointer-events: none;
  z-index: 1;
  animation: fbCloudsDrift 5s ease-in-out infinite alternate;
}

@keyframes fbCloudsDrift {
  0% { transform: translateX(-6px); }
  100% { transform: translateX(6px); }
}

/* Sân khấu chứa Logo Flappy Bird + Hào Quang Hoàng Kim + Kim Cương 3D bay lượn */
.fb-hero-logo-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 4px 10px;
}

.fb-hero-logo-glow {
  position: absolute;
  width: 220px;
  height: 58px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.72) 0%, rgba(250, 204, 21, 0.25) 55%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
  animation: fbLogoGlowPulse 2.2s ease-in-out infinite;
}

@keyframes fbLogoGlowPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.12); opacity: 1; }
}

.fb-pixel-logo-img {
  position: relative;
  z-index: 2;
  width: 236px;
  max-width: 88%;
  height: auto;
  image-rendering: pixelated;
  filter:
    drop-shadow(0 4px 0 #000000)
    drop-shadow(0 0 14px rgba(254, 240, 138, 0.85));
  margin-bottom: 0;
  animation: fbLogoFloat 2.2s ease-in-out infinite;
}

@keyframes fbLogoFloat {
  0%, 100% { transform: translateY(0) scale(1) rotate(-0.8deg); }
  50% { transform: translateY(-5px) scale(1.04) rotate(0.8deg); }
}

/* Các viên Kim Cương 3D & Sao Lấp Lánh bay quanh Logo */
.fb-hero-float-gem {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 #000000) drop-shadow(0 0 8px rgba(56, 189, 248, 0.9));
}

.fb-hero-float-gem.gem-left {
  top: 7px;
  left: 10px;
  animation: fbGemFloatLeft 2.4s ease-in-out infinite;
}

.fb-hero-float-gem.gem-right {
  bottom: 34px;
  right: 10px;
  width: 22px;
  height: 22px;
  animation: fbGemFloatRight 2.1s ease-in-out infinite;
}

@keyframes fbGemFloatLeft {
  0%, 100% { transform: translateY(0) rotate(-12deg) scale(1); }
  50% { transform: translateY(-5px) rotate(-4deg) scale(1.12); }
}

@keyframes fbGemFloatRight {
  0%, 100% { transform: translateY(0) rotate(12deg) scale(1); }
  50% { transform: translateY(-5px) rotate(4deg) scale(1.12); }
}

.fb-hero-sparkle {
  position: absolute;
  z-index: 2;
  color: #FEF08A;
  font-size: 0.95rem;
  text-shadow: 0 0 6px #FACC15, 1px 1px 0 #000;
  pointer-events: none;
  animation: fbSparkleTwinkle 1.6s ease-in-out infinite;
}

.fb-hero-sparkle.sp-1 {
  top: 6px;
  right: 54px;
  animation-delay: 0.1s;
}

.fb-hero-sparkle.sp-2 {
  bottom: 36px;
  left: 38px;
  animation-delay: 0.8s;
}

@keyframes fbSparkleTwinkle {
  0%, 100% { transform: scale(0.75) rotate(0deg); opacity: 0.65; }
  50% { transform: scale(1.22) rotate(20deg); opacity: 1; }
}

.fb-pixel-hero-badges {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 2px solid #FDE047;
  box-shadow: 0 3px 0 #000000, 0 0 12px rgba(250, 204, 21, 0.45);
  color: #FEF08A;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.04rem;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-shadow: 1.5px 1.5px 0 #000000;
}

.fb-hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  flex-shrink: 0;
  animation: fbLiveDotPulse 1.4s ease-in-out infinite;
}

@keyframes fbLiveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

.fb-uid-msg {
  display: none;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  border: 2.5px solid #543847;
}

.fb-uid-msg.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
}

.fb-uid-msg.info {
  display: block;
  background: #E0F2FE;
  color: #075985;
}

.fb-uid-msg.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
}

.fb-board-heading {
  margin: 2px 0 4px;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.72rem;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.8px;
  line-height: 1.1;
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
    -2px  0px 0 #000000,
     2px  0px 0 #000000,
     0px -2px 0 #000000,
     0px  2px 0 #000000,
     0px  4px 0 #543847;
}

.fb-board-sub {
  margin: 0 0 12px;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #451A03;
}

.fb-uid-input-group {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 3px solid #543847;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.12), 0 4px 0 rgba(84, 56, 71, 0.18);
  margin-bottom: 12px;
}

.fb-uid-input-group:focus-within {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.fb-uid-prefix {
  height: 48px;
  padding: 0 14px;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  border-right: 3px solid #543847;
  color: #FFFFFF;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: -1.5px -1.5px 0 #000000, 1.5px -1.5px 0 #000000, -1.5px 1.5px 0 #000000, 1.5px 1.5px 0 #000000;
}

.fb-uid-field {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.38rem;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.fb-uid-field::placeholder {
  color: #94A3B8;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-weight: 400;
}

.fb-btn-3d-action {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 11px 16px;
  border-radius: 15px;
  border: 3px solid #000000;
  background: linear-gradient(180deg, #4ADE80 0%, #22C55E 52%, #16A34A 100%);
  box-shadow: 0 5px 0 #000000, inset 0 3px 0 rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.42rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  cursor: pointer;
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
     0px  3px 0 #14532D;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.fb-btn-3d-action:hover:not(:disabled) {
  transform: translateY(-1.5px);
  filter: brightness(1.05);
}

.fb-btn-3d-action:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #000000;
}

.fb-demo-uid-quick {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px dashed #543847;
  color: #451A03;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.14s ease;
}

.fb-demo-uid-quick:hover {
  background: #FFFFFF;
}

/* ============================================================================
   BƯỚC 2: BẢNG MENU MUA LƯỢT BAY PIXEL 3D (HIỆN RA KHI NHẤN NÚT BAY)
   Font Pixel Flappy Bird Việt Hóa Tiếng Việt 100% + Màu Sắc 3D Nổi Khối
   ============================================================================ */
.fb-buy-turns-overlay {
  position: absolute;
  inset: 0;
  z-index: 72;
  background: rgba(14, 116, 144, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  animation: mgModalPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fb-buy-turns-board {
  position: relative;
  width: 100%;
  max-width: 398px;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 52%, #FDE68A 100%);
  border: 4px solid #543847;
  box-shadow:
    0 8px 0 #543847,
    0 20px 45px rgba(0, 0, 0, 0.55),
    inset 0 3px 0 #FFFFFF;
  padding: 12px 12px 12px;
  text-align: center;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
}

.fb-buy-close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2.5px solid #000000;
  background: #EF4444;
  color: #FFFFFF;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fb-buy-close-x:hover {
  transform: scale(1.06);
}

.fb-buy-logo-top {
  width: 152px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 #000000);
  margin: 0 auto 2px;
  display: block;
}

.fb-buy-main-title {
  margin: 0 0 8px;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.68rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  line-height: 1.05;
  color: #FDE047;
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
    -2px  0px 0 #000000,
     2px  0px 0 #000000,
     0px -2px 0 #000000,
     0px  2px 0 #000000,
     0px  4px 0 #543847;
}

/* Danh sách 5 Thẻ Menu Pixel 3D Màu Sắc Đẹp & Thuận Mắt */
.fb-menu-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 9px;
}

.fb-tier-3d-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 3px solid #000000;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  text-align: left;
}

.fb-tier-3d-item:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.04);
}

.fb-tier-3d-item:active {
  transform: translateY(2px);
}

/* 5 Bảng Màu 3D Tươi Sáng Thuận Mắt Chuẩn Game Flappy Bird */
.fb-tier-3d-item.tier-20k {
  background: linear-gradient(180deg, #34D399 0%, #10B981 55%, #059669 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.fb-tier-3d-item.tier-50k {
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 55%, #0369A1 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.fb-tier-3d-item.tier-100k {
  background: linear-gradient(180deg, #C084FC 0%, #9333EA 55%, #7E22CE 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.fb-tier-3d-item.tier-200k {
  background: linear-gradient(180deg, #FB923C 0%, #EA580C 55%, #C2410C 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.fb-tier-3d-item.tier-500k {
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 52%, #D97706 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.fb-tier-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.fb-tier-gem-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(9, 13, 22, 0.36);
  border: 2px solid #000000;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-tier-gem-box svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 0 #000000);
}

.fb-tier-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.fb-tier-title-3d {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.38rem;
  font-weight: 400;
  line-height: 1.02;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  white-space: nowrap;
  text-shadow:
    -1.8px -1.8px 0 #000000,
     1.8px -1.8px 0 #000000,
    -1.8px  1.8px 0 #000000,
     1.8px  1.8px 0 #000000,
    -1.8px  0px   0 #000000,
     1.8px  0px   0 #000000,
     0px   -1.8px 0 #000000,
     0px    1.8px 0 #000000,
     0px    3px   0 #000000;
}

.fb-tier-3d-item.tier-500k .fb-tier-title-3d {
  color: #FEF9C3;
}

.fb-tier-reward-3d {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.2px;
  color: #FEF08A;
  white-space: nowrap;
  text-shadow:
    -1.5px -1.5px 0 #000000,
     1.5px -1.5px 0 #000000,
    -1.5px  1.5px 0 #000000,
     1.5px  1.5px 0 #000000,
     0px    2px   0 #000000;
}

.fb-tier-3d-item.tier-500k .fb-tier-reward-3d {
  color: #FFFFFF;
}

.fb-tier-cta-pill {
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  background: linear-gradient(180deg, #FEF08A 0%, #FACC15 100%);
  border: 2.5px solid #000000;
  box-shadow: 0 3px 0 #000000;
  color: #FFFFFF;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  text-shadow:
    -1.4px -1.4px 0 #000000,
     1.4px -1.4px 0 #000000,
    -1.4px  1.4px 0 #000000,
     1.4px  1.4px 0 #000000;
}

.fb-tier-3d-item.tier-500k .fb-tier-cta-pill {
  background: linear-gradient(180deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
}

.fb-try-demo-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 12px;
  border: 3px solid #000000;
  background: linear-gradient(180deg, #F97316 0%, #EA580C 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-shadow:
    -1.5px -1.5px 0 #000000,
     1.5px -1.5px 0 #000000,
    -1.5px  1.5px 0 #000000,
     1.5px  1.5px 0 #000000,
     0px    2.5px 0 #000000;
}

.fb-try-demo-btn:hover {
  filter: brightness(1.06);
}

/* ============================================================================
   BƯỚC 3: BẢNG THANH TOÁN RIÊNG NGAY TRONG GAME FLAPPY BIRD (KHÔNG DÙNG BẢNG NGOÀI)
   ============================================================================ */
.fb-ingame-pay-overlay {
  position: absolute;
  inset: 0;
  z-index: 73;
  background: rgba(9, 14, 26, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  animation: mgModalPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fb-ingame-pay-board {
  position: relative;
  width: 100%;
  max-width: 398px;
  max-height: 522px;
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 52%, #FDE68A 100%);
  border: 4px solid #543847;
  box-shadow:
    0 8px 0 #543847,
    0 22px 48px rgba(0, 0, 0, 0.65),
    inset 0 3px 0 #FFFFFF;
  padding: 11px 12px 12px;
  text-align: center;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
}

.fb-ingame-pay-board::-webkit-scrollbar {
  width: 4px;
}

.fb-ingame-pay-board::-webkit-scrollbar-thumb {
  background: #543847;
  border-radius: 99px;
}

.fb-pay-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.fb-pay-back-btn {
  padding: 4px 10px;
  border-radius: 9px;
  border: 2.5px solid #000000;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  box-shadow: 0 3px 0 #000000;
  color: #FFFFFF;
  font-size: 1rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-shadow: -1.4px -1.4px 0 #000, 1.4px -1.4px 0 #000, -1.4px 1.4px 0 #000, 1.4px 1.4px 0 #000;
}

.fb-pay-back-btn:hover {
  filter: brightness(1.06);
}

.fb-pay-board-title {
  margin: 0;
  font-size: 1.45rem;
  color: #FDE047;
  letter-spacing: 0.6px;
  text-shadow:
    -1.8px -1.8px 0 #000000,
     1.8px -1.8px 0 #000000,
    -1.8px  1.8px 0 #000000,
     1.8px  1.8px 0 #000000,
     0px    3px   0 #543847;
}

.fb-pay-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2.5px solid #000000;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fb-pay-pkg-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 3px solid #000000;
  margin-bottom: 9px;
  text-align: left;
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

.fb-pay-pkg-summary.tier-20k {
  background: linear-gradient(180deg, #34D399 0%, #10B981 55%, #059669 100%);
}
.fb-pay-pkg-summary.tier-50k {
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 55%, #0369A1 100%);
}
.fb-pay-pkg-summary.tier-100k {
  background: linear-gradient(180deg, #C084FC 0%, #9333EA 55%, #7E22CE 100%);
}
.fb-pay-pkg-summary.tier-200k {
  background: linear-gradient(180deg, #FB923C 0%, #EA580C 55%, #C2410C 100%);
}
.fb-pay-pkg-summary.tier-500k {
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 52%, #D97706 100%);
}

.fb-pay-uid-badge {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(9, 13, 22, 0.78);
  border: 2px solid #FDE047;
  color: #FEF08A;
  font-size: 0.92rem;
  white-space: nowrap;
  text-shadow: 1px 1px 0 #000;
}

.fb-pay-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 9px;
}

.fb-pay-method-tabs.single-tab {
  grid-template-columns: 1fr;
}

.fb-pay-tab-btn {
  padding: 7px 8px;
  border-radius: 11px;
  border: 2.5px solid #000000;
  background: #E2E8F0;
  color: #334155;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 3px 0 #000000;
  transition: all 0.12s ease;
}

.fb-pay-tab-btn.active {
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 100%);
  color: #FFFFFF;
  text-shadow:
    -1.5px -1.5px 0 #000000,
     1.5px -1.5px 0 #000000,
    -1.5px  1.5px 0 #000000,
     1.5px  1.5px 0 #000000;
}

.fb-pay-telco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.fb-telco-btn {
  padding: 6px 4px;
  border-radius: 10px;
  border: 2.5px solid #543847;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(84, 56, 71, 0.35);
  transition: all 0.12s ease;
}

.fb-telco-btn.active {
  border-color: #000000;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 0 #000000;
  text-shadow: -1.3px -1.3px 0 #000, 1.3px -1.3px 0 #000, -1.3px 1.3px 0 #000, 1.3px 1.3px 0 #000;
}

.fb-pay-input-row {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2.5px solid #543847;
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 7px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fb-pay-input-lbl {
  width: 82px;
  height: 38px;
  background: #F1F5F9;
  border-right: 2.5px solid #543847;
  color: #334155;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-pay-input-field {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  color: #0F172A;
  font-size: 1.12rem;
  letter-spacing: 0.6px;
}

.fb-pay-status-msg {
  display: none;
  margin: 0 0 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 2px solid #000000;
  font-size: 1rem;
  line-height: 1.25;
}

.fb-pay-status-msg.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
}

.fb-pay-status-msg.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
}

.fb-pay-status-msg.info {
  display: block;
  background: #E0F2FE;
  color: #075985;
}

.fb-pay-qr-box {
  background: #FFFFFF;
  border: 3px solid #543847;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 4px 0 rgba(84, 56, 71, 0.25);
}

.fb-pay-qr-img {
  width: 158px;
  height: 158px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  border-radius: 8px;
  border: 2px solid #E2E8F0;
}

.fb-pay-bank-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font-size: 0.98rem;
  color: #1E293B;
  background: #F8FAFC;
  border: 2px solid #CBD5E1;
  border-radius: 10px;
  padding: 6px 8px;
}

.fb-pay-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.fb-pay-copy-mini {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1.8px solid #000000;
  background: #FDE047;
  color: #000000;
  font-size: 0.85rem;
  cursor: pointer;
}

.fb-pay-submit-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 3px solid #000000;
  background: linear-gradient(180deg, #4ADE80 0%, #22C55E 55%, #16A34A 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  font-size: 1.24rem;
  letter-spacing: 0.6px;
  cursor: pointer;
  text-shadow:
    -1.6px -1.6px 0 #000000,
     1.6px -1.6px 0 #000000,
    -1.6px  1.6px 0 #000000,
     1.6px  1.6px 0 #000000,
     0px    2.5px 0 #14532D;
  margin-bottom: 7px;
}

.fb-pay-submit-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.fb-pay-demo-instant-btn {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 2.5px dashed #543847;
  background: rgba(255, 255, 255, 0.86);
  color: #9A3412;
  font-size: 1rem;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.fb-pay-demo-instant-btn:hover {
  background: #FFFFFF;
}

/* ============================================================================
   BẢNG THÔNG BÁO KỊCH BẢN TỰ NHIÊN TRONG GAME (AN ỦI & TẶNG 113 KC)
   ============================================================================ */
.fb-scenario-popup-overlay {
  position: absolute;
  inset: 0;
  z-index: 52;
  background: rgba(9, 14, 26, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: mgModalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.fb-scenario-popup-card {
  position: relative;
  width: 100%;
  max-width: 376px;
  max-height: 518px;
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 52%, #FDE68A 100%);
  border: 4px solid #543847;
  box-shadow:
    0 8px 0 #543847,
    0 22px 50px rgba(0, 0, 0, 0.65),
    inset 0 3px 0 #FFFFFF;
  padding: 13px 14px 13px;
  text-align: center;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
}

.fb-scen-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #0F172A;
  border: 2px solid #FACC15;
  color: #FEF08A;
  font-size: 0.96rem;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.fb-scen-icon-stage {
  width: 62px;
  height: 62px;
  margin: 2px auto 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  border: 3px solid #000000;
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
}

.fb-scen-icon-stage.is-gold {
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 55%, #D97706 100%);
}

.fb-scen-title {
  margin: 0 0 8px;
  font-size: 1.56rem;
  line-height: 1.08;
  color: #FFFFFF;
  letter-spacing: 0.6px;
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
    -2px  0px 0 #000000,
     2px  0px 0 #000000,
     0px -2px 0 #000000,
     0px  2px 0 #000000,
     0px  4px 0 #543847;
}

.fb-scen-title.gold-text {
  color: #FDE047;
}

.fb-scen-desc-box {
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid #543847;
  border-radius: 14px;
  padding: 9px 11px;
  margin-bottom: 10px;
  color: #1E293B;
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: 0.3px;
  box-shadow: inset 0 2px 0 #FFFFFF;
}

.fb-scen-desc-box strong {
  color: #B45309;
}

.fb-scen-kc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #065F46 0%, #064E3B 100%);
  border: 2.5px solid #34D399;
  color: #FEF08A;
  font-size: 1.38rem;
  margin-bottom: 10px;
  box-shadow: 0 4px 0 #000000;
  text-shadow: -1.6px -1.6px 0 #000, 1.6px -1.6px 0 #000, -1.6px 1.6px 0 #000, 1.6px 1.6px 0 #000;
}

.fb-scen-btn-primary {
  width: 100%;
  padding: 9px 12px;
  border-radius: 13px;
  border: 3px solid #000000;
  background: linear-gradient(180deg, #4ADE80 0%, #22C55E 55%, #16A34A 100%);
  box-shadow: 0 4px 0 #000000, inset 0 2px 0 rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  font-size: 1.24rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  text-shadow:
    -1.8px -1.8px 0 #000000,
     1.8px -1.8px 0 #000000,
    -1.8px  1.8px 0 #000000,
     1.8px  1.8px 0 #000000,
     0px    3px   0 #14532D;
}

.fb-scen-btn-primary.gold-btn {
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 52%, #EA580C 100%);
  text-shadow:
    -1.8px -1.8px 0 #000000,
     1.8px -1.8px 0 #000000,
    -1.8px  1.8px 0 #000000,
     1.8px  1.8px 0 #000000,
     0px    3px   0 #7C2D12;
}

.fb-scen-btn-secondary {
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 2.5px solid #000000;
  background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
  box-shadow: 0 3px 0 #000000;
  color: #FFFFFF;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  text-shadow: -1.4px -1.4px 0 #000, 1.4px -1.4px 0 #000, -1.4px 1.4px 0 #000, 1.4px 1.4px 0 #000;
}


/* ============================================================================
   KHUNG CHAT CSKH TRỰC TUYẾN NẰM NGAY TRONG GAME FLAPPY BIRD
   Đồng bộ 100% Font Pixel Flappy Bird Việt Hóa Tiếng Việt (FlappyPixelVN)
   ============================================================================ */
.cskh-floating-btn {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 2.5px solid #FACC15;
  box-shadow: 0 4px 0 #000000, 0 6px 18px rgba(0, 0, 0, 0.65);
  color: #F8FAFC;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.cskh-floating-btn:hover {
  transform: translateY(-2px);
  border-color: #FEF08A;
}

.cskh-btn-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #FDE047, #F97316);
  border: 1.5px solid #000000;
  flex-shrink: 0;
}

.cskh-btn-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.cskh-btn-online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #0F1422;
  box-shadow: 0 0 6px #22C55E;
}

.cskh-btn-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.cskh-btn-title {
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: #FEF08A;
  text-shadow: -1.3px -1.3px 0 #000, 1.3px -1.3px 0 #000, -1.3px 1.3px 0 #000, 1.3px 1.3px 0 #000;
}

.cskh-btn-sub {
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  color: #6EE7B7;
  text-shadow: 1px 1px 0 #000;
}

.cskh-unread-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EF4444;
  border: 2px solid #000000;
  color: #FFFFFF;
  font-size: 0.92rem;
  display: none;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0 #000;
}

/* Bảng Chat CSKH mở ngay bên trong cửa sổ game Flappy Bird (.mg-arena-modal) */
.cskh-chat-panel {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 54px;
  z-index: 75;
  height: 432px;
  max-height: calc(100% - 135px);
  border-radius: 20px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 45%, #090E1A 100%);
  border: 3px solid #FACC15;
  box-shadow: 0 8px 0 #000000, 0 22px 55px rgba(0, 0, 0, 0.9);
  display: none;
  flex-direction: column;
  overflow: hidden;
  color: #F8FAFC;
  animation: mgModalPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cskh-chat-panel.open {
  display: flex;
}

.cskh-chat-head {
  padding: 10px 12px;
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
  border-bottom: 2.5px solid #38BDF8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.cskh-chat-head-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cskh-chat-head-title {
  font-size: 1.24rem;
  letter-spacing: 0.6px;
  color: #FEF08A;
  line-height: 1.05;
  text-shadow:
    -1.6px -1.6px 0 #000000,
     1.6px -1.6px 0 #000000,
    -1.6px  1.6px 0 #000000,
     1.6px  1.6px 0 #000000;
}

.cskh-chat-head-sub {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: #A7F3D0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 1px 1px 0 #000000;
}

.cskh-chat-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2.5px solid #000000;
  background: #EF4444;
  box-shadow: 0 3px 0 #000000;
  color: #FFFFFF;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cskh-chat-close:hover {
  transform: scale(1.06);
}

/* Vùng hiển thị lịch sử tin nhắn (chiếm flex: 1 đẩy thanh nhập xuống đáy) */
.cskh-chat-messages,
.cskh-messages-box {
  flex: 1;
  padding: 12px 11px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(14, 116, 144, 0.22) 0%, rgba(9, 14, 26, 0.96) 75%);
}

.cskh-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.cskh-chat-messages::-webkit-scrollbar-thumb {
  background: #FACC15;
  border-radius: 99px;
}

.cskh-empty-placeholder {
  margin: auto 10px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 2px dashed rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
  color: #BAE6FD;
  font-size: 1.08rem;
  line-height: 1.32;
  letter-spacing: 0.4px;
}

.cskh-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.cskh-msg-row.is-admin {
  align-self: flex-start;
}

.cskh-msg-row.is-user {
  align-self: flex-end;
}

.cskh-msg-bubble {
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: 0.4px;
  word-break: break-word;
}

.cskh-msg-row.is-admin .cskh-msg-bubble {
  background: #1E293B;
  border: 2px solid #38BDF8;
  box-shadow: 0 3px 0 #000000;
  color: #F8FAFC;
  border-bottom-left-radius: 4px;
}

.cskh-msg-row.is-user .cskh-msg-bubble {
  background: linear-gradient(180deg, #F59E0B 0%, #EA580C 100%);
  border: 2px solid #FEF08A;
  box-shadow: 0 3px 0 #000000;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  text-shadow: 1px 1px 0 #000000;
}

.cskh-msg-time {
  margin-top: 3px;
  padding: 0 4px;
  font-size: 0.88rem;
  color: #94A3B8;
  letter-spacing: 0.3px;
}

.cskh-msg-row.is-user .cskh-msg-time {
  text-align: right;
}

.cskh-msg-bill-wrap {
  margin-bottom: 5px;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid #000000;
  background: #0F172A;
  max-width: 210px;
}

.cskh-msg-bill-img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #0F172A;
}

/* Thông báo bảo mật / giới hạn chống spam gửi ảnh Bill */
.cskh-chat-notice-toast {
  margin: 0 10px 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.96rem;
  letter-spacing: 0.35px;
  line-height: 1.2;
  border: 2px solid #000000;
  box-shadow: 0 2px 0 #000000;
  text-shadow: 1px 1px 0 #000000;
}

.cskh-chat-notice-toast.is-error {
  background: linear-gradient(180deg, #DC2626 0%, #991B1B 100%);
  border-color: #FCA5A5;
  color: #FEF2F2;
}

.cskh-chat-notice-toast.is-ok {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  border-color: #86EFAC;
  color: #F0FDF4;
}

/* Thanh xem trước ảnh Bill chuyển khoản trước khi bấm GỬI */
.cskh-bill-preview-bar {
  margin: 0 10px 6px;
  padding: 6px 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 2px solid #FACC15;
  box-shadow: 0 3px 0 #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.cskh-bill-preview-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cskh-bill-preview-thumb {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  border: 2px solid #FEF08A;
  object-fit: cover;
  background: #090D16;
  flex-shrink: 0;
}

.cskh-bill-preview-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.cskh-bill-preview-title {
  font-size: 0.98rem;
  color: #FEF08A;
  letter-spacing: 0.35px;
  text-shadow: 1px 1px 0 #000000;
}

.cskh-bill-preview-sub {
  font-size: 0.86rem;
  color: #7DD3FC;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 0 #000000;
}

.cskh-bill-preview-remove {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2px solid #000000;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Thanh nhập tin nhắn cố định ở dưới đáy khung chat */
.cskh-chat-input-bar {
  padding: 9px 10px;
  background: #0F172A;
  border-top: 2.5px solid #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cskh-chat-attach-btn {
  height: 40px;
  padding: 0 10px;
  border-radius: 11px;
  border: 2.5px solid #000000;
  background: linear-gradient(180deg, #FACC15 0%, #F59E0B 55%, #D97706 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.35), 0 3px 0 #000000;
  color: #FFFFFF;
  font-size: 1.04rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-shadow:
    -1.3px -1.3px 0 #000000,
     1.3px -1.3px 0 #000000,
    -1.3px  1.3px 0 #000000,
     1.3px  1.3px 0 #000000;
}

.cskh-chat-attach-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cskh-chat-attach-btn:active {
  transform: translateY(1px);
}

.cskh-chat-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border-radius: 11px;
  border: 2.5px solid #38BDF8;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 1.1rem;
  letter-spacing: 0.35px;
  outline: none;
}

.cskh-chat-input::placeholder {
  color: #64748B;
}

.cskh-chat-input:focus {
  border-color: #FACC15;
}

.cskh-chat-send,
.cskh-chat-send-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 2.5px solid #000000;
  background: linear-gradient(180deg, #4ADE80 0%, #22C55E 55%, #16A34A 100%);
  box-shadow: 0 3px 0 #000000;
  color: #FFFFFF;
  font-size: 1.18rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  flex-shrink: 0;
  text-shadow:
    -1.4px -1.4px 0 #000000,
     1.4px -1.4px 0 #000000,
    -1.4px  1.4px 0 #000000,
     1.4px  1.4px 0 #000000;
}

.cskh-chat-send:hover,
.cskh-chat-send-btn:hover {
  filter: brightness(1.06);
}

/* Ẩn hoàn toàn nút & khung Chat CSKH khi người chơi bắt đầu bay trong game */
.cskh-floating-btn.cskh-hidden-playing,
.cskh-chat-panel.cskh-hidden-playing {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================================
   HIỆU ỨNG CON CHIM KÉO DẢI BĂNG UID + TÊN GAME THẬT TRÚNG GIẢI (BAY TRÁI -> PHẢI)
   Hiển thị ở màn hình bên ngoài trước khi bay, tự động ẩn ngay khi bắt đầu bay
   ============================================================================ */
.fb-sky-winner-tug,
.fb-sky-winner-tug * {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  box-sizing: border-box;
}

.fb-sky-winner-tug {
  position: absolute;
  left: 0;
  right: 0;
  top: 118px;
  height: 54px;
  overflow: hidden;
  z-index: 36;
  pointer-events: none;
}

.fb-sky-winner-tug.tug-hidden-playing {
  display: none !important;
  opacity: 0 !important;
}

.fb-sky-winner-carrier {
  position: absolute;
  left: 0;
  top: 4px;
  display: inline-flex;
  align-items: center;
  will-change: transform;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.78));
}

/* 1. Đuôi cờ hiệu cắt chữ V (Swallowtail Ribbon Tail) ở phía sau bên trái */
.fb-tug-ribbon-tail {
  width: 14px;
  height: 36px;
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  border-top: 2.5px solid #000000;
  border-bottom: 2.5px solid #000000;
  border-left: 2.5px solid #000000;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 55% 50%);
  margin-right: -2px;
  flex-shrink: 0;
}

/* 2. Bảng Dải Băng Trúng Giải (Tên thật + UID thật + Giải thưởng KC) được chim kéo theo */
.fb-tug-banner-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 8px;
  border-radius: 7px 11px 11px 7px;
  background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
  border: 2.5px solid #FACC15;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.32), 0 0 0 2px #000000;
  white-space: nowrap;
}

.fb-tug-ff-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FDE047 0%, #F97316 100%);
  border: 2px solid #000000;
  box-shadow: 0 2px 0 #000000;
  padding: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.fb-tug-ff-badge img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.fb-tug-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.04;
}

.fb-tug-line-top {
  font-size: 0.96rem;
  letter-spacing: 0.35px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow:
    -1.2px -1.2px 0 #000000,
     1.2px -1.2px 0 #000000,
    -1.2px  1.2px 0 #000000,
     1.2px  1.2px 0 #000000;
}

.fb-tug-p-name {
  color: #FEF08A;
}

.fb-tug-p-uid {
  color: #7DD3FC;
  font-size: 0.9rem;
}

.fb-tug-line-bot {
  font-size: 0.92rem;
  letter-spacing: 0.35px;
  color: #4ADE80;
  text-shadow:
    -1.2px -1.2px 0 #000000,
     1.2px -1.2px 0 #000000,
    -1.2px  1.2px 0 #000000,
     1.2px  1.2px 0 #000000;
}

.fb-tug-line-bot strong {
  color: #FDE047;
  font-weight: 400;
}

/* 3. Hai sợi dây thừng vàng nối từ dải băng sang chú chim đi đầu */
.fb-tug-ropes {
  width: 18px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  margin-left: 1px;
  margin-right: -3px;
}

.fb-tug-rope-top,
.fb-tug-rope-bot {
  position: absolute;
  left: 0;
  width: 19px;
  height: 3.5px;
  background: repeating-linear-gradient(
    90deg,
    #FACC15 0px,
    #FACC15 4px,
    #78350F 4px,
    #78350F 6px
  );
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.fb-tug-rope-top {
  top: 4px;
  transform: rotate(10deg);
}

.fb-tug-rope-bot {
  bottom: 4px;
  transform: rotate(-10deg);
}

/* 4. Con Chim Flappy Bird Đi Đầu Phía Trước (Bên phải - Kéo dải băng bay từ trái qua phải) */
.fb-tug-lead-bird {
  position: relative;
  width: 48px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-tug-bird-canvas {
  width: 48px;
  height: 34px;
  display: block;
  image-rendering: pixelated;
}

/* 5. Đồng bộ Font Pixel Việt Hóa cho Bảng Đạo Diễn Quay Video (Creator Studio) */
.mg-creator-modal-card,
.mg-creator-modal-card *,
.mg-creator-floating-pill,
.mg-creator-floating-pill * {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace, sans-serif !important;
  letter-spacing: 0.3px;
}

.mg-creator-modal-card .mg-withdraw-title {
  font-size: 1.45rem !important;
  color: #FEF08A !important;
  text-shadow: 2px 2px 0 #000000 !important;
}

.mg-creator-modal-card .mg-creator-sec-head {
  font-size: 1rem !important;
}

.mg-creator-modal-card .mg-creator-input,
.mg-creator-modal-card select.mg-creator-input {
  font-size: 1.05rem !important;
  background: #0F172A !important;
  color: #FEF08A !important;
  border: 2px solid #38BDF8 !important;
}

.mg-creator-modal-card .mg-cr-chip {
  font-size: 0.92rem !important;
}

/* ============================================================================
   TRẠNG THÁI KHÓA GÓI 20K (1 LƯỢT BAY / 1 LẦN DUY NHẤT MỖI UID)
   ============================================================================ */
.fb-buy-20k-lock-banner {
  margin: 0 0 6px;
  padding: 5px 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #B45309 0%, #78350F 100%);
  border: 2.5px solid #000000;
  box-shadow: 0 3px 0 #000000, inset 0 1.5px 0 rgba(255, 255, 255, 0.28);
  color: #FEF9C3;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: 0.25px;
  text-align: center;
  text-shadow: 1.3px 1.3px 0 #000000;
}

.fb-buy-20k-lock-banner.shake-warn {
  animation: fbLockBannerShake 0.36s ease;
}

@keyframes fbLockBannerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.fb-tier-3d-item.is-locked-20k {
  background: linear-gradient(180deg, #64748B 0%, #475569 55%, #334155 100%) !important;
  border-color: #0F172A !important;
  opacity: 0.9;
  filter: grayscale(0.18);
}

.fb-tier-3d-item.is-locked-20k .fb-tier-title-3d {
  color: #E2E8F0 !important;
}

.fb-tier-3d-item.is-locked-20k .fb-tier-reward-3d {
  color: #FDE047 !important;
}

.fb-tier-3d-item.is-locked-20k .fb-tier-cta-pill {
  background: linear-gradient(180deg, #F59E0B 0%, #B45309 100%) !important;
  color: #FEF9C3 !important;
}

.fb-tier-3d-item.fb-tier-pulse-recommend {
  outline: 3px solid #FDE047;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.95), 0 4px 0 #000000 !important;
  transform: scale(1.02);
}



