*,
*::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: #eef6fb;
  -webkit-font-smoothing: antialiased;
}

.bh-overlay {
  --accent: #58c9f3;
  --accent-bright: #7ed8ff;
  --text: #eef6fb;
  --text-muted: #8ba4b6;
  --heading-gradient: linear-gradient(115deg, #eef6fb 10%, #7ed8ff 55%, #58c9f3 100%);
  --font-display: "Teko", sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 26rem;
  padding: 1.05rem 1.15rem 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(88, 201, 243, 0.18);
  background: linear-gradient(155deg, #121f2b, #060c12);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bh-overlay::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7ed8ff, rgba(88, 201, 243, 0.15));
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.bh-overlay::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 201, 243, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.bh-overlay > * {
  position: relative;
  z-index: 1;
}

.bh-overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.bh-overlay-header-copy {
  min-width: 0;
}

.bh-overlay-eyebrow {
  margin: 0 0 0.15rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bh-overlay-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bh-overlay-hunt-id {
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 201, 243, 0.28);
  background: rgba(88, 201, 243, 0.1);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

.bh-overlay-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(88, 201, 243, 0.12);
}

.bh-overlay-stat-col {
  display: grid;
  gap: 0.4rem;
}

.bh-overlay-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(88, 201, 243, 0.12);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.9), rgba(6, 12, 18, 0.86));
}

.bh-overlay-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.bh-overlay-stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bh-overlay-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.bh-overlay-highlights.is-single {
  grid-template-columns: 1fr;
}

.bh-overlay-highlight {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(155deg, rgba(18, 31, 43, 0.92), rgba(6, 12, 18, 0.88));
  border: 1px solid rgba(88, 201, 243, 0.14);
  overflow: hidden;
}

.bh-overlay-highlight.is-hidden {
  display: none;
}

.bh-overlay-highlight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #7ed8ff, rgba(88, 201, 243, 0.15));
  opacity: 0.75;
}

.bh-overlay-star {
  position: absolute;
  top: 0.35rem;
  left: 0.45rem;
  font-size: 0.62rem;
  color: #f0c98e;
  line-height: 1;
  z-index: 1;
}

.bh-overlay-highlight-thumb {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.4rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(88, 201, 243, 0.1);
  border: 1px solid rgba(88, 201, 243, 0.16);
  color: var(--accent-bright);
  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.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bh-overlay-highlight-slot {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.bh-overlay-highlight-meta {
  margin: 0.1rem 0 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.bh-overlay-table-wrap {
  --bh-row-height: 2.85rem;
  --bh-visible-rows: 2;
  overflow: hidden;
  padding: 0.55rem 0.55rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(88, 201, 243, 0.12);
  background:
    linear-gradient(155deg, rgba(14, 24, 34, 0.88), rgba(6, 12, 18, 0.84));
}

.bh-overlay-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bh-overlay-table-header {
  margin-bottom: 0.15rem;
}

.bh-overlay-table thead th {
  padding: 0.15rem 0.35rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid rgba(88, 201, 243, 0.12);
}

.bh-overlay-table thead th:nth-child(1),
.bh-overlay-table tbody td:nth-child(1) {
  width: 1.6rem;
}

.bh-overlay-table thead th:nth-child(3),
.bh-overlay-table thead th:nth-child(4),
.bh-overlay-table tbody td:nth-child(3),
.bh-overlay-table tbody td:nth-child(4) {
  width: 4.4rem;
  text-align: right;
}

.bh-overlay-table-viewport {
  height: calc(var(--bh-row-height) * var(--bh-visible-rows));
  overflow: hidden;
  position: relative;
}

.bh-overlay-table-track {
  will-change: transform;
}

.bh-overlay-table-track.is-scrolling {
  animation: bh-overlay-row-scroll var(--bh-scroll-duration, 12s) linear infinite;
}

@keyframes bh-overlay-row-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-overlay-table-track.is-scrolling {
    animation: none;
  }
}

.bh-overlay-table tbody td {
  height: var(--bh-row-height);
  padding: 0.3rem 0.35rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(88, 201, 243, 0.08);
  vertical-align: middle;
}

.bh-overlay-table tbody td:nth-child(1) {
  color: rgba(126, 216, 255, 0.65);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bh-overlay-table tbody td:nth-child(2) {
  font-weight: 600;
  color: var(--text);
}

.bh-overlay-game-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.bh-overlay-game-copy {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}

.bh-overlay-row-thumb {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(88, 201, 243, 0.1);
  border: 1px solid rgba(88, 201, 243, 0.14);
  color: var(--accent-bright);
  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;
  line-height: 1.15;
}

.bh-overlay-super-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #1a1204;
  background: linear-gradient(135deg, #ffd27d, #f0a020);
}

.bh-overlay-epic-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #120818;
  background: linear-gradient(135deg, #e0b8ff, #a85cff);
}

.bh-overlay-table tbody tr.is-super td {
  background: rgba(240, 160, 32, 0.08);
}

.bh-overlay-table tbody tr.is-epic td {
  background: rgba(168, 92, 255, 0.1);
}

.bh-overlay-table tbody tr.is-super.is-epic td {
  background: linear-gradient(90deg, rgba(240, 160, 32, 0.08), rgba(168, 92, 255, 0.1));
}

.bh-overlay-game-requester {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--accent-bright);
}

.bh-overlay-table tbody td:nth-child(3),
.bh-overlay-table tbody td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.bh-overlay-table-track:not(.is-scrolling) tbody tr:last-child td {
  border-bottom: none;
}

.bh-overlay-table tbody tr.is-pending td:nth-child(4) {
  color: var(--text-muted);
}

.bh-overlay-empty-row td {
  padding: 0.75rem 0.35rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}
