/* bomber/style.css */
:root{
  --panel: rgba(10, 12, 16, .70);
  --panel2: rgba(10, 12, 16, .82);
  --text: #e9eef7;
  --muted: rgba(233, 238, 247, .70);
  --line: rgba(255,255,255,.12);
  --accent: #56ccf2;
  --good: #60d394;
  --bad: #ff6b6b;
  --warn: #ffd166;
}

*{ box-sizing:border-box; }
html,body{ height:100%; 
  background-size: cover;

  background-position: center;

  background-repeat: no-repeat;
}
body{
  margin:0;
  color:var(--text);
  font: 14px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#000;
  background-image:url("assets/imgs/bg1.png");
  background-size: cover;
  background-position:center;
  background-attachment: fixed;

  background-repeat:no-repeat;
}

/* UI backgrounds */
body[data-ui="1"]{ background-image:url("assets/imgs/bg1.png"); }
body[data-ui="2"]{ background-image:url("assets/imgs/bg2.png"); }
body[data-ui="3"]{ background-image:url("assets/imgs/bg3.png"); }
body[data-ui="4"]{ background-image:url("assets/imgs/bg4.png"); }

a{ color:inherit; text-decoration:none; }
small{ color:var(--muted); }
.muted{ color:var(--muted); }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 30px;
}
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 14px;
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
/* ===== Brand: BOMBER ONLINE (Index) ===== */
.brandWrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:16px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.brandTitle{
  position:relative;
  line-height:1;
  letter-spacing:2px;
  text-transform:uppercase;
}

.brandTitleText{
  position:relative;
  display:inline-block;
  font-weight:900;
  font-size:28px;           /* tăng/giảm tại đây */
  padding:6px 12px;
  border-radius:14px;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #fbffb9 40%, #e9fdc2 70%, #ffffff 100%);
  -webkit-background-clip:text;
  background-clip:text;

  /* viền chữ (stroke) */
  -webkit-text-stroke: 1px rgba(0,0,0,.35);

  /* đổ bóng nhẹ */
  text-shadow:
    0 2px 0 rgba(0,0,0,.25),
    0 10px 24px rgba(0,0,0,.35);
}

.brandTitleGlow{
  position:absolute;
  inset:0;
  display:inline-block;
  font-weight:900;
  font-size:28px;
  padding:6px 12px;
  border-radius:14px;
  color: rgba(255,190,90,.75);
  filter: blur(10px);
  transform: translateY(2px);
  pointer-events:none;
  opacity:.85;
}

/* hiệu ứng “shine” nhẹ, không giật */
.brandTitleText::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:14px;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.22) 35%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-60%);
  animation: brandShine 3.2s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events:none;
}

@keyframes brandShine{
  0%   { transform: translateX(-60%); opacity:.0; }
  18%  { opacity:.55; }
  45%  { transform: translateX(60%); opacity:.0; }
  100% { transform: translateX(60%); opacity:.0; }
}
.chonbando{
  font-size:22px;
  letter-spacing:1px;
  color: rgba(241, 252, 146,.75);
  opacity:.9;
}
.brandSub{
  font-size:12px;
  letter-spacing:1px;
  color: rgba(255,255,255,.75);
  opacity:.9;
}

.pill{
  padding: 4px 10px;
  border:1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,.5);
  color: var(--muted);
  font-size: 18px;
}
.row{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
@media(max-width: 980px){
  .row{ grid-template-columns: 1fr; }
}
.card{
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
}
.card h2{
  margin:0 0 10px;
  font-size: 15px;
}
.field{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items:center;
  margin: 8px 0;
}
@media(max-width: 520px){
  .field{ grid-template-columns: 1fr; }
}
input,select,button{
  font: inherit;
}
input,select{
  width:100%;
  padding: 9px 10px;
  border-radius: 10px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline: none;
}
input::placeholder{ color: rgba(255,255,255,.45); }
button{
  cursor:pointer;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
}
button:hover{ border-color: rgba(255,255,255,.25); }
button.primary{
  background: rgba(86,204,242,.20);
  border-color: rgba(86,204,242,.35);
}
button.good{
  background: rgba(96,211,148,.18);
  border-color: rgba(96,211,148,.32);
}
button.bad{
  background: rgba(255,107,107,.18);
  border-color: rgba(255,107,107,.32);
}
hr.sep{
  border:0; height:1px;
  
  background: var(--line);
  margin: 12px 0;

}

.notice{
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  margin-bottom: 10px;
}
.notice.good{ border-color: rgba(96,211,148,.32); }
.notice.bad{ border-color: rgba(255,107,107,.32); }
.notice.warn{ border-color: rgba(255,209,102,.35); }

.mapGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media(max-width: 720px){
  .mapGrid{ grid-template-columns: repeat(2, 1fr); }
}
.mapOpt{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 8px;
  border:1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  cursor:pointer;
  user-select:none;
}
.mapOpt:hover{ border-color: rgba(255,255,255,.25); }
.mapOpt input{ width:auto; }
.mapOpt img{
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.3);
}
.mapOpt b{ font-size: 12px; }
.mapOpt span{ display:block; font-size: 12px; color: var(--muted); }

