/* ==========================================================================
   TÀNG KINH CÁC LIVE — Sân Khấu Phát Sóng TikTok Live (9:16) & Facebook (16:9)
   Lấy cảm hứng kiến trúc sân khấu thời gian thực, tối ưu OBS Browser Source 60fps
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070508;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  color: #fdf5e6;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

#tkc-viewport {
  --tkc-accent: #f4c86a;
  --tkc-accent-2: #e59a3c;
  --tkc-glow: rgba(244, 200, 106, 0.46);
  --tkc-card-bg: rgba(17, 11, 16, 0.78);
  --tkc-card-border: rgba(244, 200, 106, 0.34);
  --tkc-bg-img: url('/img/tkc/thay-do.webp');
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #1a1018 0%, #060408 78%);
}

#tkc-viewport[data-char="co-gai-nho"] {
  --tkc-accent: #ffb0c4;
  --tkc-accent-2: #e87292;
  --tkc-glow: rgba(255, 164, 188, 0.46);
  --tkc-card-border: rgba(255, 176, 196, 0.36);
  --tkc-bg-img: url('/img/tkc/co-gai-nho.webp');
}

#tkc-viewport[data-char="tu-tien"] {
  --tkc-accent: #8ae8ff;
  --tkc-accent-2: #4ab2e8;
  --tkc-glow: rgba(138, 232, 255, 0.45);
  --tkc-card-bg: rgba(10, 16, 26, 0.8);
  --tkc-card-border: rgba(138, 232, 255, 0.35);
  --tkc-bg-img: url('/img/tkc/tu-tien.webp');
}

#tkc-viewport[data-char="soai-ca"] {
  --tkc-accent: #f3c184;
  --tkc-accent-2: #cf8a45;
  --tkc-glow: rgba(243, 193, 132, 0.44);
  --tkc-card-bg: rgba(16, 13, 18, 0.82);
  --tkc-card-border: rgba(243, 193, 132, 0.34);
  --tkc-bg-img: url('/img/tkc/soai-ca.webp');
}

#tkc-viewport[data-char="tra-that-lofi"] {
  --tkc-accent: #F4C86A;
  --tkc-accent-2: #d99d36;
  --tkc-glow: rgba(244, 200, 106, 0.48);
  --tkc-card-bg: rgba(11, 19, 36, 0.84);
  --tkc-card-border: rgba(244, 200, 106, 0.38);
  --tkc-bg-img: url('/img/mnl/tra-that-9x16.webp');
  background: radial-gradient(circle at 50% 35%, #132242 0%, #070c18 82%);
}

#tkc-viewport[data-char="tra-that-lofi"][data-aspect="16:9"] {
  --tkc-bg-img: url('/img/mnl/tra-that-16x9.webp');
}

/* Lớp đa tầng Trà Thất Minh Nguyệt Lofi (60fps GPU) */
.mnl-lofi-layers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

#tkc-viewport[data-char="tra-that-lofi"] .mnl-lofi-layers {
  display: block;
}

#tkc-viewport[data-char="tra-that-lofi"] .tkc-backdrop {
  filter: blur(4px) saturate(1.14) brightness(0.62);
}

.mnl-moon-orb {
  position: absolute;
  top: 7%;
  right: 11%;
  width: 6.2em;
  height: 6.2em;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fffef8 0%, #fef3c7 48%, rgba(244, 200, 106, 0.28) 76%, transparent 100%);
  box-shadow: 0 0 2.6em rgba(244, 200, 106, 0.55), 0 0 5.5em rgba(147, 197, 253, 0.25);
  animation: mnlMoonPulse 7.5s ease-in-out infinite alternate;
}

@keyframes mnlMoonPulse {
  0% { transform: scale(0.97) translateY(0); opacity: 0.86; }
  100% { transform: scale(1.04) translateY(-0.18em); opacity: 1; }
}

.mnl-drifting-mist {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 16%;
  height: 28%;
  background: radial-gradient(ellipse at 50% 50%, rgba(148, 163, 184, 0.16) 0%, rgba(56, 189, 248, 0.06) 45%, transparent 72%);
  filter: blur(16px);
  animation: mnlMistDrift 18s ease-in-out infinite alternate;
}

@keyframes mnlMistDrift {
  0% { transform: translateX(-4%) scaleY(0.95); }
  100% { transform: translateX(4%) scaleY(1.06); }
}

.mnl-tea-table-wrap {
  position: absolute;
  right: 4%;
  bottom: 24%;
  width: 8.6em;
  opacity: 0.92;
  filter: drop-shadow(0 0.6em 1.2em rgba(2, 6, 23, 0.75));
}

#tkc-viewport[data-aspect="16:9"] .mnl-tea-table-wrap {
  right: 26%;
  bottom: 19%;
  width: 9.4em;
}

.mnl-tea-table-img {
  width: 100%;
  height: auto;
  border-radius: 0.8em;
  border: 1px solid rgba(244, 200, 106, 0.32);
}

.mnl-tea-steam {
  position: absolute;
  left: 42%;
  top: -1.8em;
  width: 2.2em;
  height: 2.4em;
}

.mnl-tea-steam i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0.55em;
  height: 1.8em;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 232, 248, 0.58) 0%, transparent 70%);
  filter: blur(3px);
  animation: mnlTeaSteam 3.6s ease-out infinite;
}

.mnl-tea-steam i:nth-child(2) { left: 26%; animation-delay: 1.2s; }
.mnl-tea-steam i:nth-child(3) { left: 72%; animation-delay: 2.4s; }

@keyframes mnlTeaSteam {
  0% { transform: translateY(0.2em) scale(0.55); opacity: 0; }
  35% { opacity: 0.65; }
  100% { transform: translateY(-2.1em) translateX(0.35em) scale(1.45); opacity: 0; }
}

.mnl-tea-badge,
.mnl-act-pill {
  position: absolute;
  left: 4%;
  padding: 0.34em 0.82em;
  border-radius: 99px;
  font-size: 0.84em;
  background: rgba(11, 19, 36, 0.82);
  border: 1px solid rgba(244, 200, 106, 0.38);
  color: #e2e8f8;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(8px);
}

.mnl-tea-badge {
  top: 13.8%;
}

.mnl-tea-badge b {
  color: #f4c86a;
}

.mnl-act-pill {
  top: 18.2%;
  color: #fde68a;
  font-weight: 700;
}

#tkc-viewport[data-aspect="16:9"] .mnl-tea-badge { top: 18.5%; left: 2.5%; }
#tkc-viewport[data-aspect="16:9"] .mnl-act-pill { top: 25.5%; left: 2.5%; }

/* Khung chính tự co giãn chuẩn tỷ lệ 9:16 hoặc 16:9 */
.tkc-stage {
  position: relative;
  overflow: hidden;
  background: #0d080c;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 230, 180, 0.14);
}

