:root {
  --bg-deep: #132227;
  --pond-dark: #152b32;
  --pond-water-outer: #254852;
  --pond-water-mid: #2c5763;
  --pond-water-inner: #234954;
  --bank-outer: #745b3e;
  --bank-mid: #53402a;
  --bank-inner: #2c3837;
  --wood-light: #b6895b;
  --wood-mid: #986d42;
  --wood-dark: #6b4928;
  --gold-bright: #ffd56b;
  --teal-bright: #7ee8fa;
  --ivory: #f3f7f8;
  --muted-text: #9db4bc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0c171b;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ivory);
}

.app-workspace {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  gap: 24px;
  padding: 12px;
}

body.obs-mode {
  background: transparent;
}
body.obs-mode .app-workspace {
  padding: 0;
  gap: 0;
}
body.obs-mode .quick-dock {
  display: none !important;
}

/* ==========================================================================
   KHUNG 9:16 CHUẨN TIKTOK LIVE (1080 x 1920 LOGICAL)
   ========================================================================== */
.stage-wrapper {
  position: relative;
  height: 96vh;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(126, 232, 250, 0.28);
  background: var(--bg-deep);
  contain: layout paint style;
}

body.obs-mode .stage-wrapper {
  height: 100vh;
  border-radius: 0;
  border: none;
}

.stage-9x16 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 1920px;
  transform-origin: top left;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #1c3138 0%, #142429 65%, #0f1c20 100%);
  contain: strict;
}

/* ==========================================================================
   1. THẢM CỎ ĐÊM & ĐÈN ĐUỐC BỜ HỒ TOP-DOWN
   ========================================================================== */
.pond-night-ground {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 200, 110, 0.04) 0%, transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(255, 200, 110, 0.04) 0%, transparent 18%),
    radial-gradient(circle at 18% 76%, rgba(255, 200, 110, 0.04) 0%, transparent 18%),
    radial-gradient(circle at 82% 76%, rgba(255, 200, 110, 0.04) 0%, transparent 18%);
}

/* Đèn đuốc bờ hồ (6 cây đuốc tỏa sáng dịu giống mẫu) */
.shore-torch {
  position: absolute;
  width: 140px;
  height: 160px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(255, 214, 130, 0.26) 0%, rgba(255, 190, 95, 0.09) 42%, transparent 72%);
}
.shore-torch i {
  display: block;
  width: 18px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe7a3 0%, #d9a55b 100%);
  box-shadow: 0 0 18px rgba(255, 216, 125, 0.75);
}
.shore-torch span {
  display: block;
  width: 6px;
  height: 36px;
  background: #5b442b;
  border-radius: 3px;
  margin-top: -2px;
}

.torch-tl { left: 48px;  top: 575px; }
.torch-tr { left: 1030px; top: 575px; }
.torch-ml { left: 48px;  top: 1495px; }
.torch-mr { left: 1030px; top: 1495px; }
.torch-bl { left: 248px; top: 1850px; }
.torch-br { left: 822px; top: 1850px; }

.shore-rock {
  position: absolute;
  left: 32px;
  bottom: 138px;
  width: 58px;
  height: 34px;
  border-radius: 50%;
  background: rgba(160, 155, 135, 0.42);
}

.shore-bush {
  position: absolute;
  right: -25px;
  bottom: -20px;
  width: 210px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 52, 58, 0.85) 0%, rgba(20, 38, 44, 0.95) 100%);
}

.shore-grass {
  position: absolute;
  right: 85px;
  top: 235px;
  width: 68px;
  height: 36px;
  border-top: 4px solid rgba(215, 230, 220, 0.55);
  border-radius: 50% 50% 0 0;
}

/* ==========================================================================
   2. HEADER TRUNG TÂM: MỘT CHÚT BÌNH YÊN • HỒ CÂU CHILL
   ========================================================================== */
.chill-header-center {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  text-align: center;
  pointer-events: none;
}

.chill-sub-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: rgba(215, 232, 236, 0.72);
  margin-bottom: 4px;
}

.chill-main-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: #f4f7f5;
  line-height: 1.05;
}
.chill-main-title .wave-glyph {
  color: #7cd4c8;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 32px;
  font-weight: 800;
}
.chill-main-title em {
  font-style: italic;
  font-weight: 600;
  color: #ffffff;
}

