/* ================= HỆ THỐNG GIAO DIỆN & ANIMATION 8 MINIGAME SỰ KIỆN 500.000đ ================= */
/* Tuân thủ nghiêm ngặt CSP style-src 'self': Toàn bộ trạng thái, vị trí, hoạt ảnh đều dùng CSS Classes */

@keyframes skPopIn {
  0% {
    opacity: 0;
    transform: scale(0.84) translateY(14px);
  }
  65% {
    opacity: 1;
    transform: scale(1.03) translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes skPulseGold {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 6px rgba(250, 204, 21, 0), 0 6px 16px rgba(234, 179, 8, 0.55);
  }
}

@keyframes skPulseDanger {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

@keyframes skFloatBob {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
}

@keyframes skShakeQuick {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px) rotate(-2deg); }
  40% { transform: translateX(5px) rotate(2deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}

@keyframes skFlyUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.75);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.06);
  }
  84% {
    opacity: 1;
    transform: translate(-50%, -18px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -32px) scale(0.94);
  }
}

@keyframes skEqualizerBounce {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

@keyframes skSpinCage {
  0% { transform: translateY(-2px) scale(0.97); }
  50% { transform: translateY(2px) scale(1.05); }
  100% { transform: translateY(-2px) scale(0.97); }
}

@keyframes skBlinkerGlow {
  0%, 100% { opacity: 1; transform: scale(1.1); }
  50% { opacity: 0.25; transform: scale(0.9); }
}

/* ================= 1. OVERLAY TRÊN SÂN KHẤU 2D (.san-khau-quay) ================= */
.sk-stage-host {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  overflow: hidden;
}

.sk-stage-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px 6px;
}

.sk-stage-overlay button,
.sk-stage-overlay .sk-clickable {
  pointer-events: auto;
  cursor: pointer;
}