#tkc-viewport[data-aspect="9:16"] .tkc-stage {
  width: min(100vw, 56.25vh);
  height: min(177.7778vw, 100vh);
  aspect-ratio: 9 / 16;
  font-size: clamp(7.2px, min(1.05vh, 1.86vw), 18px);
}

#tkc-viewport[data-aspect="16:9"] .tkc-stage {
  width: min(100vw, 177.7778vh);
  height: min(56.25vw, 100vh);
  aspect-ratio: 16 / 9;
  font-size: clamp(7.2px, min(1.52vh, 0.86vw), 17px);
}

/* ── Lớp 0: Hậu cảnh mờ có nhịp thở + Khói trầm + Canvas hạt 60fps ── */
.tkc-backdrop {
  position: absolute;
  inset: -6%;
  background-image: var(--tkc-bg-img);
  background-size: cover;
  background-position: center 24%;
  filter: blur(26px) saturate(1.22) brightness(0.42);
  transform: scale(1.08);
  animation: tkcBgBreath 16s ease-in-out infinite alternate;
  transition: background-image 0.6s ease;
  z-index: 0;
}

@keyframes tkcBgBreath {
  0% { transform: scale(1.06) translateY(0); }
  100% { transform: scale(1.13) translateY(-1.2%); }
}

.tkc-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 220, 160, 0.1) 0%, transparent 54%),
    linear-gradient(180deg, rgba(8, 5, 10, 0.72) 0%, rgba(10, 7, 12, 0.25) 34%, rgba(10, 7, 12, 0.62) 72%, rgba(7, 4, 9, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}

.tkc-incense {
  position: absolute;
  bottom: 10%;
  width: 28%;
  height: 55%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.34;
  background: radial-gradient(ellipse at 50% 80%, var(--tkc-glow), transparent 70%);
  filter: blur(28px);
  animation: tkcSmokeDrift 11s ease-in-out infinite alternate;
}
.tkc-incense-l { left: -6%; }
.tkc-incense-r { right: -6%; animation-delay: -5.5s; }

@keyframes tkcSmokeDrift {
  0% { transform: translateY(4%) scale(0.95); opacity: 0.24; }
  100% { transform: translateY(-6%) scale(1.1); opacity: 0.42; }
}

.tkc-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ── Lớp 1: Thanh Thương Hiệu Tàng Kinh Các + Dải Chữ Chạy ── */
.tkc-top {
  position: absolute;
  top: 1.35%;
  left: 3%;
  right: 3%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
}

.tkc-brand {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.38em 0.85em 0.38em 0.45em;
  border-radius: 999px;
  background: rgba(14, 9, 14, 0.78);
  border: 1px solid var(--tkc-card-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tkc-seal {
  width: 2.25em;
  height: 2.25em;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9382b 0%, #8b1b13 100%);
  border: 1.5px solid #f7d588;
  color: #fff6df;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.05em;
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px rgba(201, 56, 43, 0.55);
}

.tkc-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.tkc-brand-text small {
  font-size: 0.66em;
  letter-spacing: 0.12em;
  color: var(--tkc-accent);
  font-weight: 700;
}

.tkc-brand-text strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.12em;
  letter-spacing: 0.05em;
  color: #fff8eb;
}

.tkc-live-cluster {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.tkc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.38em 0.78em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.tkc-pill-voice {
  background: rgba(18, 12, 18, 0.76);
  border: 1px solid var(--tkc-card-border);
  color: #fbe6be;
}

.tkc-pill-live {
  background: linear-gradient(135deg, rgba(214, 45, 58, 0.92), rgba(164, 24, 38, 0.92));
  border: 1px solid rgba(255, 190, 190, 0.45);
  color: #fff;
  letter-spacing: 0.04em;
}

.tkc-pill-live i {
  width: 0.58em;
  height: 0.58em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: tkcPulseDot 1.3s ease-in-out infinite;
}

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

/* Dải chữ chạy ngang */
.tkc-marquee-bar {
  position: absolute;
  top: 6.95%;
  left: 3%;
  right: 3%;
  height: 2.75%;
  min-height: 1.85em;
  z-index: 9;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 10, 15, 0.68);
  border: 1px solid rgba(244, 200, 106, 0.24);
  display: flex;
  align-items: center;
}

.tkc-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 3.5em;
  padding-left: 1em;
  font-size: 0.82em;
  font-weight: 600;
  color: #fce9c5;
  animation: tkcMarquee 26s linear infinite;
}

@keyframes tkcMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Lớp 2: Hai Bảng Câu Đối ("Cùng Tham Gia" & "Bảng Tri Ân") ── */
.tkc-board {
  position: absolute;
  top: 11.4%;
  width: 24.4%;
  z-index: 8;
  background: var(--tkc-card-bg);
  border: 1px solid var(--tkc-card-border);
  border-radius: 1.05em;
  padding: 0.72em 0.68em;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tkc-board-left { left: 2.2%; }
.tkc-board-right { right: 2.2%; }

#tkc-viewport[data-hide-boards="1"] .tkc-board {
  display: none;
}

.tkc-board h3 {
  margin: 0 0 0.55em;
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82em;
  letter-spacing: 0.06em;
  color: var(--tkc-accent);
  border-bottom: 1px solid rgba(255, 230, 180, 0.14);
  padding-bottom: 0.38em;
}

.tkc-mission-list {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.tkc-mission {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.36em 0.44em;
  border-radius: 0.68em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tkc-mission.is-hot {
  background: rgba(244, 200, 106, 0.1);
  border-color: rgba(244, 200, 106, 0.28);
}

.tkc-mission b {
  width: 1.65em;
  height: 1.65em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  font-size: 0.82em;
  flex: none;
}

.tkc-mission strong {
  display: block;
  font-size: 0.76em;
  color: #fff6e8;
  line-height: 1.18;
}

.tkc-mission small {
  display: block;
  font-size: 0.64em;
  color: rgba(255, 240, 220, 0.68);
  line-height: 1.2;
}

.tkc-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.42em;
}

.tkc-rank-empty {
  text-align: center;
  padding: 1.2em 0.3em;
  font-size: 0.72em;
  color: rgba(255, 240, 220, 0.62);
  font-style: italic;
}

.tkc-rank-item {
  display: flex;
  align-items: center;
  gap: 0.42em;
  padding: 0.34em 0.44em;
  border-radius: 0.65em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tkc-rank-item.rank-1 {
  background: linear-gradient(90deg, rgba(244, 200, 106, 0.22), rgba(244, 200, 106, 0.05));
  border-color: rgba(244, 200, 106, 0.45);
}

.tkc-rank-medal {
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72em;
  font-weight: 800;
  background: rgba(244, 200, 106, 0.22);
  color: #ffe39e;
  flex: none;
}

.tkc-rank-name {
  flex: 1;
  min-width: 0;
  font-size: 0.74em;
  font-weight: 700;
  color: #fff6e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkc-rank-pts {
  font-size: 0.68em;
  font-weight: 800;
  color: var(--tkc-accent);
}

/* ── Lớp 3: Nhân Vật Người Đọc Truyện 2.5D (Canvas Lip-Sync + Hào Quang Sóng Âm) ── */
.tkc-narrator-zone {
  position: absolute;
  top: 10.9%;
  left: 50%;
  transform: translateX(-50%);
  width: 44.2%;
  height: 38.2%;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tkc-viewport[data-aspect="9:16"][data-hide-boards="1"] .tkc-narrator-zone {
  width: 54%;
}

.tkc-aura-ring {
  position: absolute;
  width: 92%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tkc-glow) 0%, transparent 68%);
  filter: blur(14px);
  opacity: 0.55;
  transform: scale(calc(0.95 + var(--vocal-energy, 0) * 0.26));
  transition: transform 0.08s linear;
  pointer-events: none;
}

.tkc-portrait-frame {
  position: relative;
  height: 100%;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  border-radius: 1.45em;
  overflow: hidden;
  background: #140d12;
  border: 2px solid var(--tkc-accent);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.68),
    0 0 calc(18px + var(--vocal-energy, 0) * 28px) var(--tkc-glow),
    inset 0 0 26px rgba(0, 0, 0, 0.45);
}

.tkc-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0.34em;
  border-radius: 1.15em;
  border: 1px solid rgba(255, 244, 218, 0.26);
  pointer-events: none;
}