.list{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.roomItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
}
.roomItem:hover{ border-color: rgba(255,255,255,.25); }
.roomMeta{
  display:flex;
  flex-direction:column;
  gap: 2px;
}
.roomMeta b{ font-size: 13px; }
.tags{
  display:flex;
  gap: 6px;
  flex-wrap:wrap;
}
.tag{
  font-size: 12px;
  color: var(--muted);
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  padding: 2px 8px;
  border-radius: 999px;
}
.tag.good{ color: var(--good); border-color: rgba(96,211,148,.35); }
.tag.warn{ color: var(--warn); border-color: rgba(255,209,102,.35); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
}
.table th,.table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align:left;
  font-size: 13px;
}
.table th{ color: var(--muted); font-weight:600; }
.table tr:last-child td{ border-bottom:0; }

/* Game page */
.gameWrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
}
.gameHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.gameHeader .left,
.gameHeader .center,
.gameHeader .right{ display:flex; align-items:center; gap:10px; }
.gameHeader .center{ margin:0 auto; }
.gameTitle{ font-size: 16px; letter-spacing: 1px; font-weight: 700; }

.controls{
  display:flex; align-items:center; gap:8px;
}
.controls button{
  padding: 7px 10px;
  border-radius: 10px;
}
.controls input[type="range"]{ width: 120px; }

.gameArea{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.canvasBox{
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  overflow:hidden;
}
canvas#game{
  display:block;
  width:100%;
  height:auto;
  image-rendering: pixelated;
}
.hudRowWrap{
  border:1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 12px;
}
.hudGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media(max-width: 900px){
  .hudGrid{ grid-template-columns: 1fr; }
}
.hudBox{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  padding: 10px;
}
.hudBox h3{
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.hudRow{
  margin: 6px 0;
}
.hudRow b{ color: #fff; }

/* ===== Room box: darker for readability ===== */
#roomBox{
  background: rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.14);
}

/* ===== Skill cooldown (energy bar - professional) ===== */
.skillHud{ margin-top: 10px; }
.cdBar{
  position: relative;
  /* user request: bigger but shorter */
  height: 18px;
  max-width: 260px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.55);
}
.cdFill{
  height: 100%;
  width: 0%;
  position: relative;
  background: linear-gradient(90deg, rgba(60,220,140,.95), rgba(255,210,90,.95));
  transition: width 120ms linear;
}

/* ===== Zoom controls (map) ===== */
.zoomCtl{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.zoomCtl button{
  padding: 4px 10px;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1;
}
.zoomVal{
  display: inline-block;
  min-width: 52px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .3px;
}
.cdFill:after{
  content:"";
  position:absolute;
  inset:0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 7px, rgba(255,255,255,0) 7px 14px);
  opacity:.35;
  animation: cdStripe 1.2s linear infinite;
}
.cdText{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  letter-spacing: .2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.75);
  pointer-events:none;
}
@keyframes cdStripe{
  from { transform: translateX(-18px); }
  to   { transform: translateX(18px); }
}


.skillList{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.skillItem, .skillOpt{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  cursor:pointer;
  user-select:none;
}
.skillItem:hover, .skillOpt:hover{ border-color: rgba(255,255,255,.25); }
.skillItem input, .skillOpt input{ width:auto; }
.skillItem b, .skillOpt b{ font-size: 13px; }
.skillItem span, .skillOpt span{ display:block; font-size: 12px; color: var(--muted); }

.noSkills #skillPanel{ display:none !important; }

.mobileControls{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display:none;
  gap: 10px;
  justify-content:space-between;
  align-items:flex-end;
  pointer-events:none;
}
.mobileControls .pad,
.mobileControls .act{
  display:grid;
  gap: 8px;
  pointer-events:auto;
}
.mobileControls .pad{
  grid-template-columns: 56px 56px 56px;
  grid-template-rows: 56px 56px 56px;
}
.mobileControls button{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0,0,0,.45);
}
.mobileControls .act{ grid-template-columns: 86px; }
.mobileControls .act button{ width:86px; height:86px; border-radius: 18px; }

