@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('libs/fonts/chakra-petch-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('libs/fonts/chakra-petch-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg-outer: #0d0d12;
  --bg-box: #09090b;
  --text-primary: #ffffff;
  --text-muted: #a1a1aa;
  --cyan-neon: #00e5ff;
  --gold-accent: #ffd700;
  --green-neon: #00e676;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: transparent;
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#hunt-stage {
  width: 100%;
  max-width: 780px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bhgg-widget-card {
  width: 100%;
  background: radial-gradient(120% 120% at 50% 0%, #171429 0%, #0b0b10 65%, #08080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header Row */
.bhgg-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 4px 4px;
}

.bhgg-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bhgg-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.bhgg-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.bhgg-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
}

.bhgg-hunt-num {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* 2x3 Summary Box */
.bhgg-summary-box {
  background: var(--bg-box);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 36px;
}

.bhgg-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bhgg-stat-label {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.bhgg-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* Highlight Bar (Biggest Win | Lucky Win) */
.bhgg-highlight-bar {
  background: var(--bg-box);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.bhgg-hl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.bhgg-hl-left {
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.bhgg-hl-right {
  padding-left: 18px;
}

.bhgg-hl-title {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}

.bhgg-hl-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.bhgg-hl-game {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bhgg-hl-value {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Bonus List Table Box */
.bhgg-table-box {
  background: var(--bg-box);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
}

.bhgg-table-head {
  display: grid;
  grid-template-columns: 48px 1fr 100px 100px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.th-bet,
.th-payout {
  text-align: right;
}

/* Vertical Reel Viewport */
.bhgg-reel-viewport {
  height: 176px;
  overflow: hidden;
  position: relative;
}

.ticker-scroll-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.bhgg-reel-viewport.ticker-loop-active .ticker-scroll-track {
  animation: bonusTickerLoop var(--ticker-duration, 18s) linear infinite;
}

.bhgg-reel-viewport.ticker-loop-active:hover .ticker-scroll-track {
  animation-play-state: paused;
}

@keyframes bonusTickerLoop {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}

.bonus-row {
  display: grid;
  grid-template-columns: 48px 1fr 100px 100px;
  align-items: center;
  height: 44px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 15px;
}

.row-num {
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.row-game-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  padding-right: 10px;
}

.row-caller-prefix {
  font-weight: 800;
  color: var(--cyan-neon);
  white-space: nowrap;
  flex-shrink: 0;
}

.row-slot-title {
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-bet {
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row-payout {
  font-weight: 800;
  color: #ffffff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row-payout.is-pending {
  color: var(--text-muted);
  font-weight: 600;
}
