/* who is online, for the admin (js/adminonline.js): the HUD badge, the list window, the F10 panel's tab */
#aon-badge {
  position: fixed; z-index: 6; top: 132px; left: 12px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid #c9a24a;
  background: rgba(20, 14, 26, 0.82); color: #ffe2a0; font: 700 0.86rem Mali, Fredoka, sans-serif;
  cursor: pointer; pointer-events: auto; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
#aon-badge:hover { background: rgba(60, 44, 20, 0.9); }
#aon-badge[hidden] { display: none; }

#aonline { position: fixed; inset: 0; z-index: 960; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 14, 0.55); }
#aonline[hidden] { display: none; }
#aonline .aon-win {
  width: min(560px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 48px)); display: flex; flex-direction: column;
  border-radius: 14px; border: 2px solid #c9a24a; background: linear-gradient(180deg, #2a2233, #19141f);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); color: #f3e9d2; font-family: Mali, Fredoka, sans-serif; overflow: hidden;
}
#aonline .aon-top { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(201, 162, 74, 0.45); background: linear-gradient(180deg, rgba(201, 162, 74, 0.22), rgba(201, 162, 74, 0.05)); }
#aonline .aon-top b { font-size: 1.15rem; color: #ffe2a0; }
#aonline .aon-top small { color: #b9ab8c; font-size: 0.78rem; }
#aonline .aon-x { margin-left: auto; align-self: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #c9a24a; background: rgba(0, 0, 0, 0.35); color: #ffe2a0; font-size: 1rem; cursor: pointer; }
#aonline .aon-host { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 14px 4px; }
#aonline .aon-foot { padding: 8px 14px 10px; color: #b9ab8c; font-size: 0.74rem; border-top: 1px solid rgba(201, 162, 74, 0.3); }

/* the list (the window and the F10 tab) */
.aon-host { color: #f3e9d2; font-family: Mali, Fredoka, sans-serif; }
.aon-sum { padding: 0 2px 8px; font-size: 0.95rem; }
.aon-sum b { color: #ffe2a0; font-size: 1.15rem; }
.aon-sum small { color: #b9ab8c; font-size: 0.78rem; }
.aon-rows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.aon-panel .aon-rows { max-height: 52vh; }
.aon-row {
  display: grid; grid-template-columns: 58px minmax(0, 1.2fr) minmax(0, 1fr) 92px 30px; align-items: center; gap: 8px;
  min-height: 36px; padding: 3px 6px 3px 10px; border-radius: 9px; border: 1px solid rgba(201, 162, 74, 0.25);
  background: rgba(255, 255, 255, 0.04); cursor: pointer; white-space: nowrap;
}
.aon-row:hover, .aon-row:focus-visible { background: rgba(255, 226, 160, 0.09); border-color: rgba(232, 185, 74, 0.6); outline: none; }
.aon-row.me { border-color: rgba(120, 200, 255, 0.5); }
.aon-lv { color: #ffe2a0; font: 700 0.85rem Fredoka, Mali, sans-serif; }
.aon-name { overflow: hidden; text-overflow: ellipsis; font-size: 0.92rem; }
.aon-name small { color: #8fd0ff; font-weight: 500; }
.aon-map { overflow: hidden; text-overflow: ellipsis; color: #d8c9a6; font-size: 0.82rem; }
.aon-t { color: #b9ab8c; font-size: 0.78rem; text-align: right; }
.aon-ic { width: 30px; height: 28px; padding: 0; border-radius: 7px; border: 1px solid rgba(201, 162, 74, 0.55); background: rgba(0, 0, 0, 0.3); color: #ffe2a0; font-size: 0.95rem; cursor: pointer; }
span.aon-ic { visibility: hidden; }
.aon-ic:hover { background: rgba(232, 185, 74, 0.25); }
.aon-empty { margin: 18px auto; color: #b9ab8c; text-align: center; }
@media (max-width: 520px) {
  .aon-row { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) 62px 30px; gap: 6px; padding-left: 8px; }
  .aon-t { font-size: 0.72rem; }
  #aonline .aon-foot { font-size: 0.66rem; }
}
