/* MIMO Group — sửa lỗi bố cục giao diện (nạp SAU style.css). Không phụ thuộc g.js; giữ được khi đồng bộ style.css gốc. */

/* ---------- Thanh nhân vật (mọi màn hình) ---------- */
#heroName {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto
}

#powerTag,
.topmid .row .gold {
  flex: none;
  white-space: nowrap
}

.topmid .row {
  min-width: 0
}

#stageLbl {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto
}

@media (max-width:420px) {
  #powerTag {
    font-size: 0
  }

  #powerTag::before {
    content: "LC ";
    font-size: 10px
  }

  #powerTag b {
    font-size: 11px
  }

  .topmid .row {
    gap: 6px
  }
}

/* ---------- Điện thoại / máy tính bảng ---------- */
/* chữ "Võ Lâm Idle · © MIMO Group" đè tên chiêu chính ở góc trái: chuyển xuống đáy sân đấu */
body:not(.pc) #brandMark {
  top: auto;
  bottom: 4px;
  left: 8px;
  transform: none;
  font-size: 9.5px
}

/* băng chạy Vinh danh không đè huy hiệu 18+ */
body:not(.pc) #dnFly {
  top: 70px
}

/* ---------- Máy tính (body.pc) ---------- */
body.pc {
  --chatw: min(440px, 32vw);
  --menuw: 368px
}

body.pc #top {
  width: min(560px, calc(100vw - 300px))
}

body.pc #pcChat {
  width: var(--chatw)
}

/* nút "Chuột / Joystick" bị khung chat che: đặt ngay trên khung chat */
body.pc #inBtn {
  bottom: calc(clamp(190px, 30vh, 320px) + 14px) !important
}

body.pc:has(#pcChat.min) #inBtn {
  bottom: 52px !important
}

/* thanh phím tắt nằm giữa khoảng trống giữa khung chat và menu, không đè lên hai bên */
@media (max-width:1500px) {

  body.pc #pad,
  body.pc #pcRot {
    left: calc((var(--chatw) + 16px + 100vw - var(--menuw)) / 2)
  }
}

/* màn hẹp: menu 2 hàng để chừa chỗ cho thanh phím tắt */
@media (max-width:1180px) {
  body.pc {
    --menuw: 200px
  }

  body.pc #pcMenu {
    flex-wrap: wrap;
    width: 186px;
    justify-content: flex-end
  }
}

/* màn rất hẹp: thu nhỏ ô phím tắt */
@media (max-width:1000px) {
  body.pc #pad {
    gap: 3px;
    padding: 5px 6px
  }

  body.pc #pad .pbtn {
    width: 40px;
    height: 40px
  }

  body.pc #pcRot {
    bottom: 66px
  }
}

/* =====================================================================
 * GIAO DIỆN (10.7.3: chuyển sang Kiếm Hiệp Cổ Phong — biến ở :root; thành phần ở cuối file)
 * ===================================================================== */
:root {
  /* 10.7.3 CỔ PHONG: biến giao diện trỏ về bảng màu ở style.css (:root) */
  --font: "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", "Times New Roman", Georgia, serif;
  --m-card: linear-gradient(180deg, var(--wood3), var(--wood2) 55%, var(--wood));
  --m-surface: var(--wood2);
  --m-surface2: var(--wood3);
  --m-input: #150f09;
  --m-line: var(--bronze3);
  --m-line2: var(--bronze2);
  --m-gold: var(--gold);
  --m-gold2: var(--bronze2);
  --m-text: var(--text);
  --m-dim: var(--dim);
  --m-red: var(--plum);
  --m-r: 2px;
  --m-r2: 3px;
}

html,
body {
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased
}

/* ---- Nút ---- */
.btn,
#t-more .btn {
  background: var(--m-surface2);
  background-image: none;
  border: 1px solid var(--m-line2);
  border-radius: var(--m-r);
  color: var(--m-text);
  font-weight: 600;
  letter-spacing: .1px;
  text-shadow: none;
  box-shadow: none;
  transition: background-color .15s, border-color .15s, color .15s
}

.btn:hover:not([disabled]),
#t-more .btn:hover:not([disabled]) {
  background: #3a2a1c;
  background-image: none;
  border-color: var(--m-gold2)
}

