*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #f4f7fb;
  -webkit-font-smoothing: antialiased;
}

.bh-overlay {
  width: 26rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 0.65rem;
  background: linear-gradient(
    180deg,
    rgba(14, 22, 32, 0.96) 0%,
    rgba(10, 16, 24, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.bh-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.bh-overlay-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bh-overlay-hunt-id {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.bh-overlay-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-overlay-stat-col {
  display: grid;
  gap: 0.55rem;
}

.bh-overlay-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.bh-overlay-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.bh-overlay-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.bh-overlay-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.bh-overlay-highlight {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bh-overlay-star {
  position: absolute;
  top: 0.35rem;
  left: 0.4rem;
  font-size: 0.62rem;
  color: #f5c842;
  line-height: 1;
}

.bh-overlay-highlight-thumb {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.35rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bh-overlay-highlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-overlay-highlight-body {
  min-width: 0;
}

.bh-overlay-highlight-label {
  margin: 0 0 0.12rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.bh-overlay-highlight-slot {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh-overlay-highlight-meta {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.bh-overlay-table-wrap {
  max-height: 14rem;
  overflow: hidden;
}

.bh-overlay-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bh-overlay-table thead th {
  padding: 0 0.35rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-overlay-table thead th:nth-child(1) {
  width: 1.6rem;
}

.bh-overlay-table thead th:nth-child(3),
.bh-overlay-table thead th:nth-child(4) {
  width: 4.4rem;
  text-align: right;
}

.bh-overlay-table tbody td {
  padding: 0.42rem 0.35rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.bh-overlay-table tbody td:nth-child(1) {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.bh-overlay-table tbody td:nth-child(2) {
  font-weight: 600;
}

.bh-overlay-game-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.bh-overlay-row-thumb {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.3rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bh-overlay-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-overlay-game-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.bh-overlay-table tbody td:nth-child(3),
.bh-overlay-table tbody td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bh-overlay-table tbody tr:last-child td {
  border-bottom: none;
}

.bh-overlay-table tbody tr.is-pending td:nth-child(4) {
  color: rgba(255, 255, 255, 0.35);
}

.bh-overlay-empty-row td {
  padding: 0.75rem 0.35rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}