#narrator-canvas,
.tkc-custom-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tkc-custom-img[hidden] {
  display: none !important;
}

#tkc-viewport[data-speaking="1"] .tkc-custom-img {
  animation: tkcCustomTalk 0.42s ease-in-out infinite alternate;
}

@keyframes tkcCustomTalk {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.022) translateY(-1%); }
}

.tkc-eq-bars {
  position: absolute;
  left: 50%;
  bottom: 3.45em;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
  height: 1.35em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: rgba(12, 8, 13, 0.66);
  border: 1px solid rgba(255, 235, 190, 0.24);
  z-index: 3;
}

.tkc-eq-bars i {
  display: block;
  width: 0.2em;
  height: 24%;
  border-radius: 99px;
  background: var(--tkc-accent);
  transition: height 0.07s ease;
}

.tkc-narrator-badge {
  position: absolute;
  left: 0.55em;
  right: 0.55em;
  bottom: 0.5em;
  padding: 0.38em 0.65em;
  border-radius: 0.85em;
  background: linear-gradient(180deg, rgba(14, 9, 14, 0.78), rgba(10, 6, 11, 0.92));
  border: 1px solid var(--tkc-card-border);
  text-align: center;
  z-index: 3;
}

.tkc-narrator-badge strong {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.88em;
  color: #fff8eb;
  line-height: 1.18;
}

.tkc-narrator-badge span {
  display: block;
  font-size: 0.66em;
  color: var(--tkc-accent);
  margin-top: 0.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Lớp 4: Cuộn Kinh Thư (Bìa Sách + Tên Truyện + Phụ Đề Karaoke Chạy Chữ) ── */
.tkc-scripture-zone {
  position: absolute;
  top: 50.1%;
  left: 3%;
  right: 3%;
  height: 24.2%;
  z-index: 9;
  display: flex;
}

#tkc-viewport[data-aspect="9:16"][data-hide-audience="1"] .tkc-scripture-zone {
  height: 37%;
}

.tkc-scripture-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(23, 15, 20, 0.88) 0%, rgba(15, 10, 15, 0.93) 100%);
  border: 1.5px solid var(--tkc-card-border);
  border-radius: 1.25em;
  padding: 0.75em 0.9em;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 200, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.58em;
}

.tkc-book-head {
  display: flex;
  align-items: center;
  gap: 0.75em;
  flex: none;
}

.tkc-book-cover-wrap {
  width: 3.35em;
  height: 4.65em;
  border-radius: 0.45em;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(255, 232, 185, 0.45);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  background: #24161d;
}

.tkc-book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tkc-book-meta {
  flex: 1;
  min-width: 0;
}

.tkc-book-kicker {
  display: inline-block;
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--tkc-accent);
  text-transform: uppercase;
}

.tkc-book-meta h1 {
  margin: 0.1em 0 0.12em;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.18em;
  line-height: 1.22;
  color: #fff9ee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkc-book-meta p {
  margin: 0 0 0.38em;
  font-size: 0.82em;
  color: rgba(255, 240, 218, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkc-chap-progress {
  width: 100%;
  height: 0.34em;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.tkc-chap-progress i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--tkc-accent-2), var(--tkc-accent));
  transition: width 0.35s ease;
}

.tkc-qr-box {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18em;
  padding: 0.28em;
  border-radius: 0.6em;
  background: #fffaf0;
  color: #241409;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

#tkc-viewport[data-hide-qr="1"] .tkc-qr-box {
  display: none;
}

.tkc-qr-box img {
  width: 3.55em;
  height: 3.55em;
  display: block;
  border-radius: 0.25em;
}

.tkc-qr-box small {
  font-size: 0.56em;
  font-weight: 800;
  color: #3a1f10;
  letter-spacing: 0.02em;
}

/* Khung phụ đề kinh thư đang đọc (Karaoke làm sáng câu đang phát) */
.tkc-subtitle-scroll {
  flex: 1;
  min-height: 0;
  padding: 0.62em 0.82em;
  border-radius: 0.88em;
  background: rgba(255, 248, 234, 0.06);
  border: 1px solid rgba(255, 236, 196, 0.14);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  align-items: flex-start;
}
.tkc-subtitle-scroll::-webkit-scrollbar { display: none; }

#stage-subtitle-text {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.04em;
  line-height: 1.58;
  color: rgba(255, 247, 234, 0.72);
  transition: color 0.2s ease;
}

#stage-subtitle-text .clause-done {
  color: rgba(255, 244, 224, 0.62);
}

#stage-subtitle-text .clause-active {
  color: #fffdf7;
  background: linear-gradient(90deg, rgba(244, 200, 106, 0.24), rgba(244, 200, 106, 0.08));
  border-bottom: 1.5px solid var(--tkc-accent);
  padding: 0.04em 0.2em;
  border-radius: 0.26em;
  text-shadow: 0 0 12px var(--tkc-glow);
}

/* ── Lớp 5: Đạo Tràng Thính Giả Ngồi Nghe + Bong Bóng Chat ── */
.tkc-audience-zone {
  position: absolute;
  top: 75%;
  left: 2.6%;
  right: 2.6%;
  height: 13.2%;
  z-index: 8;
}

#tkc-viewport[data-hide-audience="1"] .tkc-audience-zone {
  display: none;
}

.tkc-cushions {
  position: absolute;
  inset: auto 2% 6% 2%;
  height: 28%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
}

.tkc-cushion {
  width: 9.5%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, rgba(214, 152, 66, 0.45), rgba(110, 52, 34, 0.55) 72%, transparent 100%);
  border: 1px solid rgba(244, 200, 106, 0.28);
}

.tkc-devotees {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 1.5% 4%;
}