.btn:active:not([disabled]) {
  background: #291d14;
  transform: translateY(1px)
}

.btn.on,
.btn.push.on {
  background: #e6c67a1a;
  border-color: var(--m-gold);
  color: var(--m-gold);
  box-shadow: none
}

.btn.red,
#t-more .btn.red {
  background: #3a1a14;
  background-image: none;
  border-color: #8a3a2c;
  color: #e0907b
}

.btn.red:hover:not([disabled]) {
  background: #4a2119;
  border-color: var(--m-red)
}

.btn[disabled],
.btn[disabled]:hover {
  background: var(--m-surface);
  background-image: none;
  border-color: var(--m-line);
  color: #9aa39b;
  opacity: .75;
  cursor: default
}

.btn.push {
  white-space: nowrap
}

.btn.push {
  min-width: 0;
  padding: 6px 12px
}

/* ---- Cửa sổ ---- */
.mbox {
  border: 1px solid #5a4330;
  border-image: none;
  border-radius: var(--m-r2);
  background: var(--m-card);
  background-clip: border-box;
  box-shadow: 0 24px 64px #000d, inset 0 1px 0 #f5eddb0d;
  padding: 16px
}

.mx,
.mbox:has(.cwin) .mx {
  width: 28px;
  height: 28px;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  border: 1px solid var(--m-line2);
  background: var(--m-surface);
  color: var(--m-dim);
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  box-shadow: none;
  transition: .15s
}

.mx:hover,
.mbox:has(.cwin) .mx:hover {
  color: var(--m-text);
  border-color: var(--m-gold2);
  background: #3a2a1c
}

.cwt {
  font-weight: 600;
  letter-spacing: .3px
}

.cwt::before {
  background: linear-gradient(90deg, transparent, #a8864a99)
}

.cwt::after {
  background: linear-gradient(90deg, #a8864a99, transparent)
}

#modal {
  background: #040302b3;
  backdrop-filter: blur(2px)
}

/* ---- Thẻ, khối ---- */
.card,
#t-more .card {
  background: #f5eddb05;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r)
}

h3 {
  font-weight: 600;
  letter-spacing: .2px
}

/* ---- Ô nhập, chọn ---- */
select,
textarea,
input[type=text],
input[type=number],
input[type=password],
input[type=search],
input:not([type]),
#t-more input[type=text],
#t-more select,
#t-more textarea,
.ivtop select,
.stpanel select,
.pcmap select {
  background: var(--m-input);
  color: var(--m-text);
  border: 1px solid var(--m-line2);
  border-radius: 6px;
  font-family: var(--font)
}

input[type=number],
input[type=text],
input:not([type]) {
  padding: 6px 9px
}

select:focus,
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--m-gold2)
}

input[type=checkbox] {
  accent-color: var(--m-gold)
}

/* ---- Chip nổi trên sân đấu ---- */
.chip {
  border-radius: 999px;
  border: 1px solid #74563e;
  background: #130e09cc;
  color: var(--m-gold);
  backdrop-filter: blur(3px)
}

.chip.on {
  background: #e6c67a22;
  border-color: var(--m-gold);
  box-shadow: none
}

/* ---- Ô tính năng (Giang hồ) ---- */
.feat {
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: 10px;
  transition: border-color .15s, background-color .15s
}

.feat:hover {
  border-color: var(--m-gold2);
  background: #2d2016
}

.feat span {
  color: #d9d3c2
}

/* ---- Thanh thẻ dưới (điện thoại) ---- */
#tabs {
  background: #18110b;
  border-top: 1px solid var(--m-line)
}

#tabs button {
  border-radius: 10px
}

#tabs button.on {
  background: #e6c67a1a;
  border-color: #e6c67a66;
  color: var(--m-gold);
  box-shadow: none;
  text-shadow: none
}

/* ---- Chat + menu PC ---- */
body.pc #pcChat {
  border: 1px solid var(--m-line2);
  border-radius: 10px;
  background: #0d0906d9;
  overflow: hidden
}

.pctabs button {
  border-radius: 6px;
  border-color: var(--m-line);
  background: #1d150e
}

.pctabs button.on {
  background: #e6c67a1a;
  border-color: var(--m-gold2);
  color: var(--m-gold)
}

