/*
 * Site foundation: telemetry list and top-player card primitives.
 * Extracted from legacy shell core on 2026-04-07.
 */

/* -------------------------
   Telemetry (online players)
------------------------- */
.telemetryHead{ display:flex; align-items:center; justify-content:space-between;
 gap:10px; margin-top:2px; }
.telemetryHead__main{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.telemetrySubline{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.telemetryTitle{ font-weight:900; color: var(--text900); letter-spacing:.2px; }
.telemetryList{ display:grid; gap:8px; margin-top:10px; max-height:260px; overflow:auto; padding-right:4px; }
.telemetryRow{
  /* This is a <button>. Normalize native control rendering across browsers
     so layout sizing is identical on the Home (fixed-viewport) screen and
     on regular pages. */
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.telemetryRow:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,180,60,.35);
}
.telemetryRow:focus-visible{
  outline: 2px solid rgba(255,180,60,.55);
  outline-offset: 2px;
}
.telemetryLeft{ display:flex; align-items:center; gap:10px; min-width:0; flex:1 1 auto; }
.telemetryText{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1 1 auto; }
.telemetryRight{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }
.telemetryAvatar{ width:28px; height:28px; border-radius:10px; overflow:hidden; flex:0 0 auto; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.18); }
.telemetryAvatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.telemetryDot{ width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,.35); flex:0 0 auto; }
.telemetryDot--moving{ background: rgba(80, 220, 160, .9); box-shadow: 0 0 0 4px rgba(80,220,160,.12); }
.telemetryDot--standing{ background: rgba(255, 200, 90, .95); box-shadow: 0 0 0 4px rgba(255,200,90,.12); }
.telemetryDot--afk{ background: rgba(255, 107, 107, .95); box-shadow: 0 0 0 4px rgba(255,107,107,.12); }
.telemetryDot--sleeping{ background: rgba(150, 170, 255, .9); box-shadow: 0 0 0 4px rgba(150,170,255,.12); }
.telemetryDot--leave{ background: rgba(255, 100, 100, .95); box-shadow: 0 0 0 4px rgba(255,100,100,.12); }

.telemetryRow--leave{ background: rgba(255, 90, 90, .05); border-color: rgba(255, 90, 90, .18); }
.telemetryName{ font-weight:800; color: var(--text900); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.telemetryMeta{ font-size: 12px; color: var(--text700); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.telemetryEventsTitle{ margin-top:12px; font-weight:900; color: var(--text900); }
.telemetryEvents{ margin-top:8px; display:grid; gap:8px; max-height:170px; overflow:auto; padding-right:4px; }

/* Joined highlight + badge */
.telemetryRow--join{
  background: rgba(90,255,160,.06);
  border-color: rgba(90,255,160,.35);
}
.telemetryBadge{
  font-size: 11px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text900);
  flex:0 0 auto;
}
.telemetryBadge--join{
  border-color: rgba(90,255,160,.35);
  background: rgba(90,255,160,.10);
  color: rgba(210,255,230,.95);
}

/* Activity chips (ephemeral) */
.telemetryChip{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  text-align:left;
  padding:10px 10px;
  border-radius: var(--r);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.telemetryChip:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,180,60,.35);
}
.telemetryChipAvatar{
  width:28px; height:28px;
  border-radius:10px;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.telemetryChipAvatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.telemetryChipMain{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.telemetryChipName{
  font-weight:800;
  color: var(--text900);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.telemetryChipMeta{ font-size:12px; color: rgba(255,255,255,.70); }
.telemetryChip--join{ border-color: rgba(90,255,160,.22); }
.telemetryChip--leave{ border-color: rgba(255,90,90,.22); }

@keyframes telemetryFadeInUp{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}
.telemetryChip--new{ animation: telemetryFadeInUp .22s ease-out; }

.telemetryModalList{ display:grid; gap:10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 560px){
  .telemetryModalList{ grid-template-columns: 1fr; }
}
.telemetryModalToolbar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
   margin-bottom:12px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 0 12px;
  background: rgba(11,15,22,.96);
}
.telemetrySearch{ width: 100%; padding: 10px 12px; border-radius: var(--r); border:1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.18); color: var(--text900); }

.telemetryList::-webkit-scrollbar,
.telemetryEvents::-webkit-scrollbar{ width: 6px; }
.telemetryList::-webkit-scrollbar-thumb,
.telemetryEvents::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius: 10px; }