.tkc-devotee {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12.5%;
  animation: tkcDevoteeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tkcDevoteeIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.85); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tkc-dev-avatar {
  width: 2.85em;
  height: 2.85em;
  border-radius: 50%;
  border: 1.5px solid var(--tkc-accent);
  background: linear-gradient(135deg, #3c2230, #1f1424);
  display: grid;
  place-items: center;
  font-size: 1.15em;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  animation: tkcDevNod 3.6s ease-in-out infinite alternate;
}

.tkc-dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes tkcDevNod {
  0% { transform: translateY(0); }
  100% { transform: translateY(-0.18em); }
}

.tkc-dev-name {
  margin-top: 0.2em;
  max-width: 100%;
  padding: 0.1em 0.42em;
  border-radius: 99px;
  background: rgba(12, 8, 14, 0.82);
  border: 1px solid rgba(255, 232, 185, 0.2);
  font-size: 0.62em;
  font-weight: 700;
  color: #fcebd0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkc-dev-hearts {
  margin-top: 0.12em;
  font-size: 0.58em;
  color: #ff85a2;
  font-weight: 800;
}

.tkc-chat-bubble {
  position: absolute;
  bottom: 104%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 7.5em;
  max-width: 13em;
  padding: 0.34em 0.58em;
  border-radius: 0.75em;
  background: #fff9ef;
  color: #261510;
  font-size: 0.68em;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--tkc-accent);
  z-index: 12;
  animation: tkcBubblePop 0.28s ease-out;
}

.tkc-chat-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 0.36em solid transparent;
  border-top-color: #fff9ef;
}

@keyframes tkcBubblePop {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.86); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ── Lớp 5B: Dải Đáy Công Đức & Quà Tặng ── */
.tkc-bottom-dock {
  position: absolute;
  bottom: 1.25%;
  left: 2.8%;
  right: 2.8%;
  height: 9.8%;
  z-index: 10;
  background: rgba(14, 9, 14, 0.86);
  border: 1px solid var(--tkc-card-border);
  border-radius: 1.05em;
  padding: 0.48em 0.72em;
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.95fr);
  gap: 0.68em;
  align-items: center;
}

.tkc-dock-left {
  display: flex;
  flex-direction: column;
  gap: 0.36em;
  min-width: 0;
}

.tkc-dock-announce {
  display: flex;
  align-items: center;
  gap: 0.36em;
  font-size: 0.72em;
  color: #fde9c4;
  overflow: hidden;
  white-space: nowrap;
}

.tkc-dock-announce strong {
  color: var(--tkc-accent);
}

.tkc-dock-announce b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkc-dock-gifts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38em;
}

.tkc-gift-chip {
  display: flex;
  align-items: center;
  gap: 0.34em;
  padding: 0.26em 0.42em;
  border-radius: 0.62em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 232, 185, 0.16);
  min-width: 0;
}

.tkc-gift-chip span {
  font-size: 1.05em;
  flex: none;
}

.tkc-gift-chip b {
  display: block;
  font-size: 0.56em;
  color: var(--tkc-accent);
  line-height: 1.1;
}

.tkc-gift-chip strong {
  display: block;
  font-size: 0.64em;
  color: #fff6e6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkc-dock-right {
  height: 100%;
  background: rgba(255, 240, 200, 0.05);
  border: 1px solid rgba(244, 200, 106, 0.22);
  border-radius: 0.78em;
  padding: 0.34em 0.55em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.tkc-dock-rank-title {
  font-size: 0.6em;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tkc-accent);
  margin-bottom: 0.24em;
  text-align: center;
}

.tkc-dock-top3 {
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  font-size: 0.66em;
}

.tkc-dock-empty {
  text-align: center;
  color: rgba(255, 240, 220, 0.58);
  font-size: 0.95em;
}

.tkc-top3-row {
  display: flex;
  justify-content: space-between;
  gap: 0.4em;
  color: #fff6e6;
}

.tkc-top3-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tkc-top3-row b {
  color: var(--tkc-accent);
  flex: none;
}

/* ==========================================================================
   BỐ CỤC NGANG 16:9 (FACEBOOK LIVE / YOUTUBE STUDIO — 1920×1080)
   Trái: Khung Nhân vật 2.5D · Giữa: Kinh Thư + Đạo Tràng · Phải: 2 Bảng Đối
   ========================================================================== */
#tkc-viewport[data-aspect="16:9"] .tkc-top {
  top: 2%;
  left: 2.4%;
  right: 2.4%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-marquee-bar {
  top: 9.2%;
  left: 2.4%;
  right: 2.4%;
  height: 4.1%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-narrator-zone {
  top: 15%;
  left: 2.4%;
  transform: none;
  width: 28.6%;
  height: 69.5%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-scripture-zone {
  top: 15%;
  left: 32.4%;
  right: 23.2%;
  height: 48.5%;
}

#tkc-viewport[data-aspect="16:9"][data-hide-boards="1"] .tkc-scripture-zone,
#tkc-viewport[data-aspect="16:9"][data-hide-boards="1"] .tkc-audience-zone {
  right: 2.4%;
}

#tkc-viewport[data-aspect="16:9"][data-hide-audience="1"] .tkc-scripture-zone {
  height: 69.5%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-audience-zone {
  top: 65%;
  left: 32.4%;
  right: 23.2%;
  height: 19.5%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-board-left {
  top: 15%;
  left: auto;
  right: 2.4%;
  width: 19.6%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-board-right {
  top: 50.2%;
  left: auto;
  right: 2.4%;
  width: 19.6%;
}

#tkc-viewport[data-aspect="16:9"] .tkc-bottom-dock {
  bottom: 1.8%;
  left: 2.4%;
  right: 2.4%;
  height: 11.4%;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}

#tkc-viewport[data-aspect="16:9"] .tkc-dock-left {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

#tkc-viewport[data-aspect="16:9"] .tkc-dock-gifts {
  flex: 1;
  max-width: 58%;
}

/* ── Lớp 6: Đại Hiệu Ứng Sân Khấu (Đài Sen Kim Quang / Dâng Trà / Lời Nhắn Chủ Các) ── */
.tkc-grand-fx {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
}

.tkc-grand-fx[hidden] {
  display: none !important;
}

.tkc-fx-banner {
  position: relative;
  max-width: 88%;
  padding: 1.15em 1.65em;
  border-radius: 1.4em;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 140, 0.36), transparent 70%),
    linear-gradient(135deg, rgba(36, 18, 22, 0.95), rgba(18, 10, 18, 0.96));
  border: 2px solid #f9d88b;
  box-shadow: 0 0 55px rgba(247, 204, 106, 0.65), 0 18px 40px rgba(0, 0, 0, 0.75);
  text-align: center;
  animation: tkcGrandBurst 0.48s cubic-bezier(0.2, 1.15, 0.35, 1);
}

.tkc-fx-banner .fx-icon {
  font-size: 2.8em;
  line-height: 1;
  margin-bottom: 0.2em;
  filter: drop-shadow(0 0 16px rgba(255, 220, 130, 0.8));
}