body.pc #pad,
body.pc #pcMenu,
body.pc #pcRot {
  border: 1px solid var(--m-line2);
  border-radius: 12px;
  background: #120d08e6;
  box-shadow: 0 6px 18px #0009
}

body.pc #pcRot {
  border-radius: 8px
}

#pcMenu button {
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: var(--m-surface)
}

#pcMenu button:hover {
  border-color: var(--m-gold2);
  background: #312318
}

#pcMenu button.on {
  border-color: var(--m-gold);
  box-shadow: none;
  background: #e6c67a1a
}

body.pc #top {
  border-color: #5a4330;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(#231910ee, #140e09f2)
}

/* ---- Thanh cuộn ---- */
* {
  scrollbar-width: thin;
  scrollbar-color: #604733 transparent
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px
}

::-webkit-scrollbar-thumb {
  background: #604733;
  border-radius: 8px
}

::-webkit-scrollbar-track {
  background: transparent
}

/* nút X không đè tiêu đề có số liệu bên phải (vd "Phúc Duyên 0", "811 lượng") */
#mBody>h3:first-child,
#mBody>div:first-child>h3:first-child {
  padding-right: 36px
}

/* nút nhỏ không xuống dòng giữa chữ */
.btn[id^=sk],
.skfoot .btn,
.cbtns .btn,
.cpow .btn,
.ivbtns .btn,
.dgrow .btn,
.gdrow .btn {
  white-space: nowrap
}

/* Hành trang: giữ kích thước ô như cũ (khung mới mỏng hơn khung đá) */
.mbox:has(.invwin) {
  width: min(500px, 95%);
  max-height: 96%
}

/* màn tạo nhân vật: ô chọn giới tính cạnh ô tên */
body #slotScr .npbar label.npsex {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #aba08f;
  font-size: 13px;
  white-space: nowrap
}

body #slotScr .npbar label.npsex select {
  height: 36px;
  min-width: 84px;
  width: auto;
  padding: 0 10px;
  border: 1px solid #74563e;
  border-radius: 6px;
  background: #130e09;
  color: #e9e2d0;
  font: inherit;
  font-size: 14px
}

body #slotScr .npbar label.npsex select:disabled {
  opacity: .6
}

/* nhãn máy chủ cạnh tên nhân vật: màn hẹp không đủ chỗ thì ẩn */
@media (max-width:480px) {
  body.srvx #heroName::after {
    display: none !important
  }
}

/* ---------- Kênh bản đồ (người chơi thấy nhau) ---------- */
#chanTag {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  z-index: 5;
  padding: 2px 10px;
  border: 1px solid #74563e;
  border-radius: 999px;
  background: #130e09cc;
  color: #cfe3d6;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap
}

#chanTag b {
  color: var(--m-gold, #e6c67a);
  font-weight: 600;
  margin-left: 4px
}

#chanTag[hidden] {
  display: none
}

body.pc #chanTag {
  top: 140px
}

#chanPick {
  position: absolute;
  left: 50%;
  top: 126px;
  transform: translateX(-50%);
  z-index: 10;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 10px;
  border: 1px solid #604733;
  border-radius: 12px;
  background: linear-gradient(160deg, #2a1e14, #19120b);
  box-shadow: 0 12px 30px #000c
}

body.pc #chanPick {
  top: 166px
}

#chanPick .cpcap {
  font-size: 12px;
  color: #aba08f;
  text-align: center
}

#chanPick button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border: 1px solid #443223;
  border-radius: 8px;
  background: #221810;
  color: #ebe5d4;
  font-size: 13px;
  cursor: pointer
}

#chanPick button small {
  color: #aba08f
}

#chanPick button.on {
  border-color: #e6c67a;
  color: #e6c67a
}

#chanPick button:disabled {
  opacity: .45;
  cursor: default
}

#chanPick .cpshow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #443223;
  font-size: 12.5px;
  color: #cfe3d6;
  cursor: pointer
}

/* thẻ thông tin người chơi khác */
#rpCard {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  z-index: 9;
  width: min(280px, 86%);
  padding: 14px 16px 12px;
  border: 1px solid #604733;
  border-radius: 12px;
  background: linear-gradient(160deg, #2a1e14, #19120b);
  box-shadow: 0 16px 40px #000d;
  color: #ebe5d4
}