/* TOP players */
.tabs--wrap{ flex-wrap:wrap; }
.topList{ margin-top:14px; display:grid; gap:10px; }

.topCard__place{ font-weight:900; opacity:.8; }
.topCard__avatar img{
  width:40px;height:40px;border-radius:10px;object-fit:cover;
}
.topCard__name{ font-weight:900; }
.topCard__value{ font-weight:900; color:var(--accent); }

.place-1{
  background: linear-gradient(90deg, rgba(255,180,60,.18), rgba(255,255,255,.02));
  border-color: rgba(255,180,60,.55);
}
.place-2{
  background: linear-gradient(90deg, rgba(180,180,180,.18), rgba(255,255,255,.02));
  border-color: rgba(180,180,180,.55);
}
.place-3{
  background: linear-gradient(90deg, rgba(176,120,60,.22), rgba(255,255,255,.02));
  border-color: rgba(176,120,60,.55);
}


/* Category tabs (stats) */
.categoryTabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.catTab{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding: 10px 12px;
  border-radius: var(--r);
  border:1px solid var(--control-border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.catTab:hover{ border-color: rgba(255,106,0,.35); background: rgba(255,106,0,.05); }
.catTab.is-active{
  background: linear-gradient(180deg, rgba(255,106,0,.96), rgba(255,146,46,.84));
  border-color: var(--control-accent-border-active);
  color: #1a120a;
}

/* Top grid/cards */
.topGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.topGrid.is-rich{
  grid-template-columns: 1fr;
}
@media (max-width: 980px){
  .topGrid{ grid-template-columns: 1fr; }
}
.topCard{
  appearance:none;
  border:none;
  text-align:left;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:space-between;
   gap: 12px;
  padding: 12px;
  border-radius: var(--r);
  border:1px solid var(--border);
  background: rgba(15,23,34,.92);
  box-shadow: var(--shadow);
  color: var(--text900);

  pointer-events:auto;
}

.topCard__left{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.topCard .pos{
  width: 30px; height: 30px;
  border-radius: var(--r);
  display:flex; align-items:center; justify-content:center;
  font-weight: 1000;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.topCard .ava{ width: 42px; height: 42px; border-radius: 14px; overflow:hidden; border:1px solid var(--border); }
.topCard .ava img{ width:100%; height:100%; object-fit:cover; display:block; }
.topCard .meta{ min-width:0; }
.topCard .name{ font-weight: 950; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topCard .id{ color: var(--muted); font-size: 12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width: 260px; }
.topCard__right{ text-align:right; }
.topCard .val{ font-size: 18px; font-weight: 1000; }
.topCard .lbl{ color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Top 3 highlights */
.topCard.top1{ border-color: rgba(var(--top1-rgb),.35); background: linear-gradient(180deg, rgba(var(--top1-rgb),.10), rgba(15,23,34,.92)); }
.topCard.top2{ border-color: rgba(var(--top2-rgb),.35); background: linear-gradient(180deg, rgba(var(--top2-rgb),.08), rgba(15,23,34,.92)); }
.topCard.top3{ border-color: rgba(var(--top3-rgb),.45); background: linear-gradient(180deg, rgba(var(--top3-rgb),.10), rgba(15,23,34,.92)); }
.topCard.top1 .pos{ border-color: rgba(var(--top1-rgb),.45); }
.topCard.top2 .pos{ border-color: rgba(var(--top2-rgb),.45); }
.topCard.top3 .pos{ border-color: rgba(var(--top3-rgb),.55); }

/* News (home) */