.chill-session-row {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(12, 25, 30, 0.78);
  border: 1px solid rgba(126, 232, 250, 0.22);
  font-size: 13.5px;
  color: #cfe3e8;
}
.chill-session-row strong {
  color: var(--gold-bright);
}
.dot-sep {
  opacity: 0.45;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5252;
  display: inline-block;
}
.live-dot.connected {
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

/* ==========================================================================
   3. BẢNG GÓC TRÊN TRÁI: HỒ CÂU CHILL LIVE (MỒI THƯỜNG / MỒI TỐT / MỒI VIP)
   ========================================================================== */
.chill-bait-card {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 222px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: rgba(14, 24, 29, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  z-index: 26;
}

.bait-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bait-wave-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(82, 183, 170, 0.16);
  color: #6fd6c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.bait-head-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.bait-head-text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8fa9b2;
}
.bait-head-text strong {
  font-size: 19px;
  font-weight: 800;
  color: #f3f7f8;
}

.bait-tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bait-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bait-tier-row:hover {
  background: rgba(126, 232, 250, 0.12);
  transform: translateX(2px);
}

.bait-tier-name {
  font-size: 15px;
  font-weight: 700;
  color: #e9f1f3;
}

.bait-tier-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
}
.bait-eq {
  font-size: 14px;
  font-weight: 700;
  color: #8ca5ae;
}

.bait-card-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  gap: 6px;
}

.mini-action-chip {
  flex: 1;
  cursor: pointer;
  border: 1px solid rgba(126, 232, 250, 0.25);
  background: rgba(25, 52, 60, 0.78);
  color: #d7f3f7;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  text-align: center;
}
.mini-action-chip:hover {
  border-color: var(--gold-bright);
  color: #fff;
}

/* ==========================================================================
   4. BẢNG GÓC TRÊN PHẢI: TOP 10 CẦN THỦ
   ========================================================================== */
.chill-top10-card {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 212px;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(14, 24, 29, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  z-index: 26;
}

.top10-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 800;
  color: #f5c85b;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top10-list {
  display: flex;
  flex-direction: column;
  gap: 5.5px;
}

.top10-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  line-height: 1.25;
}
.top10-rank {
  width: 22px;
  font-weight: 700;
  color: #7c96a0;
  flex-shrink: 0;
}
.top10-row.occupied .top10-rank {
  color: #9ecfd9;
}
.top10-name {
  flex: 1;
  font-weight: 600;
  color: #7b939c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 6px;
}
.top10-row.occupied .top10-name {
  color: #eef6f8;
  font-weight: 700;
}
.top10-score {
  font-weight: 800;
  color: #7b939c;
  flex-shrink: 0;
}
.top10-row.occupied .top10-score {
  color: #f6c95d;
}

/* ==========================================================================
   5. HỒ NƯỚC HÌNH ELIP TRUNG TÂM (TOP-DOWN OVAL POND)
   Tâm hồ: (540, 985)
   ========================================================================== */
.oval-pond-outer {
  position: absolute;
  left: 540px;
  top: 985px;
  width: 684px;
  height: 1326px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #223539;
  padding: 15px;
  box-shadow:
    0 0 0 10px rgba(18, 33, 38, 0.85),
    0 24px 60px rgba(0, 0, 0, 0.65);
  z-index: 4;
  cursor: pointer;
}

.oval-pond-bank {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #7c6243 0%, #685035 50%, #59432b 100%);
  padding: 26px;
  box-shadow:
    inset 0 4px 12px rgba(255, 230, 185, 0.22),
    inset 0 -6px 16px rgba(0, 0, 0, 0.55);
}

.oval-pond-water {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 48%,
    #2e5d69 0%,
    #27505b 58%,
    #1f414b 88%,
    #18343d 100%
  );
  box-shadow:
    inset 0 0 45px rgba(8, 22, 28, 0.78),
    0 0 0 6px #3a2d1d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oval-pond-inner-ring {
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 2px solid rgba(155, 220, 230, 0.16);
  pointer-events: none;
}

.oval-pond-deep-ring {
  position: absolute;
  inset: 95px;
  border-radius: 50%;
  border: 1.5px solid rgba(155, 220, 230, 0.08);
  background: radial-gradient(ellipse at 50% 50%, rgba(22, 48, 56, 0.32) 0%, transparent 75%);
  pointer-events: none;
}

/* Lá sen / bèo trôi trên mặt hồ */
.lily-pad {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(168, 204, 158, 0.65), rgba(112, 158, 118, 0.52));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
.lily-pad.pad-1 {
  width: 58px;
  height: 36px;
  right: 82px;
  top: 295px;
}
.lily-pad.pad-2 {
  width: 48px;
  height: 32px;
  left: 64px;
  bottom: 350px;
}
.lily-pad.pad-3 {
  width: 42px;
  height: 28px;
  left: 86px;
  bottom: 312px;
}

.water-curves-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Nội dung chào mừng chính giữa mặt hồ */
.pond-center-welcome {
  position: relative;
  z-index: 6;
  text-align: center;
  max-width: 540px;
  padding: 0 24px;
  pointer-events: none;
}