#rpCard[hidden] {
  display: none
}

#rpCard .rpx {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #604733;
  background: #221810;
  color: #aba08f;
  cursor: pointer
}

#rpCard .rpn {
  font-size: 16px;
  font-weight: 700;
  color: #688ab1;
  padding-right: 28px
}

#rpCard .rpt {
  font-size: 12px;
  color: #e0c67b;
  margin-top: 2px
}

#rpCard .rpm {
  font-size: 12.5px;
  color: #cfd6cc;
  margin-top: 4px
}

#rpCard .rpm b {
  color: #e6c67a
}

#rpCard ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid #443223;
  display: grid;
  gap: 4px;
  font-size: 12.5px
}

#rpCard li {
  display: flex;
  gap: 8px
}

#rpCard li span {
  min-width: 52px;
  color: #aba08f
}

#rpCard .rpb {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

#rpCard .rpb button {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #604733;
  border-radius: 8px;
  background: #2c1f15;
  color: #ebe5d4;
  font-size: 12.5px
}

#rpCard .rpb button:disabled {
  opacity: .5
}

/* cửa sổ thông tin người chơi khác */
.mbox:has(.rpwin) {
  width: min(100%, 420px)
}

.rpwin .rphead {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 4px 0 12px
}

.rpwin #rpAv {
  flex: none;
  width: 132px;
  height: 168px;
  border: 1px solid #443223;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 70%, #3a2a1c, #120d09);
  image-rendering: pixelated
}

.rpwin .rpinfo {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #cfd6cc;
  min-width: 0
}

.rpwin .rpn {
  font-size: 17px;
  color: #688ab1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.rpwin .rpt {
  font-size: 12px;
  color: #e0c67b
}

.rpwin .rpinfo b {
  color: #e6c67a
}

.rpwin .rpdoll {
  margin: 0 auto
}

.rpwin .rphint {
  text-align: center;
  margin: 8px 0 4px
}

.rpwin .btnrow {
  justify-content: center
}

.mbox:has(.rpitem) {
  width: min(100%, 420px)
}

/* ---- tỷ thí ---- */
.mbox:has(.dwin) {
  width: min(100%, 400px)
}

.dwin p {
  margin: 8px 0;
  line-height: 1.5
}

.dwin .fld {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 6px
}

.dwin .fld input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(0, 0, 0, .35);
  color: inherit;
  font: inherit
}

.dquick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0
}

.dquick .btn {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 0
}

.dwin .dgold {
  color: #d6c278
}

.dwin .bad {
  color: #e0867b
}

.dwin .ok {
  color: #7ebea0
}

.dmoney {
  font-size: 22px;
  font-weight: 700;
  text-align: center
}

#duelBar {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(12, 16, 14, .72);
  border: 1px solid rgba(255, 206, 90, .3);
  pointer-events: none;
  font-size: 11px;
  color: #e9e4d6;
  white-space: nowrap
}

#duelBar .dside {
  display: flex;
  align-items: center;
  gap: 5px
}

#duelBar .dside span {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600
}

#duelBar .dside.me span {
  color: #688ab1
}

#duelBar .dside i {
  display: block;
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden
}

#duelBar .dside em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d9412e, #dd8a6c);
  transition: width .2s
}

#duelBar .dside small {
  opacity: .75;
  min-width: 28px
}

#duelBar .dside:last-child {
  flex-direction: row-reverse
}

#duelBar .dmid {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px
}

#duelBar .dmid small {
  color: #d6c278
}

#duelBar .dmid .ok {
  color: #7ebea0
}

#duelBar .dmid .bad {
  color: #e0867b
}

#duelBar .dcd {
  font-size: 15px;
  color: #ddc16c
}

@media (max-width:600px) {
  #duelBar {
    top: 62px;
    gap: 5px;
    padding: 3px 7px
  }

  #duelBar .dside i {
    width: 46px
  }

  #duelBar .dside span {
    max-width: 60px
  }

  #duelBar .dmid small {
    display: none
  }
}

#duelAsk {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  z-index: 12;
  width: min(92%, 340px);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 16, 14, .92);
  border: 1px solid rgba(255, 206, 90, .45);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
  font-size: 13px;
  color: #e9e4d6
}

#duelAsk .dab {
  margin: 4px 0 2px;
  font-size: 12px;
  opacity: .9
}