@media (max-width: 900px){
  .mobileControls{ display:flex; }
}

.skillOpt.isOn{ border-color: rgba(86,204,242,.45); background: rgba(86,204,242,.10); }



/* v10.10.1 - gameplay UX fixes (no page scroll, clearer HUD layout) */
html, body { height: 100%; }
body.ingame{
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Make the game screen fit viewport; allow HUD column to scroll internally */
body.ingame .gameWrap{
  max-width: 1280px;
  height: 100vh;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
body.ingame .gameHeader{
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
}

body.ingame .gameArea{
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  margin-top: 12px;
  overflow: hidden;
}

body.ingame .canvasBox{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.ingame canvas#game{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  touch-action: none; /* stop mobile scroll */
}

body.ingame .hudRowWrap{
  overflow: auto;
  max-height: 100%;
  padding-right: 6px;
}

body.ingame .hudGrid{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Keep "Thông tin của bạn" always visible */
body.ingame #myHudBox{
  position: sticky;
  top: 0;
  z-index: 5;
  border-color: rgba(86,204,242,.35);
}

/* Compact room slots */
body.ingame .slot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  margin-bottom: 8px;
}
body.ingame .slot .left{ display:flex; flex-direction:column; gap:2px; }
body.ingame .slot .t{ font-weight: 800; font-size: 13px; line-height: 1.1; }
body.ingame .slot .sub{ font-size: 12px; color: var(--muted); }
body.ingame .slot .right{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
body.ingame .slot button{ padding: 6px 10px; border-radius: 10px; font-size: 12px; }

/* Prevent the fixed mobile pad from pushing page height */
@media (max-width: 980px){
  body.ingame .gameWrap{ padding-bottom: 130px; }
  body.ingame .gameArea{ grid-template-columns: 1fr; }
  body.ingame canvas#game{ max-height: 60vh; }
  body.ingame .hudRowWrap{ max-height: 32vh; }
}


/* Emote icons */
.emoBtn{width:54px;height:54px;padding:6px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.06);cursor:pointer;}
.emoBtn:hover{background:rgba(255,255,255,.12);}
.emoBtn img{width:100%;height:100%;object-fit:contain;display:block;}


/* v10.11.0 - Wireframe UI layout (map left, room/skill right, emotes bottom) */
body.ingame{
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

body.ingame .gameWrap{
  max-width: 1400px;
  height: 100vh;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header: 2 rows */
body.ingame .gameHeader{
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

body.ingame .gameHeader .topRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.ingame .gameHeader .topRow .left,
body.ingame .gameHeader .topRow .center,
body.ingame .gameHeader .topRow .right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
body.ingame .gameHeader .topRow .center{ margin: 0 auto; }

body.ingame .gameHeader .topRow2{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
body.ingame .subTitle{
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--muted);
  white-space: nowrap;
}
body.ingame .myHudInline{
  flex: 1 1 520px;
  min-width: 260px;
}


/* ===== Header new layout (2 cards) ===== */
body.ingame .gameHeader .headerBrand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
body.ingame .gameHeader .brandActions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

body.ingame .gameHeader .headerGrid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .headerGrid{ grid-template-columns: 1fr; }
}

body.ingame .gameHeader .headCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  padding: 10px 12px;
  min-height: 98px;
}
body.ingame .gameHeader .headCardTitle{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .25px;
  color: rgba(255,255,255,.78);
}
body.ingame .gameHeader .roomRow{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
body.ingame .gameHeader .roomRow + .roomRow{ margin-top: 6px; }
body.ingame .gameHeader .roomRowSmall{ margin-top: 4px; font-size: 12px; }

/* In header cards: slightly tighter pill & buttons */
body.ingame .gameHeader .headCard .pill{ background: rgba(0,0,0,.22); }
body.ingame .gameHeader .headCard button{
  padding: 6px 10px;
  border-radius: 10px;
}
body.ingame .gameHeader .headCard input[type="range"]{ width: 160px; }

@media (max-width: 980px){
  body.ingame .gameHeader .headerGrid{ grid-template-columns: 1fr; }
  body.ingame .gameHeader .headCard{ min-height: 0; }
  body.ingame .gameHeader .headCard input[type="range"]{ width: 140px; }
}

/* Main: 2 columns */
body.ingame .gameArea{
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 12px;
  overflow: hidden;
  margin-top: 0;
}

/* Map */
body.ingame .canvasBox{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
body.ingame canvas#game{
  display:block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  image-rendering: pixelated;
  touch-action: none;
}

/* Right panel */
body.ingame .sidePanel{
  min-width: 0;
  overflow: auto;
  padding-right: 6px;
}
body.ingame .panelCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  padding: 10px;
  margin-bottom: 10px;
}

/* Darker panels for Room + Skill (requested: nền tối hơn một chút) */
body.ingame .sidePanel .panelCard{
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(12px);
}
body.ingame #debugBox.panelCard.small{
  background: rgba(0,0,0,.30);
}
body.ingame .panelCard h2{
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .2px;
}
body.ingame .panelCard.small{
  padding: 10px;
  margin-bottom: 0;
}

/* Room slots 2x2 */
body.ingame #slots.slotsGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.ingame .slot{
  margin: 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  min-height: 74px;
}
body.ingame .slot .left{ display:flex; flex-direction:column; gap:2px; min-width: 0; }
body.ingame .slot .title{ font-weight: 900; font-size: 12px; letter-spacing: .4px; }
body.ingame .slot .sub{ font-size: 12px; color: var(--muted); }
body.ingame .slot .right{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }

body.ingame .badge{
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--muted);
}
body.ingame .badge.ok{
  color: var(--good);
  border-color: rgba(96,211,148,.35);
  background: rgba(96,211,148,.12);
}

body.ingame .iconBtn{
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor: pointer;
}
body.ingame .iconBtn:hover{ border-color: rgba(255,255,255,.25); }
body.ingame .iconBtn:disabled{ opacity:.45; cursor:not-allowed; }
body.ingame .iconBtn.danger{
  background: rgba(255,107,107,.18);
  border-color: rgba(255,107,107,.32);
}

/* Skill list */
body.ingame .skillList{ display:flex; flex-direction:column; gap: 8px; }
body.ingame .skillOpt{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.20);
  cursor:pointer;
  user-select:none;
}
body.ingame .skillOpt:hover{ border-color: rgba(255,255,255,.25); }
body.ingame .skillOpt input{ width:auto; }
body.ingame .skillOpt b{ font-size: 13px; }
body.ingame .skillOpt span{ display:block; font-size: 12px; color: var(--muted); }
body.ingame .skillOpt.isOn{ border-color: rgba(86,204,242,.45); background: rgba(86,204,242,.10); }

/* Cooldown bar in "Thông tin của bạn" */
body.ingame .cdBar{
  /* bigger but shorter */
  height: 28px;
  max-width: 190px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  overflow: hidden;
}
body.ingame .cdFill{
  height: 100%;
  width: 0%;
  background: rgba(86,204,242,.55);
}

/* Footer bar */
body.ingame .gameFooter{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
body.ingame .emoteStrip{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
body.ingame .emoteTitle{
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
body.ingame .emoteBar{
  display:flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: auto;
  padding-bottom: 2px;
}
body.ingame .footerActions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}

/* Buttons used as pills */
body.ingame .pillBtn{
  cursor:pointer;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
}

/* Battle alarm: flash header border */
@keyframes battleFlash {
  0%{ box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,0,0,.35); }
  50%{ box-shadow: 0 0 0 4px rgba(255,0,0,.18); border-color: rgba(255,0,0,.80); }
  100%{ box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(255,0,0,.35); }
}
body.ingame.battle .gameHeader{
  animation: battleFlash 0.8s infinite;
}

/* Mobile / Tablet */
@media (max-width: 980px){
  body.ingame .gameArea{ grid-template-columns: 1fr; }
  body.ingame #slots.slotsGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ingame .gameFooter{
    flex-wrap: wrap;
    justify-content: center;
  }
  body.ingame .emoteBar{ flex-wrap: wrap; }
  body.ingame .mobileControls{ bottom: 92px; }
}

@media (max-width: 520px){
  body.ingame #slots.slotsGrid{ grid-template-columns: 1fr; }
  body.ingame .subTitle{ white-space: normal; }
}

/* ============================================================
   v10.10.2 — Right panel nền mờ/đậm hơn (Room + Skill)
   ============================================================ */