.sk-stage-banner-top {
  align-self: center;
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  color: #fef08a;
  border: 2px solid #facc15;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  animation: skPopIn 0.28s ease-out;
  max-width: 96%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sk-stage-scene-center {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sk-stage-actor,
.sk-stage-prop {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  box-shadow: none;
  animation: skFloatBob 1.8s ease-in-out infinite;
}

.sk-stage-speech {
  position: relative;
  background: #fffbeb;
  color: #451a03;
  border: 2px solid #b45309;
  border-radius: 9px;
  padding: 4px 32px 4px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.22;
  max-width: 96%;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.sk-co-nut-dong-chat {
  position: relative;
  padding-right: 32px !important;
  pointer-events: auto;
}

.sk-chat-dang-an {
  display: none !important;
  pointer-events: none !important;
}

.nut-dong-chat-su-kien {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  font-size: 13.5px;
  margin-left: 0;
}

.sk-npc-co-the-mo-chat {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Vị trí động trên sân khấu cho Con Nợ / Tay Trộm / Chuột / Ô Tô */
.sk-pos-0 { translate: -75px 4px; transition: translate 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sk-pos-1 { translate: -22px -8px; transition: translate 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sk-pos-2 { translate: 32px 4px; transition: translate 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sk-pos-3 { translate: 75px -6px; transition: translate 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
.sk-pos-4 { translate: 0px -14px; transition: translate 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Dịch chuyển Ô Tô chắn cửa theo 4 bước (0 -> 3) */
.sk-car-step-0 { translate: -18px 0; scale: 1.04; transition: translate 0.38s cubic-bezier(0.22, 1, 0.36, 1), scale 0.38s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.sk-car-step-1 { translate: 18px 0; rotate: -2deg; transition: translate 0.38s cubic-bezier(0.22, 1, 0.36, 1), scale 0.38s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.sk-car-step-2 { translate: 58px 0; rotate: 1deg; transition: translate 0.38s cubic-bezier(0.22, 1, 0.36, 1), scale 0.38s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.sk-car-step-3 { translate: 108px 0; scale: 0.92; transition: translate 0.38s cubic-bezier(0.22, 1, 0.36, 1), scale 0.38s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.38s cubic-bezier(0.22, 1, 0.36, 1); }

/* ================= 2. KHUNG BẢNG ĐIỀU KHIỂN SỰ KIỆN CHÍNH (.hop-su-kien-khan) ================= */
.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2 {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  top: auto;
  z-index: 24;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 48%, #fde68a 100%);
  border: 3px solid #dc2626;
  border-radius: 14px;
  padding: 6px 8px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.68),
    0 0 0 1.5px #facc15 inset;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  gap: 5px;
  animation: skPopIn 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: calc(100% - 10px);
  overflow: hidden !important;
}

.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2 #khung-minigame-dong.sk-board-container {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto !important;
  min-height: 0;
  gap: 5px !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
}

.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.la-bat-loi {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 55%, #fecdd3 100%);
  border-color: #be123c;
}

.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.giai-doan-outro-thang {
  background: linear-gradient(180deg, #fefce8 0%, #fef08a 50%, #fde047 100%);
  border-color: #ca8a04;
}

/* Header Sự Kiện Khẩn Cấp: Sọc Cảnh Báo Đỏ-Vàng Kịch Tính + Giải Thưởng 500k + Đồng Hồ */
.sk-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #7f1d1d 0px,
    #7f1d1d 10px,
    #991b1b 10px,
    #991b1b 20px
  );
  color: #fef08a;
  padding: 5px 8px;
  border-radius: 9px;
  border: 2px solid #facc15;
  box-shadow: 0 2px 6px rgba(127, 29, 29, 0.45);
}

.la-bat-loi .sk-header-bar {
  background: repeating-linear-gradient(
    -45deg,
    #4c0519 0px,
    #4c0519 10px,
    #881337 10px,
    #881337 20px
  );
  border-color: #fb7185;
}

.sk-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}

.sk-header-emoji {
  font-size: 1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.sk-header-title {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  font-weight: 900;
  color: #fef08a;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sk-header-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sk-badge-reward-500k {
  background: linear-gradient(180deg, #fef08a 0%, #eab308 100%);
  color: #451a03;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1.5px solid #451a03;
  box-shadow: 0 1px 0 #451a03;
  white-space: nowrap;
}

.sk-badge-timer {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1.5px solid #fef08a;
  white-space: nowrap;
  animation: skPulseDanger 0.85s ease-in-out infinite;
}

.sk-badge-timer.sap-het-gio {
  animation: skPulseDanger 0.42s ease-in-out infinite;
}

/* Thanh Progress Đếm Ngược Gấp Gáp chuẩn không cần inline style */
.sk-progress-bar,
.sk-timer-progress {
  width: 100%;
  height: 10px;
  margin: 0 !important;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #7f1d1d;
  background: #450a0a;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.sk-progress-bar::-webkit-progress-bar,
.sk-timer-progress::-webkit-progress-bar {
  background: #fef3c7;
  border-radius: 999px;
}

.sk-progress-bar::-webkit-progress-value {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.sk-timer-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 999px;
  transition: width 0.35s linear;
}

/* ================= 3. MÀN HÌNH INTRO & OUTRO SỰ KIỆN ================= */
.sk-intro-card,
.sk-outro-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 2px;
  text-align: center;
  overflow: hidden;
}

.sk-intro-alert-tag {
  align-self: center;
  background: #dc2626;
  color: #fef08a;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid #7f1d1d;
  letter-spacing: 0.02em;
}

.sk-intro-hero-row,
.sk-outro-hero-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid #d97706;
  border-radius: 9px;
  padding: 4px 6px;
  text-align: left;
}

.sk-intro-avatar,
.sk-outro-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  border: 1.5px solid #b45309;
  border-radius: 8px;
  padding: 2px;
}

.sk-intro-texts,
.sk-outro-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sk-intro-desc,
.sk-outro-punchline {
  font-size: 0.66rem;
  font-weight: 700;
  color: #451a03;
  line-height: 1.22;
  margin: 0;
}

.sk-intro-quote,
.sk-outro-quote {
  font-size: 0.64rem;
  font-weight: 800;
  color: #9a3412;
  background: #ffedd5;
  border-left: 3px solid #ea580c;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.2;
  margin: 0;
}

.sk-outro-reward-banner {
  background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #15803d 100%);
  color: #fef08a;
  border: 2px solid #14532d;
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.sk-outro-sub-reward {
  font-size: 0.61rem;
  color: #dcfce7;
  font-weight: 800;
}

.sk-btn-primary-action {
  width: 100%;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fef08a;
  border: 2px solid #450a0a;
  border-radius: 9px;
  padding: 6px 8px;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #450a0a;
  animation: skPulseGold 1.4s ease-in-out infinite;
}

.sk-btn-primary-action.nut-nhan-thuong-500k {
  background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%);
  color: #451a03;
  border-color: #713f12;
  box-shadow: 0 2px 0 #713f12;
}

.sk-btn-primary-action:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #450a0a;
}

/* ================= 4. COMPONENT DÙNG CHUNG TRONG 8 MINIGAME ================= */
.sk-board-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sk-status-strip,
.sk-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #451a03;
}

.sk-live-comment,
.sk-hint-footer {
  background: #451a03;
  color: #fde68a;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.sk-helper-btn {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
  border: 1.5px solid #0c4a6e;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.sk-helper-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Grid 8 ô Hộp Bánh Đanisa (4 cột x 2 hàng) */
.sk-grid-8-danisa,
.sk-danisa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

/* Grid 4 ô DJ Loa Kẹo Kéo hoặc 4 nút chọn */
.sk-grid-4-dj,
.sk-dj-grid,
.sk-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

/* Grid 3 ô (3 Vé số, 3 Lồng cầu, 3 Chỗ nấp, 3 Thùng mì, 3 Xi-nhan) */
.sk-grid-3-tickets,
.sk-cage-row,
.sk-grid-3,
.sk-3-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* Grid 5 dây Bim Bim */
.sk-grid-5-bimbim,
.sk-5-col-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

/* Thẻ Ô Bấm Tương Tác Chung trong Minigame */
.sk-cell-danisa,
.sk-ticket-card,
.sk-dj-btn,
.sk-spot-btn,
.sk-crate-btn,
.sk-bimbim-rope-btn,
.sk-steer-btn,
.sk-action-card-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
  border: 2px solid #b45309;
  border-radius: 9px;
  padding: 5px 4px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 800;
  color: #451a03;
  cursor: pointer;
  box-shadow: 0 2px 0 #78350f;
  transition: transform 0.12s ease, background 0.15s ease;
  min-height: 54px;
  text-align: center;
}

.sk-cell-danisa:active,
.sk-ticket-card:active,
.sk-dj-btn:active,
.sk-spot-btn:active,
.sk-crate-btn:active,
.sk-bimbim-rope-btn:active,
.sk-steer-btn:active,
.sk-action-card-btn:active {
  transform: translateY(2px) scale(0.97);
}

/* Trạng thái nổi bật / mục tiêu cần bấm */
.sk-cell-danisa.da-lo-tien,
.sk-spot-btn.co-muc-tieu,
.sk-crate-btn.co-chuot,
.sk-bimbim-rope-btn.co-tay-trom,
.sk-steer-btn.lenh-hien-tai,
.sk-dj-btn.mon-dang-goi,
.sk-target-active {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  border-color: #dc2626;
  animation: skPulseGold 0.9s ease-in-out infinite;
}

/* Trạng thái đã hoàn thành / đã nhặt */
.sk-cell-danisa.da-nhat,
.sk-cage-ball.da-khop,
.sk-steer-btn.da-xong,
.sk-completed {
  background: linear-gradient(180deg, #dcfce7 0%, #86efac 100%);
  border-color: #15803d;
  color: #14532d;
}

/* Trạng thái bẫy / cảnh báo */
.sk-cell-danisa.canh-bao-kim,
.sk-danger-cell {
  background: linear-gradient(180deg, #fee2e2 0%, #fca5a5 100%);
  border-color: #b91c1c;
  color: #7f1d1d;
}

/* Lồng cầu xổ số */
.sk-cage-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #f59e0b 70%, #b45309 100%);
  border: 2.5px solid #78350f;
  border-radius: 12px;
  padding: 6px 4px;
  color: #451a03;
  font-weight: 900;
}

.sk-cage-ball.dang-quay .sk-cage-digit {
  animation: skSpinCage 0.25s linear infinite;
}

.sk-cage-digit {
  font-family: var(--font-pixel);
  font-size: 1.15rem;
  font-weight: 900;
  color: #7f1d1d;
  background: #fffbeb;
  border: 1.5px solid #92400e;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sóng nhạc Loa Kẹo Kéo */
.sk-equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.sk-eq-bar {
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #ef4444 0%, #facc15 50%, #22c55e 100%);
  border-radius: 2px;
  transform-origin: bottom;
  animation: skEqualizerBounce 0.42s ease-in-out infinite;
}

.sk-eq-bar:nth-child(2) { animation-delay: 0.1s; }
.sk-eq-bar:nth-child(3) { animation-delay: 0.22s; }
.sk-eq-bar:nth-child(4) { animation-delay: 0.06s; }
.sk-eq-bar:nth-child(5) { animation-delay: 0.16s; }

/* Dải nhịp Beat Loa Kẹo Kéo */
.sk-beat-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.sk-beat-node {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid #b45309;
  border-radius: 7px;
  padding: 3px 4px;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

.sk-beat-node.dang-choi {
  background: #fef08a;
  border-color: #dc2626;
  color: #991b1b;
  animation: skPulseGold 0.7s ease-in-out infinite;
}

.sk-beat-node.da-chot {
  background: #bbf7d0;
  border-color: #16a34a;
  color: #14532d;
}

/* Chữ bay phản hồi tức thì khi thao tác trong Minigame */
.sk-floating-feedback-layer {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  pointer-events: none;
  width: 90%;
  height: 0;
}

.sk-floating-pop {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-pixel);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  animation: skFlyUpFade 2.2s ease-out forwards;
}

.sk-floating-pop.kieu-vang {
  background: #facc15;
  color: #451a03;
  border: 2px solid #78350f;
}

.sk-floating-pop.kieu-xanh {
  background: #22c55e;
  color: #fff;
  border: 2px solid #14532d;
}

.sk-floating-pop.kieu-do {
  background: #ef4444;
  color: #fff;
  border: 2px solid #7f1d1d;
}

.sk-floating-pop.kieu-tim {
  background: #a855f7;
  color: #fff;
  border: 2px solid #581c87;
}


/* ================= 5. CHI TIẾT GIAO DIỆN & HIỆU ỨNG TỪNG MINIGAME ================= */

/* --- 5.1. Stage Speech Bubble & Actors dùng chung cho các Minigame --- */
.sk-stage-speech-bubble {
  background: rgba(255, 251, 235, 0.95);
  border: 2px solid #b45309;
  border-radius: 10px;
  padding: 4px 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  max-width: 96%;
  margin: 0 auto;
  animation: skPopIn 0.25s ease-out;
}

.sk-stage-npc-line {
  font-size: 0.68rem;
  font-weight: 900;
  color: #9a3412;
  line-height: 1.2;
}

.sk-stage-action-line,
.sk-stage-speech-text {
  font-size: 0.66rem;
  font-weight: 800;
  color: #451a03;
  line-height: 1.25;
}

.sk-stage-actors,
.sk-stage-main-actor-row,
.sk-stage-concert-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.sk-actor-card,
.sk-stage-npc-wrap,
.sk-stage-prop-card {
  background: rgba(255, 251, 235, 0.9);
  border: 2px solid #d97706;
  border-radius: 10px;
  padding: 4px 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.sk-actor-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sk-actor-prop-500k {
  position: absolute;
  right: -8px;
  bottom: -4px;
  animation: skPulseGold 1s ease-in-out infinite;
}

.sk-actor-tag,
.sk-stage-npc-badge {
  font-size: 0.6rem;
  font-weight: 900;
  background: #451a03;
  color: #fef08a;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- 5.2. Minigame 1: Hộp Bánh Đanisa & Tờ 500k --- */
.sk-stage-danisa.dang-lac-hop,
.sk-actor-hop-danisa.hieu-ung-lac-manh {
  animation: skShakeQuick 0.42s ease-in-out;
}

.sk-stage-danisa.bi-kim-dam {
  animation: skShakeQuick 0.35s ease-in-out;
}

.sk-danisa-tin-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sk-danisa-sparkle {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #facc15;
  color: #451a03;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid #78350f;
}

.sk-danisa-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.sk-badge-item {
  background: rgba(69, 26, 3, 0.85);
  color: #fde68a;
  border: 1px solid #d97706;
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.58rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sk-badge-item.da-gom {
  background: #15803d;
  color: #fef08a;
  border-color: #86efac;
}

.sk-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 4px 8px;
}

.sk-status-progress-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sk-status-label {
  font-size: 0.66rem;
  font-weight: 900;
  color: #451a03;
}

.sk-btn-helper {
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%);
  color: #fff;
  border: 1.5px solid #082f49;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.62rem;
  font-weight: 900;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #082f49;
}

.sk-btn-helper.san-sang {
  animation: skPulseGold 1.2s ease-in-out infinite;
}

.sk-btn-helper.da-dung,
.sk-btn-helper:disabled {
  background: #9ca3af;
  border-color: #4b5563;
  box-shadow: none;
  opacity: 0.7;
  cursor: default;
  animation: none;
}

.sk-cell-danisa.trang-thai-lo-tien {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  border-color: #dc2626;
  animation: skPulseGold 0.85s ease-in-out infinite;
}

.sk-cell-danisa.trang-thai-da-nhat {
  background: linear-gradient(180deg, #dcfce7 0%, #86efac 100%);
  border-color: #16a34a;
  color: #14532d;
}

.sk-cell-danisa.trang-thai-kim-nhon.da-lo-kim,
.sk-cell-danisa.trang-thai-kim-nhon.da-kich-hoat {
  background: linear-gradient(180deg, #fee2e2 0%, #fca5a5 100%);
  border-color: #dc2626;
  color: #7f1d1d;
}

.sk-cell-danisa.trang-thai-do-vat.da-boi-xong {
  opacity: 0.62;
  background: #f3f4f6;
}

.sk-cell-sub-badge {
  font-size: 0.52rem;
  font-weight: 900;
  background: rgba(69, 26, 3, 0.12);
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.1;
}

.sk-cell-big-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.sk-cell-sprite-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sk-cell-coin-badge {
  position: absolute;
  right: -6px;
  bottom: -4px;
  font-size: 0.75rem;
}

.sk-cell-title {
  font-size: 0.6rem;
  font-weight: 900;
  line-height: 1.1;
}

.sk-cell-hint {
  font-size: 0.54rem;
  color: #92400e;
  font-weight: 800;
}

/* --- 5.3. Minigame 2: Giải Cứu Vé Số 16h10 & Quay Lồng Cầu --- */
.sk-stage-lottery-board {
  background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  border: 2px solid #facc15;
  border-radius: 10px;
  padding: 5px 8px;
  color: #fef08a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.sk-stage-ticket-label {
  font-size: 0.62rem;
  font-weight: 900;
}

.sk-stage-mini-cages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sk-stage-mini-ball {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #f59e0b 80%);
  border: 2px solid #fff;
  color: #451a03;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sk-stage-mini-ball.da-khop {
  background: radial-gradient(circle at 30% 30%, #bbf7d0 0%, #22c55e 85%);
  color: #14532d;
}

.sk-stage-mini-ball.dang-quay .sk-stage-mini-digit {
  animation: skSpinCage 0.25s linear infinite;
}

.sk-ticket-card {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  border: 2px solid #be123c;
  padding: 5px;
  gap: 3px;
}

.sk-ticket-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sk-ticket-station {
  font-size: 0.54rem;
  font-weight: 800;
  color: #9f1239;
}

.sk-ticket-price-badge {
  font-size: 0.5rem;
  font-weight: 900;
  background: #be123c;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
}

.sk-ticket-digits {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  font-weight: 900;
  color: #b91c1c;
  background: #fff;
  border: 1.5px dashed #e11d48;
  border-radius: 6px;
  padding: 1px 8px;
  letter-spacing: 0.06em;
}

.sk-ticket-fengshui {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sk-ticket-fengshui-name {
  font-size: 0.6rem;
  color: #881337;
}

.sk-ticket-fengshui-wish {
  font-size: 0.52rem;
  color: #9f1239;
  line-height: 1.15;
}

.sk-ticket-cta {
  background: #facc15;
  color: #451a03;
  font-size: 0.56rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid #854d0e;
  width: 100%;
}

.sk-selected-ticket-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.64rem;
  font-weight: 900;
}

.sk-cage-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid #d97706;
  border-radius: 9px;
  padding: 4px;
}

.sk-cage-header-label {
  font-size: 0.56rem;
  font-weight: 900;
  color: #78350f;
}

.sk-cage-ball-status {
  font-size: 0.54rem;
  margin-top: 2px;
}

.sk-btn-lock-cage {
  width: 100%;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #fef08a;
  border: 1.5px solid #450a0a;
  border-radius: 6px;
  padding: 4px 3px;
  font-size: 0.56rem;
  font-weight: 900;
  cursor: pointer;
}

.sk-btn-lock-cage.btn-da-chot {
  background: #16a34a;
  color: #fff;
  border-color: #14532d;
  cursor: default;
}

.sk-btn-fast-diamond {
  width: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #eab308 50%, #f59e0b 100%);
  color: #451a03;
  border: 2px solid #78350f;
  border-radius: 8px;
  padding: 6px 8px;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #78350f;
  animation: skPulseGold 1.1s ease-in-out infinite;
}

/* --- 5.4. Minigame 3: Chú Giang Suy Tình & Ly Trà Đá Cứu Nét --- */
.sk-cloud-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sk-cloud-chip {
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  border: 1.5px solid #64748b;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sk-cloud-chip.is-cleared {
  background: linear-gradient(90deg, #fef08a 0%, #fde047 100%);
  color: #713f12;
  border-color: #ca8a04;
}

.sk-tea-cup-card {
  min-width: 145px;
}

.sk-tea-cup-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 900;
  color: #451a03;
}

.sk-tea-cup-layers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.sk-cup-layer {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fef3c7;
  color: #78350f;
  text-align: center;
}

.sk-cup-layer.is-ice { background: #e0f2fe; color: #0369a1; }
.sk-cup-layer.is-tea { background: #dcfce7; color: #15803d; }
.sk-cup-layer.is-lime { background: #fef9c3; color: #854d0e; }
.sk-cup-layer.is-candy { background: #fce7f3; color: #9d174d; }

.sk-controls-troi-mua,
.sk-controls-loa-keo,
.sk-control-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sk-mood-meter-box,
.sk-loa-header-panel,
.sk-status-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid #d97706;
  border-radius: 9px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sk-mood-meter-top,
.sk-loa-header-top,
.sk-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 900;
  color: #451a03;
}

.sk-step-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.sk-step-pill {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #d97706;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
}

.sk-step-pill.is-active {
  background: #facc15;
  color: #451a03;
  border-color: #b91c1c;
}

.sk-step-pill.is-done {
  background: #bbf7d0;
  color: #14532d;
  border-color: #16a34a;
}

.sk-control-hint-banner {
  background: #451a03;
  color: #fef08a;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

.sk-step-panel.sk-step-1-ice {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sk-ice-block-showcase {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1.5px solid #0284c7;
  border-radius: 8px;
  padding: 5px 8px;
}

.sk-ice-big-icon {
  font-size: 1.4rem;
}

.sk-ice-block-info {
  display: flex;
  flex-direction: column;
  font-size: 0.64rem;
  color: #0c4a6e;
}

.sk-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  color: #451a03;
  border: 2px solid #78350f;
  border-radius: 9px;
  padding: 7px 10px;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #78350f;
}

.sk-action-btn.is-pulse-cta {
  animation: skPulseGold 1s ease-in-out infinite;
}

.sk-action-btn.is-completed {
  background: #bbf7d0;
  color: #14532d;
  border-color: #15803d;
  box-shadow: none;
  animation: none;
}

.sk-step-2-tea-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.sk-step-3-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.sk-choice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border: 2px solid #b45309;
  border-radius: 9px;
  padding: 5px 4px;
  cursor: pointer;
  text-align: center;
}

.sk-choice-card.is-healing-choice {
  background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
  border-color: #16a34a;
  animation: skPulseGold 1s ease-in-out infinite;
}

.sk-choice-icon {
  font-size: 1.2rem;
}

.sk-choice-title {
  font-size: 0.6rem;
  font-weight: 900;
  color: #451a03;
  display: block;
}

.sk-choice-sub {
  font-size: 0.52rem;
  color: #78350f;
  display: block;
}

/* --- 5.5. Minigame 4: Đại Nhạc Hội Loa Kẹo Kéo --- */
.sk-music-notes-banner {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
}

.sk-note-item {
  animation: skFloatBob 1.1s ease-in-out infinite;
}

.sk-loa-keo-card {
  background: linear-gradient(180deg, #451a03 0%, #290f02 100%);
  color: #fef08a;
  border-color: #facc15;
  padding: 5px 8px;
}

.sk-loa-keo-speaker-cone {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 900;
}

.sk-loa-keo-target-pill {
  background: #facc15;
  color: #451a03;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sk-loa-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sk-loa-beat-badge {
  font-size: 0.58rem;
  color: #b45309;
  font-weight: 900;
}

.sk-loa-current-call {
  font-size: 0.68rem;
  color: #451a03;
}

.sk-loa-sub-hint {
  font-size: 0.6rem;
  font-weight: 800;
  color: #78350f;
}

.sk-loa-sub-hint-text.is-error-text {
  color: #dc2626;
}

.sk-beat-disc {
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid #b45309;
  border-radius: 7px;
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.56rem;
  font-weight: 800;
}

.sk-beat-disc.is-active {
  background: #fef08a;
  border-color: #dc2626;
  animation: skPulseGold 0.8s ease-in-out infinite;
}

.sk-beat-disc.is-done {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
}

.sk-dj-pad-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
  border: 2px solid #b45309;
  border-radius: 9px;
  padding: 5px 3px;
  cursor: pointer;
  box-shadow: 0 2px 0 #78350f;
}

.sk-dj-pad-btn.is-target-pad {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  border-color: #dc2626;
  animation: skPulseGold 0.85s ease-in-out infinite;
}

.sk-dj-pad-btn.is-delivered-pad {
  background: #dcfce7;
  border-color: #16a34a;
}

.sk-dj-pad-key {
  font-size: 0.48rem;
  font-weight: 900;
  color: #9a3412;
}

.sk-dj-pad-name {
  font-size: 0.58rem;
  font-weight: 900;
  color: #451a03;
}

/* --- 5.6. Minigame 7 & 8: Bắt Trộm Bim Bim & Mèo Mướp Vồ Chuột --- */
.sk-stage-top-hint {
  display: flex;
  justify-content: center;
}

.sk-stage-badge,
.sk-reward-pill {
  background: #451a03;
  color: #fef08a;
  border: 1.5px solid #facc15;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 900;
}

.sk-stage-bimbim-rack,
.sk-stage-crates-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sk-stage-bimbim-slot,
.sk-stage-crate-slot {
  position: relative;
  background: rgba(255, 251, 235, 0.85);
  border: 1.5px solid #b45309;
  border-radius: 8px;
  padding: 3px;
}

.sk-stage-bimbim-slot.is-target,
.sk-stage-crate-slot.is-target {
  background: #fef08a;
  border-color: #dc2626;
  animation: skPulseGold 0.75s ease-in-out infinite;
}

.sk-stage-slot-alert,
.sk-stage-duster-fx,
.sk-stage-claw-fx,
.sk-stage-dog-bubble,
.sk-stage-cat-bubble {
  background: #dc2626;
  color: #fef08a;
  font-size: 0.56rem;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
}

.sk-stage-actor-caption {
  font-size: 0.56rem;
  font-weight: 900;
  background: rgba(69, 26, 3, 0.9);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}

.sk-status-message {
  font-size: 0.64rem;
  font-weight: 800;
  color: #451a03;
  margin: 0;
  line-height: 1.25;
}

.sk-bimbim-grid.sk-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.sk-crates-grid.sk-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sk-card-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
  border: 2px solid #b45309;
  border-radius: 9px;
  padding: 4px 3px;
  cursor: pointer;
  box-shadow: 0 2px 0 #78350f;
}

.sk-card-btn.is-active-target,
.sk-card-btn.sk-target-pulse {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  border-color: #dc2626;
  animation: skPulseGold 0.8s ease-in-out infinite;
}

.sk-card-top-tag {
  font-size: 0.5rem;
  font-weight: 900;
  color: #9a3412;
}

.sk-card-sprite-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sk-thief-hand-badge,
.sk-mouse-peek-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  display: flex;
   flex-direction: column;
  align-items: center;
}

.sk-whack-label,
.sk-claw-label {
  background: #dc2626;
  color: #fef08a;
  font-size: 0.5rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
}

.sk-card-title {
  font-size: 0.56rem;
  font-weight: 900;
  color: #451a03;
  text-align: center;
  line-height: 1.1;
}

.sk-finisher-wrap,
.sk-wake-cat-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sk-sleeping-cat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  border: 1.5px solid #d97706;
  border-radius: 8px;
  padding: 5px 8px;
}

.sk-sleeping-cat-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sk-sleep-bubble {
  font-size: 0.56rem;
  font-weight: 900;
  background: #451a03;
  color: #fef08a;
  padding: 1px 5px;
  border-radius: 999px;
}

.sk-sleeping-cat-info {
  display: flex;
  flex-direction: column;
  font-size: 0.62rem;
  color: #451a03;
}

.sk-btn-finisher {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #facc15 0%, #eab308 100%);
  color: #451a03;
  border: 2px solid #78350f;
  border-radius: 10px;
  padding: 7px 10px;
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #78350f;
  animation: skPulseGold 0.9s ease-in-out infinite;
}

/* ================= 9. CHẾ ĐỘ ĐIỆN ẢNH ĐỒNG BỘ CHO MỌI SỰ KIỆN (.dang-co-su-kien-khan) ================= */
/* Khi kích hoạt bất kỳ sự kiện nào:
   - Toàn bộ các tab quầy hàng bên dưới (.vung-do-goi-hang.quay-hai-tab) cuộn trượt xuống ẩn đi.
   - Thanh HUD trên cùng (.vung-xanh-duong) và các icon ngoài HUD mờ đi.
   - Khách thường, khay hàng trên bàn, quạt bàn mờ đi để sân khấu 2D tập trung 100% vào sự kiện.
   - Bảng điều khiển Minigame (.hop-su-kien-khan) cuộn mượt lên chiếm phần nửa dưới màn hình, không che sân khấu 2D! */

@keyframes skRollDownHideTabs {
  0% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    max-height: 340px;
  }
  100% {
    opacity: 0;
    transform: translateY(100%) scaleY(0.15);
    max-height: 0;
  }
}

@keyframes skRollUpEventPanel {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan > .vung-do-goi-hang.quay-hai-tab {
  transform-origin: bottom center;
  animation: skRollDownHideTabs 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  min-height: 0 !important;
  max-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  flex: 0 0 0 !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan .vung-xanh-duong {
  opacity: 0.24 !important;
  filter: grayscale(0.55) brightness(0.68) !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan .nhan-zoom-khan {
  display: none !important;
}

/* Tắt hoàn toàn hiệu ứng phóng to lệch khung (.dang-zoom / .zoom-to-500k) để sân khấu sự kiện hiển thị 100% chuẩn tỉ lệ */
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay,
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay.dang-zoom {
  transform: none !important;
}

/* Ẩn hoàn toàn khách thường đứng quầy khi đang diễn ra sự kiện để không bị chồng bóng NPC sau lưng */
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay .khu-khach-hang,
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay .khach-xep-hang,
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay .khay-mon-tren-ban,
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay .khay-tien-mat-ban {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan .vung-xanh-duong .nut-icon-ngoai-hud,
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay .hotzone-ke-san-khau,
#app .man-hinh-quay-gon.dang-co-su-kien-khan .san-khau-quay .quat-ban-tren-quay-preview {
  opacity: 0.14 !important;
  filter: grayscale(0.65) brightness(0.65) !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

/* Khung Sự Kiện ôm sát nội dung ở đáy (flex: 0 0 auto -> 0px khoảng trống thừa), Sân Khấu 2D tự động lấp đầy 100% phần trên */
#app .man-hinh-quay-gon.dang-co-su-kien-khan {
  overflow: hidden !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan > .khung-nen-tap-hoa-xanh-vang {
  flex: 1 1 0 !important;
  min-height: 165px !important;
  max-height: none !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan > .khung-nen-tap-hoa-xanh-vang > .san-khau-quay {
  flex: 1 1 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

/* Khi đang ở màn Chơi hoặc Outro của Hộp Bánh Đanisa:
   Thu gọn chiều cao phần Sân Khấu 16:9 phía trên (bỏ toàn bộ viền trống trên/dưới),
   đẩy khung Hộp Bánh Đanisa cao lên trên để người chơi tập trung 100% vào hộp bánh & nút nhận tiền! */
#app .man-hinh-quay-gon.dang-co-su-kien-khan.dang-mo-hop-danisa-rieng > .khung-nen-tap-hoa-xanh-vang,
#app .man-hinh-quay-gon.dang-co-su-kien-khan:has(.che-do-giao-dien-rieng-danisa) > .khung-nen-tap-hoa-xanh-vang {
  flex: 0 0 auto !important;
  min-height: 175px !important;
  max-height: none !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan.dang-mo-hop-danisa-rieng > .khung-nen-tap-hoa-xanh-vang > .san-khau-quay,
#app .man-hinh-quay-gon.dang-co-su-kien-khan:has(.che-do-giao-dien-rieng-danisa) > .khung-nen-tap-hoa-xanh-vang > .san-khau-quay {
  container-type: inline-size !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 170px !important;
  aspect-ratio: 1376 / 780 !important;
  max-height: 30vh !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan > .hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2 {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 64% !important;
  margin: 4px 5px 5px !important;
  padding: 6px 8px !important;
  overflow: hidden !important;
  z-index: 32 !important;
  animation: skRollUpEventPanel 0.36s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

#app .man-hinh-quay-gon.dang-co-su-kien-khan > .hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.che-do-giao-dien-rieng-danisa {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 315px !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  margin: 2px 5px 5px !important;
  padding: 6px 7px !important;
}

/* ================= 10. TRUYỆN TRANH SỰ KIỆN: THẰNG TÍ CHẠY ZOOM 3 GIÂY + MEME 16:9 + CANVAS HỘP ĐANISA ================= */

/* Sân khấu cho phép nhấp bất kỳ đâu để skip hiệu ứng 3s hoặc qua khung thoại tiếp theo */
.sk-stage-clickable-skip {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.sk-scene-ti-floor-stage {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Hiệu ứng 3 giây Thằng Tí chạy từ cổng sắt ngoài hẻm tiến vào quầy, zoom scale từ 0.42 -> 0.98, đứng trên nền gạch xám trước bàn gỗ */
@keyframes skTiRunZoom3s {
  0% {
    opacity: 0.22;
    transform: translate(-50%, -28px) scale(0.42) rotate(-3deg);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -23px) scale(0.52) rotate(3deg);
  }
  34% {
    transform: translate(-50%, -17px) scale(0.63) rotate(-3deg);
  }
  52% {
    transform: translate(-50%, -12px) scale(0.74) rotate(3deg);
  }
  70% {
    transform: translate(-50%, -6px) scale(0.84) rotate(-2deg);
  }
  86% {
    transform: translate(-50%, -2px) scale(0.92) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0px) scale(0.98) rotate(0deg);
  }
}

.sk-scene-ti-floor-stage .sk-ti-runner-wrap {
  position: absolute;
  left: 49%;
  bottom: 19.8%;
  transform-origin: center bottom;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sk-scene-ti-floor-stage .sk-ti-runner-wrap.dang-chay-zoom-3s {
  animation: skTiRunZoom3s 3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.sk-scene-ti-floor-stage .sk-ti-runner-wrap.da-dung-truoc-quay {
  opacity: 1;
  transform: translate(-50%, 0px) scale(0.98);
}

.sk-ti-pixel-sprite-box,
.sk-ti-4frame-sprite-box {
  position: relative;
  width: 102px;
  height: 102px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.48));
}

.sk-ti-4frame-sprite-box .sk-ti-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
}

@keyframes skTiFrame1 {
  0%, 24.9% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes skTiFrame2 {
  0%, 24.9% { opacity: 0; }
  25%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes skTiFrame3 {
  0%, 49.9% { opacity: 0; }
  50%, 74.9% { opacity: 1; }
  75%, 100% { opacity: 0; }
}
@keyframes skTiFrame4 {
  0%, 74.9% { opacity: 0; }
  75%, 100% { opacity: 1; }
}

.dang-chay-zoom-3s .sk-ti-4frame-sprite-box .sk-ti-f1 {
  animation: skTiFrame1 0.42s steps(1) 7 forwards;
}
.dang-chay-zoom-3s .sk-ti-4frame-sprite-box .sk-ti-f2 {
  animation: skTiFrame2 0.42s steps(1) 7 forwards;
}
.dang-chay-zoom-3s .sk-ti-4frame-sprite-box .sk-ti-f3 {
  animation: skTiFrame3 0.42s steps(1) 7 forwards;
}
.dang-chay-zoom-3s .sk-ti-4frame-sprite-box .sk-ti-f4 {
  animation: skTiFrame4 0.42s steps(1) 7 forwards;
  opacity: 1;
}

.da-dung-truoc-quay .sk-ti-4frame-sprite-box .sk-ti-f1,
.da-dung-truoc-quay .sk-ti-4frame-sprite-box .sk-ti-f2,
.da-dung-truoc-quay .sk-ti-4frame-sprite-box .sk-ti-f3 {
  opacity: 0 !important;
  animation: none !important;
}
.da-dung-truoc-quay .sk-ti-4frame-sprite-box .sk-ti-f4 {
  opacity: 1 !important;
  animation: none !important;
}

/* ================= HỘP HỘI THOẠI CHUẨN GAME (.sk-dlg-box-rpg) ================= */
.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.che-do-truyen-tranh-intro {
  background: transparent !important;
  border: none !important;
  padding: 2px 4px !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.che-do-truyen-tranh-intro #khung-minigame-dong.sk-board-container {
  overflow: visible !important;
}

.sk-dlg-box-rpg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 2px;
  cursor: pointer;
  user-select: none;
}

.sk-dlg-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 50% 40%, #fef3c7 0%, #f59e0b 100%);
  border: 2.5px solid #2b1d14;
  border-radius: 14px;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1.5px #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sk-dlg-box-player .sk-dlg-avatar-wrap {
  background: radial-gradient(circle at 50% 40%, #ffe4e6 0%, #fb7185 100%);
}

.sk-dlg-avatar-nv-stack {
  position: relative;
  width: 56px;
  height: 56px;
}

.sk-dlg-avatar-nv-stack .nc-nv-layer,
.sk-dlg-avatar-nv-stack .sk-meme-nv-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.sk-dlg-speech-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fffdf7;
  border: 2.5px solid #2b1d14;
  border-radius: 14px;
  padding: 12px 28px 10px 12px;
  box-shadow:
    0 4px 0 #2b1d14,
    0 8px 18px rgba(0, 0, 0, 0.45);
}

/* Mũi tên đuôi bong bóng thoại trỏ sang avatar người nói */
.sk-dlg-speech-bubble::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 9px solid #2b1d14;
}

.sk-dlg-speech-bubble::after {
  content: '';
  position: absolute;
  left: -5.5px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5.5px solid transparent;
  border-bottom: 5.5px solid transparent;
  border-right: 7px solid #fffdf7;
}

/* Thẻ tên nhân vật gắn gọn trên mép bong bóng thoại */
.sk-dlg-speaker-tag {
  position: absolute;
  top: -11px;
  left: 12px;
  background: #b45309;
  color: #fef08a;
  border: 2px solid #2b1d14;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 2px 0 #2b1d14;
}

.sk-dlg-box-player .sk-dlg-speaker-tag {
  background: #be123c;
}

.sk-dlg-text {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #2b1d14;
  line-height: 1.34;
  text-align: left;
}

@keyframes skDlgArrowBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(3px); opacity: 0.55; }
}

.sk-dlg-next-indicator {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.62rem;
  font-weight: 900;
  color: #b45309;
  animation: skDlgArrowBob 0.85s ease-in-out infinite;
}

.sk-dlg-box-player .sk-dlg-next-indicator {
  background: #fef08a;
  color: #7f1d1d;
  border: 1.5px solid #2b1d14;
  border-radius: 6px;
  padding: 1px 5px;
}

/* Cảnh 2: Meme Chủ Quầy / Bà Hoàng Hốt Hoảng Nhìn Hộp Đanisa (Khung Tranh 16:9 Cố Định, Không Bao Giờ Tự Zoom) */
.sk-banner-meme-shock,
.sk-banner-urgent-siren {
  background: repeating-linear-gradient(
    -45deg,
    #7f1d1d 0px,
    #7f1d1d 8px,
    #b91c1c 8px,
    #b91c1c 16px
  ) !important;
  border-color: #fde047 !important;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.55) !important;
}

.sk-stage-full-meme {
  overflow: hidden;
}

/* Bao ngoài khung tranh 16:9 để khóa chặt tỉ lệ gốc 1376x768 trên mọi màn hình (không bao giờ kéo giãn nhân vật hay cắt mất Bà Hoàng) */
.sk-meme-comic-frame-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #1e120a;
  z-index: 0;
  pointer-events: none;
}

.sk-meme-dynamic-scene {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  border: 2.5px solid #3b2314;
  border-radius: 10px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.78),
    0 0 0 1.5px #facc15;
  overflow: hidden;
  background: #2b1d14;
  pointer-events: none;
  animation: none !important;
}

.sk-meme-bg-layer {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  object-fit: fill;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  z-index: 1;
}

.sk-meme-fg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  z-index: 3;
}

/* Hộp bánh Đanisa đặt nổi bật trên mặt bàn gỗ ở Bước 2 Intro */
.sk-danisa-counter-prop-step2 {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
  animation: skPopIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.sk-danisa-counter-prop-badge {
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  color: #fef08a;
  border: 2px solid #facc15;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.6rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
}

/* Trong khung 1376x768, tọa độ left 10.17% / top 19.79% / width 35.61% / height 63.80% là hình vuông 490x490 cân đối ngang tầm Bà Hoàng */
.sk-meme-nv-stack {
  position: absolute;
  left: 10.17%;
  top: 19.79%;
  bottom: auto;
  width: 35.61%;
  height: 63.8%;
  z-index: 2;
  pointer-events: none;
  animation: none !important;
}

.sk-meme-nv-stack .sk-meme-nv-layer,
.sk-meme-nv-stack .nc-nv-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center bottom !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.sk-stage-full-meme .sk-stage-banner-top,
.sk-stage-full-meme .sk-stage-speech {
  position: relative;
  z-index: 4;
}

/* Bảng Điều Khiển Canvas Kéo Thả Tự Do Trong Hộp Đanisa (Không khoảng trống thừa, nâng chiều cao lên trên) */
#app .man-hinh-quay-gon.dang-co-su-kien-khan > .hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.che-do-giao-dien-rieng-danisa #khung-minigame-dong.sk-board-container,
.hop-su-kien-khan.hud-su-kien-noi.sk-wrapper-v2.che-do-giao-dien-rieng-danisa #khung-minigame-dong.sk-board-container,
.hop-su-kien-khan.che-do-giao-dien-rieng-danisa #khung-minigame-dong.sk-board-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 4px !important;
}

.sk-board-danisa-free {
  flex: 1 1 auto !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
}

.sk-danisa-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: rgba(69, 26, 3, 0.14);
  border: 1px solid rgba(180, 83, 9, 0.4);
  border-radius: 8px;
  padding: 3px 5px;
}

.sk-danisa-stat-pill {
  background: linear-gradient(180deg, #7f1d1d 0%, #450a0a 100%);
  color: #fef08a;
  border: 1.5px solid #f59e0b;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.58rem;
  font-weight: 900;
  white-space: nowrap;
}

.sk-danisa-mini-chips-row {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.sk-danisa-mini-chip {
  background: rgba(69, 26, 3, 0.85);
  color: #fde68a;
  border: 1px solid #b45309;
  border-radius: 5px;
  padding: 2px 4px;
  font-size: 0.55rem;
  font-weight: 900;
  white-space: nowrap;
}

.sk-danisa-mini-chip.da-gom {
  background: #15803d;
  color: #fef08a;
  border-color: #86efac;
}

.sk-danisa-shake-button {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fef08a;
  border: 1.5px solid #fde047;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.6rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 2px 0 #1e3a8a;
  white-space: nowrap;
}

.sk-danisa-shake-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hiệu ứng chớp nhẹ vùng để chơi (viền vàng ấm nhấp nháy dịu mắt) */
@keyframes skPlayZonePulse {
  0%, 100% {
    border-color: #b45309;
    box-shadow:
      inset 0 2px 8px rgba(0, 0, 0, 0.65),
      0 0 0 0 rgba(250, 204, 21, 0);
  }
  50% {
    border-color: #fde047;
    box-shadow:
      inset 0 0 14px rgba(250, 204, 21, 0.28),
      0 0 12px 2px rgba(250, 204, 21, 0.52);
  }
}

.sk-danisa-canvas-wrap {
  position: relative;
  flex: 1 1 auto !important;
  min-height: 215px !important;
  width: 100%;
  aspect-ratio: 720 / 480;
  background: radial-gradient(circle at 38% 50%, #5c3318 0%, #2b1d14 100%);
  border: 2.5px solid #d97706;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
}

.sk-danisa-canvas-wrap.sk-play-zone-pulse {
  animation: skPlayZonePulse 1.35s ease-in-out infinite;
}

.sk-danisa-free-canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 210px;
  max-height: 100%;
  aspect-ratio: 720 / 480;
  object-fit: fill;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  cursor: grab;
}

.sk-danisa-free-canvas:active {
  cursor: grabbing;
}

.sk-danisa-comment {
  flex-shrink: 0;
  font-size: 0.64rem !important;
  padding: 4px 6px !important;
}

/* ================= MÀN OUTRO HỘP ĐANISA: GIỮ NGUYÊN GIAO DIỆN ẢNH 1 & FOCUS NÚT NHẬN TIỀN SIÊU TO ================= */
.sk-danisa-outro-focus-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  background: radial-gradient(
    circle at 50% 54%,
    rgba(20, 83, 45, 0.55) 0%,
    rgba(15, 23, 42, 0.78) 100%
  );
  backdrop-filter: blur(1.5px);
  cursor: pointer;
}

.sk-danisa-outro-focus-overlay.la-thua {
  background: radial-gradient(
    circle at 50% 54%,
    rgba(127, 29, 29, 0.55) 0%,
    rgba(15, 23, 42, 0.8) 100%
  );
}

.sk-danisa-outro-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(43, 29, 20, 0.94);
  border: 2px solid #fde047;
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.sk-danisa-outro-badge-title {
  font-size: 0.76rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.sk-danisa-outro-badge-sub {
  font-size: 0.62rem;
  font-weight: 800;
  color: #86efac;
}

@keyframes skMegaClaimPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 7px 0 #78350f,
      0 14px 28px rgba(0, 0, 0, 0.78),
      0 0 22px rgba(250, 204, 21, 0.75);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 8px 0 #78350f,
      0 18px 34px rgba(0, 0, 0, 0.85),
      0 0 36px rgba(250, 204, 21, 1);
  }
}

.sk-btn-claim-500k-mega {
  width: min(94%, 340px);
  min-height: 88px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 3.5px solid #fef9c3;
  background: linear-gradient(180deg, #fde047 0%, #f59e0b 52%, #d97706 100%);
  box-shadow:
    0 7px 0 #78350f,
    0 14px 28px rgba(0, 0, 0, 0.78),
    0 0 24px rgba(250, 204, 21, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  animation: skMegaClaimPulse 0.9s ease-in-out infinite;
}

.sk-btn-claim-500k-mega:active {
  transform: translateY(4px) scale(0.98) !important;
}

.sk-btn-claim-500k-mega.nut-outro-thua {
  background: linear-gradient(180deg, #f8fafc 0%, #cbd5e1 100%);
  border-color: #94a3b8;
  box-shadow:
    0 6px 0 #334155,
    0 12px 24px rgba(0, 0, 0, 0.7);
  animation: none;
}

.sk-claim-mega-main {
  font-family: var(--font-pixel);
  font-size: 1.24rem;
  font-weight: 900;
  color: #451a03;
  text-shadow: 0 1px 0 #fef9c3;
  line-height: 1.15;
  text-align: center;
}

.sk-claim-mega-sub {
  font-size: 0.68rem;
  font-weight: 900;
  color: #fef08a;
  background: #7f1d1d;
  border: 1.5px solid #fde047;
  border-radius: 999px;
  padding: 3px 12px;
  line-height: 1.2;
}

/* Chuyển cảnh sang Giao Diện Riêng Hộp Đanisa (sau khi xong Intro Tí chạy vào + Mở nắp đứng hình) */
@keyframes skChuyenCanhVaoHopDanisa {
  0% {
    opacity: 0;
    transform: scale(0.76) translateY(24px);
    filter: brightness(1.35);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}

.hop-su-kien-khan.che-do-giao-dien-rieng-danisa {
  flex: 1 1 0 !important;
  animation: skChuyenCanhVaoHopDanisa 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hop-su-kien-khan.che-do-giao-dien-rieng-danisa .sk-danisa-free-canvas {
  max-width: 100%;
}