#duelAsk .dgold {
  color: #d6c278
}

#duelAsk .daerr {
  font-size: 12px;
  color: #e0867b;
  min-height: 0
}

#duelAsk .dabtn {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

#duelAsk .dabtn .btn {
  flex: 1;
  padding: 6px 8px;
  min-height: 0
}

#duelBar #dQuit {
  pointer-events: auto;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 100, .5);
  background: rgba(120, 30, 20, .55);
  color: #e08b7b;
  font: inherit;
  font-size: 11px;
  cursor: pointer
}

#duelBar #dQuit:hover {
  background: rgba(160, 40, 25, .75)
}

body.pkarena #pcTop .pcstage,
body.pkarena #pcTop .pcmap {
  visibility: hidden
}

/* ---- PK trên bản đồ ---- */
#pkBtn {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(calc(-50% + 92px));
  z-index: 5;
  padding: 2px 10px;
  border: 1px solid #74563e;
  border-radius: 999px;
  background: #130e09cc;
  color: #cfe3d6;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap
}

#pkBtn b {
  color: #dd816f;
  margin-left: 4px
}

#pkBtn[hidden] {
  display: none
}

#pkMenu {
  position: absolute;
  left: 50%;
  top: 126px;
  transform: translateX(-50%);
  z-index: 10;
  width: min(92%, 300px);
  padding: 8px;
  border-radius: 12px;
  background: rgba(12, 16, 14, .95);
  border: 1px solid #74563e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5)
}

#pkMenu button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 4px 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #e9e4d6;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left
}

#pkMenu button.on {
  border-color: #e6c67a;
  background: rgba(230, 198, 122, .12)
}

#pkMenu button:disabled {
  opacity: .45;
  cursor: not-allowed
}

#pkMenu small {
  opacity: .7;
  font-size: 11px
}

#pkMenu .cpcap {
  font-size: 11px;
  opacity: .7;
  margin: 0 2px 2px
}

#pkMenu .pkhint {
  font-size: 11px;
  opacity: .7;
  margin: 6px 2px 0;
  line-height: 1.4
}

/* ---- Lôi Đài ---- */
.mbox:has(.rkwin) {
  width: min(100%, 560px)
}

.rkwin .rkme {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  margin: 6px 0
}

.rkwin .rkme canvas {
  background: rgba(0, 0, 0, .25);
  border-radius: 8px
}

.rkwin .dgold {
  color: #d6c278
}

.rkwin .ok {
  color: #7ebea0
}

.rkwin .bad {
  color: #e0867b
}

.rktabs {
  display: flex;
  gap: 6px;
  margin: 8px 0
}

.rktabs button {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer
}

.rktabs button.on {
  border-color: #e6c67a;
  background: rgba(230, 198, 122, .14)
}

.rkbody {
  max-height: min(52vh, 420px);
  overflow: auto
}

.rkopp {
  display: grid;
  gap: 8px
}

.rkcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .2)
}

.rkcard canvas {
  background: rgba(0, 0, 0, .25);
  border-radius: 8px;
  flex: none
}

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

.rkcard .btn {
  flex: none;
  padding: 6px 12px
}

.rktop {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px
}

.rktop th,
.rktop td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-align: left
}

.rktop tr.me td {
  background: rgba(230, 198, 122, .12)
}

.rklog div {
  padding: 4px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12px
}

/* 22/11: bỏ màn xem lại Lôi Đài đánh nhanh (.rkarena, .rkf, .rkhp, .rkvs, .rkn, .rkres…) */

.rkbtns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none
}

.rkbtns .btn {
  padding: 5px 10px;
  font-size: 12px;
  min-height: 0
}

/* ---- Chiến trường Tống Kim ---- */
#tkBar {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 96%;
  padding: 3px 10px;
  border-radius: 14px;
  background: rgba(12, 16, 14, .78);
  border: 1px solid rgba(255, 206, 90, .35);
  font-size: 11px;
  color: #e9e4d6;
  white-space: nowrap
}

#tkBar .tks {
  font-weight: 600;
  font-size: 12px
}

#tkBar .tks b {
  font-size: 15px
}

#tkBar .tkt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d6c278
}

#tkBar .tkboss {
  display: inline-flex;
  align-items: center;
  gap: 3px
}