body.ingame .sidePanel .panelCard{
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}
body.ingame .slot{
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body.ingame .skillOpt{
  background: rgba(0,0,0,.26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


/* HUD icons (assets/imgs/) */
.pill .hudIco{
  width:18px;
  height:18px;
  display:inline-block;
  vertical-align:-3px;
  margin-right:6px;
  object-fit:contain;
  image-rendering:pixelated;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}

.hudHearts{
  display:inline-flex;
  gap:4px;
  align-items:center;
}
.hudHeartsSm{
  display:inline-flex;
  gap:3px;
  align-items:center;
  vertical-align:middle;
}
.hudHeart{
  width:16px;
  height:16px;
  display:inline-block;
  object-fit:contain;
  image-rendering:pixelated;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.hudHeartsSm .hudHeart{ width:14px; height:14px; }
.hudHeart.empty{
  opacity:.25;
  filter: grayscale(1) drop-shadow(0 1px 1px rgba(0,0,0,.35));
}



/* ===== Overlay UI (Chat F1 / Help F2 / Skin F3) ===== */
.chatOverlay{
  position: fixed;
  right: 14px;
  top: 140px;
  left: auto;
  bottom: auto;
  width: 340px;
  max-width: calc(100vw - 28px);
  height: 384px; /* +20% vs 320px */
  max-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(10,10,12,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  z-index: 9999;
  overflow: hidden;
}
.chatOverlay.hidden{ display:none; }
body.chatDragging{ user-select: none; }
.chatOverlay.dragging .chatHead{ cursor: grabbing; }
.chatHead{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  cursor: grab;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.chatTitle{ font-size: 13px; }
.chatStatus{ font-size:12px; opacity:.8; }
.chatClose{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: inherit;
  border-radius: 10px;
  width: 34px;
  height: 30px;
  cursor: pointer;
}
.chatMsgs{
  flex:1;
  overflow:auto;
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
}
.chatLine{ margin: 0 0 6px 0; opacity:.95; }
.chatLine.fadeIn{ animation: bFadeIn .12s ease-out; }
@keyframes bFadeIn{ from{opacity:.2; transform: translateY(2px);} to{opacity:1; transform:none;} }
.chatT{ opacity:.65; margin-right: 4px; }
.chatN{ font-weight: 700; }
.chatTxt{ opacity:.95; }
.chatFoot{
  display:flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.chatInput{
  flex:1;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: inherit;
  outline: none;
}
.chatSend{
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: inherit;
  cursor: pointer;
}

/* Modal used by client.js (Help F2 / Skin F3) */
.bModalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bModalOverlay.hidden{ display:none; }
.bModal{
  width: 560px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(12,12,14,.82);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}

/* Help modal: widen by +25% (560px -> 700px) */
#helpModal .bModal{
  width: 700px;
}

/* Help modal content */
#helpModal .helpGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px){
  #helpModal .helpGrid{ grid-template-columns: 1fr 1fr; }
}
#helpModal .helpCard{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 10px;
  background: rgba(255,255,255,.05);
}
#helpModal .helpCard h4{
  margin: 0 0 6px;
  font-size: 13px;
}
#helpModal .helpCard ul{ margin: 8px 0 0 18px; padding:0; }
#helpModal .helpCard li{ margin: 6px 0; }
#helpModal .helpItemIco{
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 6px;
  image-rendering: pixelated;
}
.bModalHead{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.bModalTitle{ font-weight: 800; font-size: 14px; }
.bModalClose{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: inherit;
  border-radius: 10px;
  width: 34px;
  height: 30px;
  cursor: pointer;
}
.bModalBody{
  padding: 12px 12px 14px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.45;
}
.skinGrid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.skinBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  padding: 10px;
}
.skinBtn img{
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}
.skinBtn.active{
  outline: 2px solid rgba(120,200,255,.7);
}


/* ===== Header Tools (Chat / Skin / Help) ===== */
.headCardTools{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden; /* prevent any button from spilling outside card */
}
.headCardTools .toolsRow{
  display:flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.toolBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  letter-spacing: .15px;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}
.toolBtn:hover{ background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.28); }
.toolBtn:active{ transform: translateY(1px); }


/* BOT button */
.botBtn{ border:1px solid rgba(86,204,242,.35); }
.botBtn.on{ box-shadow: 0 0 0 2px rgba(96,211,148,.18) inset; }
.botBtn.off{ opacity:.95; }


/* v10179 map grid: 4 columns x 6 rows (auto) */
.mapsGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.maps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
