.window {
  display: none;
  color: grey;
  flex-direction: column;
  flex: 0 1 auto;
  background-image: url("/png/bg3.png");
  min-height: 0
}

.window > .body {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
  min-height: 40px;
  justify-content: center;
  align-items: flex-start;
  align-content: flex-start;
  overflow-y: scroll;
  scrollbar-width: thin;
}

.window > .header {
  height: 22px;
  display: flex;
  align-items: center;
  cursor: move;
  padding-left: 4px;
  /* a stone header, the Hub look (owner 2026-10-01; was bg4.png) */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.3)), url("/png/bg3.png");
  border-bottom: 1px solid rgba(0, 0, 0, 0.85);
}

.window > .header > .title {
  color: #efe9da;
  font-weight: 700;
  text-shadow: 0 1px 0 #000;
}

.window > .header > .symbol-button {
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.28)), url("/png/bg3.png");
  color: #cfc8b8;
}

.window > .header > .symbol-button:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.window > .header > button {
  flex: 0 0 auto;
}

.window > .header > .title {
  flex: 1 1 auto;
  padding-left: 8px;
  pointer-events: none;
}

.window > .footer {
  height: 4px;
  cursor: ns-resize;
  background: black;
}

/* Container lock button — shows 🔓 by default, 🔒 + green tint when locked. */
.container-lock-btn {
  font-size: 9px;
}
.container-lock-btn.locked {
  background: #1c5e2a;
  color: #c8ffc8;
}

.friend-entry {
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.friend-entry:hover {
  color: white !important;
}

.friend-icon {
  font-size: 9px;
  margin-left: 3px;
  flex-shrink: 0;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.friend-remove-btn {
  cursor: pointer;
  font-size: 10px;
  padding: 0 4px;
  color: #aaa;
}

.friend-remove-btn:hover {
  color: red;
}
/* Item drags must never become native text-SELECTION drags — the browser's
   selection autoscroll scrolls the page/column and the whole UI rides up
   and down with the cursor (Evolone 2026-07-15). Scoped to windows/slots so
   chat text stays selectable; mobile already has user-select:none on body. */
.window > .body,
.slot {
  user-select: none;
  -webkit-user-select: none;
}

/* ---- regras so do TibiaOT (nao existem no Minibia) ---- */
#battle-window .body {
  min-height: 80px;
}
#skill-window .body {
  display: block;
}
