/* ── TRACKER: nút mở modal + lưới chọn game + trang placeholder ── */

/* Nút Tracker ở đáy sidebar giờ đã bấm được */
.side-foot { cursor: pointer; }

/* Lưới nút game trong modal */
.trk-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.trk-empty {
  grid-column: 1 / -1;
  margin: 6px 0 2px;
  padding: 22px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.trk-game {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  -webkit-appearance: none; appearance: none;
  color: #ffd9e0;
  border: 1px solid rgba(var(--neon-core), .55);
  background: linear-gradient(90deg, rgba(var(--neon-core), .18), rgba(var(--neon-core), .05));
  box-shadow: inset 0 0 12px rgba(var(--neon-core), .1);
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.trk-game:hover, .trk-game:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(var(--neon-core), .9);
  background: linear-gradient(90deg, rgba(var(--neon-core), .3), rgba(var(--neon-core), .1));
  box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 0 18px rgba(var(--neon-core), .5), inset 0 0 14px rgba(var(--neon-core), .16);
}
.trk-game__ico {
  flex: none; width: 24px; height: 24px;
  color: #ff4d6d;
  filter: drop-shadow(0 0 5px rgba(var(--neon-core), .85));
}
.trk-game__name {
  flex: 1; min-width: 0;
  font-size: 15px; font-weight: 700; letter-spacing: .2px;
  color: #fff;
  white-space: normal;        /* hiện đủ tên, dài thì xuống dòng */
  line-height: 1.25;
  word-break: break-word;
}

/* Tracker đang dùng → nút sáng lên */
.trk-game.is-active {
  border-color: rgb(var(--neon-core));
  box-shadow: 0 0 0 1px rgba(var(--neon-core), .45), 0 0 24px rgba(var(--neon-core), .7), inset 0 0 16px rgba(var(--neon-core), .3);
  transform: translateY(-1px);
}
.trk-game.is-active .trk-game__name { text-shadow: 0 0 10px rgba(var(--neon-core), .7), 0 1px 6px rgba(0,0,0,.9); }
.trk-game.has-bg.is-active::after { background: linear-gradient(90deg, rgba(6,7,11,.8), rgba(var(--neon-core), .22) 70%, rgba(var(--neon-core), .14)); }

/* Nút có ảnh nền (icon game, tự cập nhật qua /api/tracker/icon) */
.trk-game.has-bg {
  min-height: 84px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.trk-game.has-bg::after {   /* lớp phủ tối để chữ dễ đọc */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(6,7,11,.86), rgba(6,7,11,.5) 60%, rgba(6,7,11,.32));
  z-index: 0;
}
.trk-game.has-bg > * { position: relative; z-index: 1; }
.trk-game.has-bg .trk-game__ico { display: none; }   /* có ảnh rồi thì ẩn icon mặc định */
.trk-game.has-bg .trk-game__name { text-shadow: 0 1px 6px rgba(0,0,0,.9); }

/* ── Overview · khu DROP (4 cột theo độ hiếm) ── */
.trk-drops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.trk-drop {
  border: 1px solid rgba(255,255,255,.06);
  border-top: 2px solid rgb(var(--neon-core));
  border-top-color: var(--c, #ff2d55);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
  overflow: hidden;
}
.trk-drop-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.trk-drop-hd > span { display: flex; align-items: center; gap: 8px; font: 800 12px/1 var(--font-body); letter-spacing: .06em; color: #e7eaf0; }
.trk-drop-hd i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #ff2d55); box-shadow: 0 0 8px var(--c, #ff2d55); }
.trk-drop-hd b { min-width: 22px; text-align: center; padding: 1px 8px; border-radius: 999px; font: 700 12px/1.5 var(--font-body); color: var(--c, #ff2d55); border: 1px solid currentColor; }
.trk-drop-list { max-height: 260px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.trk-drop-list::-webkit-scrollbar { width: 6px; }
.trk-drop-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.trk-drop-row { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 7px; background: rgba(255,255,255,.02); }
.trk-drop-item { font: 600 13px/1.3 var(--font-body); color: #fff; }
.trk-drop-meta { font: 500 11px/1.3 var(--font-body); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.trk-drop-empty { padding: 28px 12px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* Trang placeholder "đang phát triển" */
.trk-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}
.trk-soon__ico {
  width: 46px; height: 46px;
  color: #ff4d6d;
  filter: drop-shadow(0 0 8px rgba(var(--neon-core), .6));
  opacity: .9;
}
.trk-soon__t { font-size: 16px; font-weight: 700; color: #f2f4f8; }
.trk-soon__s { font-size: 13px; line-height: 1.5; max-width: 420px; }
