/*
 * features/home/home.css — kiểu dáng RIÊNG của trang home (Sảnh của bạn).
 *
 * Nạp ở đâu: <link> trong www/html5/index.html, đặt SAU tất cả stylesheet dùng
 * chung (common/styles/style.css, common/styles/m8.css, …) để quy tắc của tính năng được ưu tiên khi trùng độ
 * ưu tiên (specificity).
 *
 * Phần tử được tạo bởi features/home/home_lobby.js theo config/home/home_lobby_layout.json.
 * VỊ TRÍ (x, y, width, height) nằm trong file cấu hình đó, không đặt ở đây.
 * Kiểu dùng chung cho mọi nút (.m8-button, .m8-image-button, hiệu ứng sáng khi rê
 * chuột, nút bị khóa) vẫn nằm ở common/styles/m8.css vì nhiều màn hình khác cũng dùng.
 *
 * Các quy tắc dưới đây được chuyển nguyên văn từ m8.css và m81330_worldboss.css (nay ở common/styles/ và features/worldboss/)
 * (giữ đúng thứ tự cũ để kết quả hiển thị không đổi).
 */

/* Tên tank chủ chiến (ô chữ trên nền lobby.tankNameBackground). */
.m8-lobby-tank-name {
  text-align: center;
  font-size: 21px !important;
  text-shadow: 0 2px 3px #041d38;
  color: #ffffd9;
  white-space: nowrap;
}
/* Hiện chưa có phần tử nào dùng class này; giữ lại vì có từ trước. */
.m8-lobby-tank-stats {
  text-align: center;
  color: #f7e9a1;
  font-weight: bold;
  text-shadow: 0 1px 3px #000;
}
/* Kiểu chữ Flash gốc cho tên tank (ưu tiên cao hơn quy tắc trên). */
.m8-shell .m8-lobby-tank-name {
  font:
    400 16px Tahoma,
    Arial,
    sans-serif !important;
  line-height: 25px !important;
  color: #fff;
  text-shadow: none;
}
/* Huy hiệu cấp tank (ảnh chrome.tankLevelN). */
.m83-lobby-tank-level {
  font:
    700 16px Tahoma,
    Arial,
    sans-serif;
  color: #ffdf20;
  line-height: 22px;
  text-shadow: 1px 1px 1px #7b4c00;
  pointer-events: none;
}
/* Khung ảnh động tank chủ chiến (bấm để mở garage). */
.m83-lobby-avatar {
  appearance: none;
  padding: 0;
  border: 0;
  min-height: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
}
.m83-lobby-avatar:hover:not(:disabled) {
  filter: brightness(1.15);
}
/* Rê chuột: dùng bộ lọc sáng Flash gốc (#m83-native-highlight, tạo trong common/ui/m83_chrome.js),
 * giống các nút khác; quy tắc này thắng quy tắc brightness ở trên. */
.m83-lobby-avatar:hover:not(:disabled) {
  filter: url(#m83-native-highlight);
}

/* Nút "Boss Thế Giới" bên trái sảnh: biểu tượng + chữ vàng xếp dọc. */
.m81330-worldboss-nav {
  position: absolute !important;
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 3px !important;
  color: #ffef64 !important;
  font-weight: bold !important;
  text-shadow: 1px 2px #032a4c;
}
.m81330-worldboss-nav img {
  max-width: 100px;
  max-height: 62px;
  object-fit: contain;
}
.m81330-worldboss-nav:hover {
  filter: brightness(1.18);
}
.m81330-worldboss-nav:focus-visible {
  outline: 2px solid #fff;
  border-radius: 8px;
}
/* M31: không đổ bóng chữ (giống màn Boss Thế Giới). */
.m8-shell .m81330-worldboss-nav {
  text-shadow: none;
}