.chill-lake-pill {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(230, 242, 245, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.welcome-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.28;
  color: #f3e7c9;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}

.welcome-slot-cta {
  font-size: 22px;
  font-weight: 500;
  color: #dbe8ec;
  margin-bottom: 14px;
}
.welcome-slot-cta strong {
  color: #ffd166;
  font-weight: 800;
}

.welcome-sub-note {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(210, 230, 235, 0.68);
  margin-bottom: 18px;
}

.pond-live-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(11, 26, 32, 0.76);
  border: 1px solid rgba(126, 232, 250, 0.28);
  font-size: 14px;
  color: #d8f3f8;
  max-width: 480px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pond-live-toast strong {
  color: #ffd56b;
}

/* ==========================================================================
   6. LỚP SVG CẦN CÂU TỪ 35 GHẾ RA HỒ (GIỐNG HỆT ẢNH MẪU CHILL LAKE)
   ========================================================================== */
.fishing-lines-svg {
  position: absolute;
  inset: 0;
  width: 1080px;
  height: 1920px;
  z-index: 16;
  pointer-events: none;
}

.rod-shaft-line {
  stroke: #e9d08d;
  stroke-width: 2.8;
  stroke-linecap: round;
  opacity: 0.92;
}

.rod-water-tip {
  fill: rgba(233, 208, 141, 0.95);
}

/* ==========================================================================
   7. VÒNG 35 GHẾ CÂU GỖ XUNG QUANH BỜ HỒ (01 -> 35)
   ========================================================================== */
.oval-seats-ring {
  position: absolute;
  inset: 0;
  width: 1080px;
  height: 1920px;
  z-index: 15;
  pointer-events: none;
}

.pond-seat-node {
  position: absolute;
  width: 68px;
  height: 70px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
}

/* Bệ ghế gỗ 3 thanh ngang giống hệt mẫu */
.wooden-dock-box {
  position: relative;
  width: 58px;
  height: 54px;
  margin: 0 auto;
  border-radius: 8px;
  background: linear-gradient(180deg, #b5895a 0%, #966b3f 52%, #7d5630 100%);
  border: 2px solid #5a3c1e;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 232, 198, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.wooden-dock-box::before,
.wooden-dock-box::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  height: 2px;
  background: rgba(68, 43, 18, 0.55);
}
.wooden-dock-box::before { top: 17px; }
.wooden-dock-box::after  { bottom: 16px; }

.pond-seat-node:hover .wooden-dock-box {
  transform: scale(1.08);
  border-color: #ffd56b;
}

.pond-seat-node.occupied .wooden-dock-box {
  border-color: #eab661;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.35), 0 6px 12px rgba(0, 0, 0, 0.5);
}

.pond-seat-node.just-caught .wooden-dock-box {
  animation: seatCatchPulse 0.6s ease-in-out 3;
}
@keyframes seatCatchPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); border-color: #7ee8fa; }
}

/* Chữ "Vào câu" trên ghế trống */
.dock-enter-pill {
  position: relative;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 240, 215, 0.22);
  color: #f9ebd2;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Số thứ tự ghế (01..35) + trạng thái còn lượt */
.seat-meta-row {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}

.seat-num-badge {
  font-size: 13.5px;
  font-weight: 800;
  color: #d6e4e8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.seat-turns-pill {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(16, 28, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d9e8ec;
  font-size: 11px;
  font-weight: 700;
}

/* Nhân vật Chibi ngồi ngay ngắn trên ghế gỗ */
.seat-chibi-wrap {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -64%);
  width: 68px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 6;
}