.tkc-fx-banner strong {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25em;
  color: #ffe8a8;
  margin-bottom: 0.25em;
}

.tkc-fx-banner p {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.45;
  color: #fffaf0;
}

@keyframes tkcGrandBurst {
  0% { opacity: 0; transform: scale(0.65) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Khóa Tạm Nghỉ Phiên & Nút Bật Tiếng 1 Chạm ── */
.tkc-session-mask {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(9, 6, 11, 0.88);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8%;
}

.tkc-session-mask[hidden] {
  display: none !important;
}

.tkc-mask-inner {
  max-width: 26em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
}

.tkc-seal-lg {
  width: 3.2em;
  height: 3.2em;
  font-size: 1.5em;
}

.tkc-mask-inner h2 {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.45em;
  color: var(--tkc-accent);
}

.tkc-mask-inner p {
  margin: 0;
  font-size: 0.92em;
  color: rgba(255, 245, 230, 0.8);
  line-height: 1.5;
}

.tkc-unmute-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 35;
  padding: 0.9em 1.45em;
  border-radius: 999px;
  border: 2px solid #ffe29a;
  background: linear-gradient(135deg, #e56247 0%, #b83724 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95em;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.75), 0 0 28px rgba(244, 200, 106, 0.55);
  animation: tkcUnmutePulse 1.8s ease-in-out infinite;
}

.tkc-unmute-btn[hidden] {
  display: none !important;
}

@keyframes tkcUnmutePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Thanh đổi nhanh ở chế độ Xem Thử (/tang-kinh-cac/demo) */
.tkc-demo-bar {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 10, 16, 0.88);
  border: 1px solid rgba(244, 200, 106, 0.42);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
  font-size: 12px;
}

.tkc-demo-bar span {
  color: #f7d588;
  font-weight: 700;
  margin-right: 2px;
}

.tkc-demo-bar .sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.tkc-demo-bar button,
.tkc-demo-bar .tkc-demo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff4e2;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.tkc-demo-bar .tkc-demo-link {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 116, 144, 0.35);
  color: #e0f2fe;
}