#tkBar .tkboss i {
  display: block;
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden
}

#tkBar .tkboss em {
  display: block;
  height: 100%
}

#tkBar .tkme {
  opacity: .92
}

#tkBar .tkdead {
  color: #e0867b;
  font-weight: 600
}

#tkBar button {
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer
}

#tkBar #tkQ {
  border-color: rgba(255, 120, 100, .5);
  background: rgba(120, 30, 20, .55);
  color: #e08b7b
}

@media (max-width:600px) {
  #tkBar {
    top: 62px;
    gap: 5px;
    padding: 3px 7px
  }

  #tkBar .tkme {
    flex-basis: 100%;
    text-align: center
  }
}

/* ---- Thông Thiên Tháp — thanh trận / sảnh chờ (bản đồ sự kiện chung) ---- */
#ttBar {
  position: absolute;
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 96%;
  padding: 3px 10px;
  border-radius: 14px;
  background: rgba(10, 14, 24, .8);
  border: 1px solid rgba(120, 190, 255, .4);
  font-size: 11px;
  color: #e4e9f2;
  white-space: nowrap
}

#ttBar .tts {
  font-weight: 600;
  font-size: 12px
}

#ttBar .tts b {
  font-size: 15px
}

#ttBar .ttt {
  color: #d6c278
}

#ttBar .ttsub {
  opacity: .75
}

#ttBar .ttdead {
  color: #e0867b;
  font-weight: 600
}

#ttBar button {
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer
}

#ttBar #ttQ {
  border-color: rgba(255, 120, 100, .5);
  background: rgba(120, 30, 20, .55);
  color: #e08b7b
}

@media (max-width:600px) {
  #ttBar {
    top: 62px;
    gap: 5px;
    padding: 3px 7px
  }

  #ttBar .ttme {
    flex-basis: 100%;
    text-align: center
  }
}

.mbox:has(.tkwin) {
  width: min(100%, 560px)
}

.tkwin .tkstat {
  line-height: 1.5
}

.tkwin .ok,
.tkres.ok {
  color: #7ebea0
}

.tkwin .bad,
.tkres.bad {
  color: #e0867b
}

.tkwin .dgold {
  color: #d6c278
}

.tkwin .tkh {
  margin: 10px 0 4px;
  font-size: 13px
}

.tkwin .center {
  text-align: center
}

.tkres {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 8px 0
}

/* ---- máy chủ giữ nhân vật: mất kết nối ---- */
#netLock {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(2px)
}

#netLock .nlbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 26px;
  border-radius: 14px;
  background: #201711;
  border: 1px solid rgba(255, 206, 90, .45);
  color: #e9e4d6;
  text-align: center;
  max-width: min(90vw, 380px)
}

#netLock b {
  font-size: 17px;
  color: #e0bf7b
}

#netLock span {
  font-size: 13px;
  opacity: .9
}

#netLock small {
  opacity: .7
}

#netLock .nlspin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: #e0bf7b;
  animation: nlsp 1s linear infinite
}

@keyframes nlsp {
  to {
    transform: rotate(360deg)
  }
}

/* 22/11: Thông Thiên Tháp — tháp tầng + đội của bạn */
.ttrow { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 6px 0; }
.ttrow .ttme { flex: 1 1 200px; margin: 0; line-height: 1.6; }
.tttower { display: flex; flex-direction: column; gap: 3px; min-width: 170px; margin: 6px 0; }
.ttfl { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; background: rgba(120, 150, 255, .08); border: 1px solid rgba(160, 180, 255, .18); font-size: 13px; }
.ttfl b { min-width: 52px; }
.ttfl span { opacity: .75; flex: 1; }
.ttfl em { font-style: normal; color: #ffd24a; font-weight: 700; }
.ttfl.top { background: linear-gradient(90deg, rgba(255, 210, 74, .22), rgba(255, 210, 74, .05)); border-color: rgba(255, 210, 74, .5); }
.ttfl.me { border-color: #ffd24a; box-shadow: 0 0 0 1px #ffd24a inset; }
.ttwin .cwt .ttico { width: 30px; height: 30px; vertical-align: -8px; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.todayrow i img.featimg { width: 26px; height: 26px; display: inline-block; vertical-align: middle; object-fit: contain; }