.seat-user-pill {
  padding: 2px 8px;
  border-radius: 7px;
  background: rgba(12, 24, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 1px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.chibi-svg-avatar {
  width: 54px;
  height: 58px;
  overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

/* ==========================================================================
   8. BONG BÓNG KẾT QUẢ BAY LÊN & CANVAS HIỆU ỨNG
   ========================================================================== */
.sky-lanterns-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 22;
  overflow: hidden;
}

.sky-lantern {
  position: absolute;
  bottom: 360px;
  width: 250px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(14, 32, 38, 0.94);
  border: 1.5px solid var(--gold-bright);
  color: var(--ivory);
  will-change: transform, opacity;
  animation: floatLanternUp 8.5s linear forwards;
}
.sky-lantern::before {
  content: '🎣 TIN HỒ CÂU';
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.sky-lantern-user {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.sky-lantern-wish {
  font-size: 13.5px;
  line-height: 1.3;
  color: #bfe6ee;
  margin-top: 2px;
}

@keyframes floatLanternUp {
  0% { transform: translate3d(0, 50px, 0) scale(0.85); opacity: 0; }
  12% { transform: translate3d(0, 0px, 0) scale(1); opacity: 1; }
  86% { opacity: 0.95; }
  100% { transform: translate3d(0, -1100px, 0) scale(0.92); opacity: 0; }
}

#pondCanvas {
  position: absolute;
  inset: 0;
  width: 1080px;
  height: 1920px;
  pointer-events: none;
  z-index: 24;
}

/* ==========================================================================
   10. THANH TRẠNG THÁI & NÚT ĐIỀU KHIỂN DƯỚI ĐÁY
   ========================================================================== */
.chill-bottom-bar {
  position: absolute;
  bottom: 14px;
  left: 22px;
  right: 22px;
  z-index: 28;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.bottom-left-status,
.bottom-right-note {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(180, 202, 208, 0.72);
}

.bottom-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.seat-legend-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b7cdd4;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.empty {
  background: #8b9fa6;
}
.legend-dot.occupied {
  background: #f5b942;
  margin-left: 6px;
}

.bottom-action-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chill-pill-btn {
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(14, 25, 31, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4f0f3;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chill-pill-btn:hover {
  border-color: var(--gold-bright);
  background: rgba(24, 44, 52, 0.95);
}

/* ==========================================================================
   MODAL KẾT QUẢ CÂN CÁ & BANNER NỔ HŨ
   ========================================================================== */
.fortune-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 22, 0.78);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.fortune-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.fortune-scroll-card {
  background: linear-gradient(160deg, #16333b, #1f4852, #183840);
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 680px;
  border: 2.5px solid var(--gold-bright);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
  text-align: center;
}
.fortune-badge {
  display: inline-block;
  background: rgba(255, 213, 107, 0.16);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 20px;
  padding: 5px 22px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.fortune-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.fortune-devotee {
  font-size: 20px;
  font-weight: 700;
  color: #a8dce6;
  margin-bottom: 16px;
}
.fortune-poem {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1.5px dashed rgba(255, 213, 107, 0.35);
  border-bottom: 1.5px dashed rgba(255, 213, 107, 0.35);
  padding: 14px 20px;
  margin-bottom: 14px;
}
.fortune-meaning {
  font-size: 19px;
  line-height: 1.45;
  color: #d6eef2;
  font-weight: 600;
}

.grand-ceremony-banner {
  position: absolute;
  top: 820px;
  left: 50%;
  transform: translate3d(-50%, 0, 0) scale(0.9);
  width: 840px;
  padding: 20px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 46, 54, 0.96), rgba(14, 31, 37, 0.96));
  border: 3px solid var(--gold-bright);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  text-align: center;
  z-index: 48;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.grand-ceremony-banner.visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}
.grand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-bright);
}
.grand-sub {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 6px;
}

/* ==========================================================================
   BẢNG ĐIỀU KHIỂN NHANH BÊN CẠNH MÀN HÌNH LIVE (QUICK RPC DOCK)
   ========================================================================== */
.quick-dock {
  width: 390px;
  max-height: 96vh;
  overflow-y: auto;
  background: #101e23;
  border: 1.5px solid rgba(126, 232, 250, 0.25);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}
.dock-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-bright);
}
.dock-link {
  font-size: 13px;
  color: var(--teal-bright);
  text-decoration: none;
  border: 1px solid rgba(126, 232, 250, 0.35);
  padding: 5px 10px;
  border-radius: 8px;
}
.dock-section {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9dc5cf;
}
.dock-input-row {
  display: flex;
  gap: 8px;
}
.dock-input {
  flex: 1;
  background: #0b161a;
  border: 1px solid rgba(126, 232, 250, 0.28);
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--ivory);
  font-size: 14px;
  outline: none;
}
.dock-btn {
  cursor: pointer;
  border: 1px solid rgba(126, 232, 250, 0.32);
  border-radius: 10px;
  padding: 9px 13px;
  background: linear-gradient(180deg, #1b3842 0%, #12262d 100%);
  color: #dff5f9;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dock-btn.gold {
  background: linear-gradient(135deg, #c9933b, #e3b55a);
  border-color: #ffd56b;
  color: #162226;
  font-weight: 800;
}
.dock-btn.active-toggle {
  background: linear-gradient(180deg, #1b7a46 0%, #104f2d 100%);
  border-color: #58e698;
  color: #eafff3;
}
.dock-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.volume-control-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.volume-label-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ivory);
}
.volume-label-line strong {
  color: var(--gold-bright);
}
.volume-slider {
  width: 100%;
  accent-color: #e3b55a;
  cursor: pointer;
  height: 6px;
}
.event-feed {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.event-feed-item {
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold-bright);
  color: #e0f2f1;
}

.session-timer-pill {
  display: inline-block;
  background: rgba(255, 213, 107, 0.16);
  color: var(--gold-bright);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}
.session-timer-pill.warning {
  background: rgba(244, 67, 54, 0.85);
  color: #fff;
}