.tkc-demo-bar button.is-on,
.tkc-demo-bar button:hover,
.tkc-demo-bar .tkc-demo-link:hover {
  background: linear-gradient(135deg, #f7d588, #d89b32);
  color: #231307;
  border-color: transparent;
}

@media (max-width: 720px) {
  .tkc-demo-bar {
    top: 6px;
    bottom: auto;
    left: 6px;
    right: 6px;
    border-radius: 999px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 5px 9px;
  }
  .tkc-demo-bar::-webkit-scrollbar {
    display: none;
  }
  .tkc-demo-bar button {
    flex: none;
    white-space: nowrap;
  }
}

/* ==========================================================================
   v14.0 — SÂN KHẤU DIORAMA 2.5D (Story-First × Little Nightmares × Sàn Đông Vui)
   - Tầng Thượng Đài (5%–32%): Cuộn Kinh Thư Karaoke + Bục Thuyết Thư Nhân & Lời Hô
   - Tầng Giữa (32.2%–85.4%): 100% Mặt Sàn Phối Cảnh 2.5D + Chồng Cổ Thư Khổng Lồ
     + Giám Viện Cổ Thư Rình Rập + 30–50 Thế Thân Chibi / Mắt Rực Cháy / Thú Cưng
   - Tầng Chân Trang (85.8%–98.8%): BẢNG ĐỘ CHÁY (Top 1–5) + Thẻ Lệnh Cộng Điểm
   ========================================================================== */

.tkc-linh-anh-canvas,
.la-scene-pill,
.la-callout-bubble,
.la-diorama-hud,
.la-scroll-banner,
.la-frenzy-bar,
.la-catch-toast,
.la-leviathan-banner,
.la-cmd-strip {
  display: none;
}

.la-scroll-banner[hidden],
.la-frenzy-bar[hidden],
.la-catch-toast[hidden],
.la-leviathan-banner[hidden] {
  display: none !important;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-linh-anh-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: auto;
  touch-action: manipulation;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-fx-canvas {
  z-index: 5;
  opacity: 0.42;
  pointer-events: none;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-backdrop {
  opacity: 0.12;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .mnl-lofi-layers,
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-marquee-bar,
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-board,
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-audience-zone,
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-bottom-dock {
  display: none !important;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-vignette {
  opacity: 0.28;
  pointer-events: none;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-top {
  top: 1.05%;
  left: 2.8%;
  right: 2.8%;
  z-index: 16;
}

/* ── 1) Tầng Kinh Thư Karaoke Thượng Đài (5.2% -> 19.8% trên 9:16, không bị Thế Thân đè) ── */
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"])#tkc-viewport .tkc-scripture-zone {
  top: 5.2%;
  left: 2.8%;
  right: 2.8%;
  height: 14.6%;
  z-index: 15;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-scripture-card {
  padding: 0.48em 0.72em;
  gap: 0.36em;
  border-radius: 1.05em;
  background: linear-gradient(180deg, rgba(10, 15, 29, 0.88) 0%, rgba(7, 11, 22, 0.92) 100%);
  border: 1.5px solid rgba(244, 200, 106, 0.48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 244, 214, 0.16);
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-book-head {
  gap: 0.56em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-book-cover-wrap {
  width: 2.15em;
  height: 2.95em;
  border-radius: 0.36em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-book-kicker {
  font-size: 0.56em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-book-meta h1 {
  font-size: 0.94em;
  margin: 0.04em 0 0.06em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-book-meta p {
  font-size: 0.7em;
  margin: 0 0 0.22em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-chap-progress {
  height: 0.26em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-qr-box {
  padding: 0.18em;
  gap: 0.08em;
  border-radius: 0.45em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-qr-box img {
  width: 2.25em;
  height: 2.25em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-qr-box small {
  font-size: 0.46em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-subtitle-scroll {
  padding: 0.4em 0.64em;
  border-radius: 0.68em;
  background: rgba(255, 250, 238, 0.07);
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) #stage-subtitle-text {
  font-size: 0.92em;
  line-height: 1.46;
}

/* ── 2) Bục Thượng Đài Thuyết Thư Nhân (Kiểu DJ BẤP ở chính giữa đỉnh sàn 20.3% -> 31.9%) ── */
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"])#tkc-viewport .tkc-narrator-zone {
  top: 20.3%;
  left: 50%;
  transform: translateX(-50%);
  width: 21.5%;
  height: 11.6%;
  z-index: 14;
  pointer-events: none;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-portrait-frame {
  border-radius: 1.05em;
  border-width: 1.8px;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-portrait-frame::after {
  inset: 0.2em;
  border-radius: 0.85em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-eq-bars {
  bottom: 1.75em;
  height: 0.85em;
  padding: 0.12em 0.38em;
  gap: 0.12em;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-narrator-badge {
  left: 0.22em;
  right: 0.22em;
  bottom: 0.22em;
  padding: 0.18em 0.3em;
  border-radius: 0.55em;
  background: linear-gradient(180deg, rgba(16, 11, 28, 0.88), rgba(9, 7, 18, 0.95));
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-narrator-badge strong {
  font-size: 0.62em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .tkc-narrator-badge span {
  display: none;
}

/* Huy hiệu Bối cảnh + Chọn Đạo Tu (Góc trái bục Thượng Đài 20.5% -> 31.5%, không che sàn) */
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-scene-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  position: absolute;
  top: 20.6%;
  left: 2.8%;
  max-width: 35.5%;
  z-index: 15;
  padding: 0.26em 0.62em;
  border-radius: 999px;
  background: rgba(8, 13, 26, 0.82);
  border: 1px solid rgba(244, 200, 106, 0.42);
  color: #fef3c7;
  font-size: 0.62em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(8px);
  pointer-events: none;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

#tkc-viewport[data-stage-mode="linh-anh"] .la-cmd-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.26em;
  position: absolute;
  top: 24.4%;
  left: 2.8%;
  max-width: 35.5%;
  z-index: 15;
  padding: 0.28em 0.5em;
  border-radius: 0.72em;
  background: rgba(8, 12, 24, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.26);
  backdrop-filter: blur(8px);
}

.la-cmd-hint {
  font-size: 0.56em;
  color: rgba(241, 245, 249, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.la-cmd-hint b {
  color: #fde68a;
  font-weight: 800;
}

.la-cmd-btns {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22em;
}

.la-cmd-btns button {
  padding: 0.18em 0.46em;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.6em;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.la-cmd-btns button:hover,
.la-cmd-btns button.is-on {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #1c1204;
  border-color: transparent;
  transform: translateY(-1px);
}

#tkc-viewport[data-obs="1"] .la-cmd-btns {
  display: none !important;
}

/* Bong bóng lời hô sân khấu cạnh Bục Thuyết Thư Nhân (Góc phải 20.6% -> 31.5%, chuẩn Ảnh 2) */
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble {
  display: flex;
  align-items: center;
  position: absolute;
  top: 20.8%;
  left: 61.2%;
  right: 2.8%;
  min-height: 4.2em;
  max-height: 10.6%;
  z-index: 15;
  padding: 0.44em 0.66em;
  border-radius: 0.88em;
  background: linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(254, 243, 199, 0.94));
  border: 1.5px solid #f59e0b;
  color: #1e1b4b;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1.34;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 191, 36, 0.28);
  pointer-events: none;
  transition: transform 0.24s cubic-bezier(0.2, 1.2, 0.35, 1), border-color 0.2s ease;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble::before {
  content: '';
  position: absolute;
  left: -0.46em;
  top: 38%;
  width: 0.72em;
  height: 0.72em;
  background: #fef9e7;
  border-left: 1.5px solid #f59e0b;
  border-bottom: 1.5px solid #f59e0b;
  transform: rotate(45deg);
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble.is-alert {
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
  border-color: #ef4444;
  color: #7f1d1d;
  transform: scale(1.03);
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble.is-alert::before {
  background: #ffe4e6;
  border-color: #ef4444;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble b {
  color: #b45309;
  font-weight: 900;
}

#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble.is-alert b {
  color: #dc2626;
}

/* ── 3) HUD 2 Khung Chân Trang (85.8% -> 98.8%: BẢNG ĐỘ CHÁY / VUA SÁT CÁ + THẺ LỆNH) ── */
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-diorama-hud {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 0.55em;
  position: absolute;
  bottom: 1.15%;
  left: 2.6%;
  right: 2.6%;
  height: 12.8%;
  z-index: 16;
}

#tkc-viewport[data-stage-mode="linh-anh"] .la-pond-rules-card {
  display: none !important;
}

#tkc-viewport[data-stage-mode="ho-cau"] #la-rules-card {
  display: none !important;
}

.la-heat-card,
.la-rules-card {
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.90) 0%, rgba(6, 9, 20, 0.95) 100%);
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 0.88em;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.la-heat-card {
  padding: 0.42em 0.62em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.la-heat-title {
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #facc15;
  text-transform: uppercase;
  margin-bottom: 0.14em;
}

.la-heat-list {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  flex: 1;
  justify-content: center;
}

.la-heat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35em;
  font-size: 0.64em;
  line-height: 1.24;
  color: #f1f5f9;
}

.la-heat-row.is-top1 {
  color: #fef08a;
  font-weight: 800;
}

.la-heat-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-heat-pts {
  font-weight: 800;
  color: #f8fafc;
  flex: none;
}

.la-heat-row.is-top1 .la-heat-pts {
  color: #fde047;
}

.la-heat-empty {
  font-size: 0.62em;
  color: rgba(226, 232, 240, 0.65);
  font-style: italic;
}

.la-rules-card {
  padding: 0.44em 0.68em;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
}

.la-rules-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.24em;
  width: 100%;
}

.la-rule-chip {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.12em 0.28em;
  border-radius: 0.42em;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.63em;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.la-rule-chip b {
  color: #ffffff;
  font-weight: 900;
}

.la-rule-chip em {
  font-style: normal;
  color: #fde047;
  font-weight: 800;
}

.la-rule-chip:hover,
.la-rule-chip:active {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.48);
  transform: translateY(-1px);
}

.la-rule-dot {
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.64em;
  font-weight: 800;
}

.la-rule-static {
  font-size: 0.63em;
  font-weight: 800;
  color: #f9a8d4;
  padding: 0.12em 0.2em;
}

#tkc-viewport[data-obs="1"] .la-rule-chip {
  pointer-events: none;
}

/* Trục Lụa Cổ Phong ⚡ ĐỘT PHÁ ⚡ (Bung ở đỉnh sàn 32.8% chỉ 3.5s, không che Kinh Thư) */
#tkc-viewport:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-scroll-banner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: absolute;
  top: 32.8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  min-width: 56%;
  max-width: 84%;
  pointer-events: none;
  animation: laScrollUnfurl 0.42s cubic-bezier(0.2, 1.15, 0.35, 1);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 22px rgba(251, 191, 36, 0.42));
}

/* ── v16.0: Thanh Bão Cá Cộng Đồng (0/500), Thẻ Chiến Tích Bắt Cá & Đại Chiến Thủy Quái ── */
.la-rule-link {
  text-decoration: none;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.25);
}

.la-rule-chip.is-on {
  background: rgba(34, 197, 94, 0.24);
  border-color: rgba(74, 222, 128, 0.7);
  color: #dcfce7;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-frenzy-bar {
  display: flex;
  flex-direction: column;
  gap: 0.22em;
  position: absolute;
  top: 24.4%;
  left: 2.8%;
  width: 35.2%;
  z-index: 15;
  padding: 0.32em 0.55em;
  border-radius: 0.72em;
  background: rgba(8, 15, 30, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.38);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-frenzy-bar.is-active {
  border-color: rgba(250, 204, 21, 0.9);
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.92), rgba(120, 53, 15, 0.88));
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.52);
}

.la-frenzy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3em;
  font-size: 0.56em;
  font-weight: 800;
  color: #e0f2fe;
}

.la-frenzy-bar.is-active .la-frenzy-head {
  color: #fef08a;
}

.la-frenzy-head b {
  color: #fde047;
}

.la-frenzy-track {
  width: 100%;
  height: 0.34em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.la-frenzy-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #facc15, #f97316);
  transition: width 0.3s ease;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-catch-toast {
  display: flex;
  align-items: center;
  gap: 0.55em;
  position: absolute;
  top: 32.6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 23;
  min-width: 54%;
  max-width: 88%;
  padding: 0.42em 0.78em;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 22, 42, 0.94), rgba(12, 34, 62, 0.94));
  border: 1.5px solid rgba(250, 204, 21, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(56, 189, 248, 0.35);
  pointer-events: none;
  animation: laScrollUnfurl 0.32s cubic-bezier(0.2, 1.15, 0.35, 1);
}

.la-catch-avatar {
  width: 2.25em;
  height: 2.25em;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #facc15;
  flex: none;
  background: #0f172a;
}

.la-catch-body {
  min-width: 0;
  flex: 1;
}

.la-catch-top {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.62em;
}

.la-catch-top strong {
  color: #fef3c7;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.la-catch-badge {
  padding: 0.08em 0.42em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 900;
  background: rgba(250, 204, 21, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
  flex: none;
}

.la-catch-fish {
  display: flex;
  align-items: center;
  gap: 0.28em;
  font-size: 0.68em;
  color: #f8fafc;
  white-space: nowrap;
}

.la-catch-fish b {
  color: #7dd3fc;
  font-weight: 800;
}

.la-catch-fish em {
  font-style: normal;
  color: #fde047;
  font-weight: 800;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-leviathan-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32em;
  position: absolute;
  top: 33.4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  min-width: 66%;
  max-width: 92%;
  padding: 0.55em 1.0em;
  border-radius: 1.0em;
  background: radial-gradient(circle at 50% 0%, rgba(120, 53, 15, 0.96), rgba(30, 14, 6, 0.96));
  border: 2px solid #facc15;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.78), 0 0 32px rgba(250, 204, 21, 0.62);
  pointer-events: none;
  animation: laScrollUnfurl 0.42s cubic-bezier(0.2, 1.15, 0.35, 1);
}

.la-lev-crown {
  font-size: 0.66em;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fde047;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.65);
}

.la-lev-row {
  display: flex;
  align-items: center;
  gap: 0.55em;
}

.la-lev-avatar {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fde047;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.7);
}

.la-lev-meta {
  display: flex;
  flex-direction: column;
}

.la-lev-meta strong {
  font-size: 0.8em;
  font-weight: 900;
  color: #fffbeb;
}

.la-lev-meta span {
  font-size: 0.68em;
  font-weight: 800;
  color: #fcd34d;
}

.la-scroll-rod {
  width: 0.72em;
  border-radius: 99px;
  background: linear-gradient(90deg, #451a03, #92400e 48%, #451a03);
  border: 1px solid #fbbf24;
  position: relative;
  flex: none;
}

.la-scroll-rod::after {
  content: '';
  position: absolute;
  bottom: -0.75em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.28em;
  height: 0.8em;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(180deg, #ef4444, #991b1b);
}

.la-scroll-paper {
  padding: 0.44em 1.15em;
  background: radial-gradient(circle at 50% 0%, rgba(255, 251, 235, 0.96), rgba(245, 222, 179, 0.95));
  border-top: 2px solid #b45309;
  border-bottom: 2px solid #b45309;
  text-align: center;
  color: #291507;
}

.la-scroll-paper small {
  display: block;
  font-size: 0.62em;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #b91c1c;
  text-transform: uppercase;
}

.la-scroll-paper strong {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.02em;
  font-weight: 800;
  color: #1c0f05;
  margin: 0.05em 0;
}

.la-scroll-paper span {
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  color: #78350f;
}

@keyframes laScrollUnfurl {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0.35) translateY(-8px); }
  100% { opacity: 1; transform: translateX(-50%) scaleX(1) translateY(0); }
}

/* ── 4) Khung Ngang 16:9 (Cột trái Kinh Thư + Bục Kể + Bảng Độ Cháy; Bên phải Sàn 2.5D mở thoáng) ── */
#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"])#tkc-viewport .tkc-narrator-zone {
  top: 9.8%;
  left: 2.2%;
  transform: none;
  width: 15.5%;
  height: 25.5%;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-callout-bubble {
  top: 11.2%;
  left: 18.6%;
  right: auto;
  width: 24%;
  max-height: 22%;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"])#tkc-viewport .tkc-scripture-zone {
  top: 36.8%;
  left: 2.2%;
  right: auto;
  width: 27.5%;
  height: 36.5%;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-scene-pill {
  top: 9.8%;
  left: 44%;
  max-width: 30%;
}

#tkc-viewport[data-aspect="16:9"][data-stage-mode="linh-anh"] .la-cmd-strip,
#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"] .la-frenzy-bar {
  top: 9.6%;
  left: auto;
  right: 2.2%;
  width: 25%;
  max-width: 26%;
}

#tkc-viewport[data-aspect="16:9"][data-stage-mode="linh-anh"] .la-cmd-strip {
  flex-direction: row;
  align-items: center;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-diorama-hud {
  left: 2.2%;
  right: 2.2%;
  bottom: 2.0%;
  height: 22.8%;
  grid-template-columns: 27.5% 1fr;
  align-items: end;
  pointer-events: none;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-heat-card {
  height: 100%;
  pointer-events: auto;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-rules-card {
  justify-self: end;
  width: min(100%, 33em);
  height: auto;
  min-height: 64%;
  pointer-events: auto;
}

#tkc-viewport[data-aspect="16:9"]:is([data-stage-mode="linh-anh"], [data-stage-mode="ho-cau"]) .la-scroll-banner,
#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"] .la-catch-toast,
#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"] .la-leviathan-banner {
  top: 16.5%;
  left: 63%;
  min-width: 36%;
  max-width: 52%;
}

/* ==========================================================================
   v16.1 — GIAO DIỆN HỒ CÂU SƠN THỦY 2.5D FULL-BLEED GLASSMORPHISM
   Xoá bỏ hộp tối cắt vụn · Mở thông 100% Thác Nước, Thuỷ Đình & Lòng Hồ Ngọc Bích
   ========================================================================== */

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-backdrop,
#tkc-viewport[data-stage-mode="ho-cau"] .tkc-vignette,
#tkc-viewport[data-stage-mode="ho-cau"] .tkc-incense,
#tkc-viewport[data-stage-mode="ho-cau"] .la-scene-pill {
  display: none !important;
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-fx-canvas {
  opacity: 0.25;
}

/* 1) Thanh đầu trang nổi nhẹ trong suốt trên nền trời bình minh */
#tkc-viewport[data-stage-mode="ho-cau"] .tkc-top {
  top: 0.9%;
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-brand {
  background: rgba(6, 26, 32, 0.58);
  border: 1px solid rgba(253, 224, 71, 0.38);
  padding: 0.22em 0.58em 0.22em 0.28em;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

/* 2) Dải Kinh Thư Lụa Ngọc Bích Mờ (4.8% -> 16.2%, nhìn xuyên mây núi phía sau) */
#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"]#tkc-viewport .tkc-scripture-zone {
  top: 4.8%;
  left: 2.8%;
  right: 2.8%;
  height: 11.4%;
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-scripture-card {
  padding: 0.38em 0.65em;
  gap: 0.26em;
  border-radius: 0.95em;
  background: linear-gradient(180deg, rgba(6, 28, 34, 0.64) 0%, rgba(4, 18, 24, 0.72) 100%);
  border: 1px solid rgba(253, 224, 71, 0.44);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-subtitle-scroll {
  padding: 0.28em 0.55em;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

#tkc-viewport[data-stage-mode="ho-cau"] #stage-subtitle-text {
  font-size: 0.86em;
  line-height: 1.38;
  color: rgba(248, 250, 252, 0.92);
}

/* 3) Chân dung Thuyết Thư Nhân dạng Cửa Tròn Nguyệt Môn nép gọn cạnh Thuỷ Đình (Không che Thác & Lòng Hồ!) */
#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"]#tkc-viewport .tkc-narrator-zone {
  top: 16.9%;
  right: 3.0%;
  left: auto;
  transform: none;
  width: 4.35em;
  height: 4.35em;
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-portrait-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid #fde047;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48), 0 0 16px rgba(253, 224, 71, 0.42);
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-portrait-frame::after,
#tkc-viewport[data-stage-mode="ho-cau"] .tkc-narrator-badge {
  display: none !important;
}

#tkc-viewport[data-stage-mode="ho-cau"] .tkc-eq-bars {
  bottom: 0.22em;
  height: 0.68em;
  padding: 0.08em 0.28em;
}

/* 4) Thanh Bão Cá Cộng Đồng (Gọn thanh thoát bên góc trái trên đỉnh thác) */
#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"] .la-frenzy-bar {
  top: 17.1%;
  left: 2.8%;
  width: 44%;
  padding: 0.28em 0.56em;
  border-radius: 999px;
  background: rgba(6, 26, 32, 0.68);
  border: 1px solid rgba(94, 234, 212, 0.45);
  backdrop-filter: blur(10px);
}

/* Bong bóng lời hô chỉ hiện mềm mại khi có sự kiện (.is-pop), bình thường tự ẩn trả 100% cảnh Sơn Thủy! */
#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"] .la-callout-bubble {
  top: 21.6%;
  left: 2.8%;
  right: 18.5%;
  min-height: 0;
  max-height: none;
  padding: 0.34em 0.68em;
  border-radius: 999px;
  background: rgba(6, 26, 32, 0.78);
  border: 1px solid rgba(253, 224, 71, 0.58);
  color: #f8fafc;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"] .la-callout-bubble::before {
  display: none;
}

#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"] .la-callout-bubble.is-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"] .la-callout-bubble b {
  color: #fde047;
}

/* 5) Thẻ Chiến Tích & Banner Thủy Quái có hình vẽ Cá Mỹ Thuật sắc nét */
.la-catch-fish-art {
  width: 2.65em;
  height: 2.65em;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.la-lev-fish-art {
  width: 3.4em;
  height: 3.4em;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(253, 224, 71, 0.72));
}

/* 6) HUD Chân Trang Kính Ngọc Mờ (Không che cầu đá tiền cảnh, nút bấm Pill sang trọng) */
#tkc-viewport[data-aspect="9:16"][data-stage-mode="ho-cau"] .la-diorama-hud {
  height: 11.2%;
  bottom: 0.9%;
  grid-template-columns: 36% 1fr;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-heat-card,
#tkc-viewport[data-stage-mode="ho-cau"] .la-pond-rules-card {
  background: linear-gradient(180deg, rgba(6, 24, 30, 0.72) 0%, rgba(4, 15, 20, 0.84) 100%);
  border: 1px solid rgba(94, 234, 212, 0.30);
  backdrop-filter: blur(14px);
}

.la-heat-av {
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -0.22em;
  margin-right: 0.25em;
  border: 1px solid rgba(253, 224, 71, 0.65);
  background: rgba(15, 23, 42, 0.6);
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-pond-rules-card .la-rule-chip {
  background: rgba(15, 58, 68, 0.62);
  border: 1px solid rgba(125, 211, 252, 0.34);
  padding: 0.16em 0.44em;
  border-radius: 999px;
  color: #f0fdfa;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-pond-rules-card .la-rule-chip:hover {
  background: rgba(245, 158, 11, 0.32);
  border-color: rgba(253, 224, 71, 0.82);
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-pond-rules-card .la-rule-chip.is-on {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.75), rgba(5, 150, 105, 0.85));
  border-color: #6ee7b7;
  color: #ffffff;
}

#tkc-viewport[data-stage-mode="ho-cau"] .la-pond-rules-card .la-rule-dot {
  display: none;
}

/* Khung Ngang 16:9 của Hồ Câu Sơn Thủy: cột Kinh Thư mảnh kính mờ góc trên trái, mở trọn mặt hồ rộng */
#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"]#tkc-viewport .tkc-narrator-zone {
  top: 9.2%;
  left: 2.2%;
  width: 4.2em;
  height: 4.2em;
}

#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"]#tkc-viewport .tkc-scripture-zone {
  top: 9.2%;
  left: 8.2%;
  width: 34%;
  height: 22%;
}

#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"] .la-callout-bubble {
  top: 32.5%;
  left: 2.2%;
  width: 38%;
  border-radius: 999px;
  background: rgba(6, 26, 32, 0.78);
  border: 1px solid rgba(253, 224, 71, 0.55);
  color: #f8fafc;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#tkc-viewport[data-aspect="16:9"][data-stage-mode="ho-cau"] .la-callout-bubble.is-pop {
  opacity: 1;
}

/* v26.0 Unified Jade-Bronze / Moonlit-Pavilion Diorama Stage Chrome */
#tkc-viewport[data-stage-mode="linh-anh"] .la-scroll-paper,
#tkc-viewport[data-stage-mode="ho-cau"] .la-scroll-paper {
  box-shadow: inset 0 0 0 1px rgba(217, 184, 101, 0.42), 0 10px 26px rgba(0, 0, 0, 0.48);
}
#tkc-viewport[data-stage-mode="linh-anh"] .la-diorama-hud,
#tkc-viewport[data-stage-mode="ho-cau"] .la-diorama-hud {
  border-top: 1px solid rgba(217, 184, 101, 0.34);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65);
}
#tkc-viewport[data-stage-mode="linh-anh"] .la-callout-bubble {
  border-color: rgba(244, 216, 146, 0.62);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 248, 220, 0.2);
}




