/* Bridge template CSS with React app — does not modify front res sources */
html,
body,
#root {
  min-height: 100%;
  background: #101213 !important;
  color: #e8eaed !important;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

/* Template body default was #333 — force light text on dark */
body {
  color: #e8eaed !important;
}

.hb-app .main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hb-app a {
  text-decoration: none;
}

/*
 * Sidebar is a drawer only — never a permanent desktop column.
 * Template shows it in-flow above ~1200px; Cursor (narrow) matched
 * the off-canvas toggle. Force that toggle UX at every viewport.
 */
.hb-app .headerbar_box {
  display: flex !important;
}

.hb-app .innerdshbt_left {
  position: fixed !important;
  top: 0;
  left: -4000px !important;
  z-index: 2000;
  width: min(320px, 88vw) !important;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  background: #101213;
  transition: left 0.25s ease;
}

.hb-app .innerdshbt_left.hb-nav-open {
  left: 0 !important;
}

.hb-app .closeicon {
  display: flex !important;
}

.hb-app .innerdshbt_inner,
.hb-app .innerdshbt_nEwright,
.hb-app .hb-content {
  width: 100% !important;
}

.hb-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1999;
}

.hb-nav-backdrop.hb-open {
  display: block;
}

/* Active Casino / Sports header pills */
.hb-app .headerCasino-btn a.hb-inactive {
  background: transparent;
  color: #5c5e5f;
}

.hb-app .headerSports-btn a.hb-active {
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff0046 0%, #ff4a62 100%);
  padding: 9px 12px;
  height: 41px;
}

.hb-app .headerSports-btn a.hb-active img {
  filter: brightness(0) saturate(100%) invert(100%);
}

/* Content area when template widths apply */
.hb-app .hb-content {
  width: 100%;
  min-width: 0;
}

.hb-app .hb-page-surface {
  border-radius: 12px;
  background: #151718;
  padding: 20px 18px;
  color: #e8eaed;
}

.hb-app .hb-page-surface h1,
.hb-app .hb-page-surface h2,
.hb-app .hb-page-surface h3 {
  color: #fff;
}

.hb-app .hb-muted {
  color: #8b8f92;
}

.hb-app .hb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff0046 0%, #ff4a62 100%);
  color: #fff !important;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
}

.hb-app .hb-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #303030;
  background: #1d1d1d;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
}

.hb-app .hb-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .hb-app .hb-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hb-app .hb-game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.hb-app .hb-game-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1c1e;
  border: 1px solid #2a2c2e;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.hb-app .hb-game-card:hover {
  border-color: #ff4a62;
  transform: translateY(-2px);
}

.hb-app .hb-game-card__art {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a1018 0%, #151718 70%);
  color: #ff4a62;
  font-size: 2rem;
  font-weight: 700;
}

.hb-app .hb-game-card__meta {
  padding: 10px;
}

.hb-app .hb-game-card__meta h3 {
  margin: 0;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hb-app .hb-game-card__meta p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #8b8f92;
}

.hb-app .hb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}

.hb-app .hb-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.hb-app .hb-banner-row {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  .hb-app .hb-banner-row {
    grid-template-columns: 1.4fr 1fr;
  }
}

.hb-app .hb-banner {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 220px;
  background: #151718;
  border: 1px solid #2a2c2e;
  padding: 28px 24px;
}

.hb-app .hb-banner h1 {
  margin: 8px 0 16px;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.02em;
}

.hb-app .hb-banner p {
  color: #b0b4b8;
  margin: 0;
}

.hb-app .hb-sports-frame {
  min-height: 70vh;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #151718;
  border: 1px solid #2a2c2e;
}

/* Template mobile bar uses .mobilemenu_area (shown ≤767px in responsive.css) */
.hb-app .hb-main-pad {
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  .hb-app .hb-main-pad {
    padding-bottom: 0;
  }
}

.hb-app .mobilemenu_item {
  text-decoration: none;
  color: inherit;
}

.hb-app .dropdownWallet_box {
  z-index: 2100;
  display: block; /* visibility controlled by React mount */
}

.hb-app .dropdownWallet_part {
  align-items: flex-start;
  gap: 12px;
}

.hb-app .dropdownWalletLT {
  min-width: 0;
  flex: 1 1 auto;
  width: auto !important;
  max-width: calc(100% - 110px);
}

.hb-app .dropdownWalletRT {
  flex: 0 0 auto;
  width: auto !important;
}

.hb-app .dropdownWalletLTtext h3 {
  font-size: 18px !important;
  line-height: 1.25 !important;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.hb-app .head_Walletleft p {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hb-app .hdtcustom-options {
  z-index: 2100;
}

/* Forms on dark surfaces */
.hb-app input,
.hb-app select,
.hb-app textarea {
  background: #1d1d1d;
  border: 1px solid #303030;
  color: #fff;
  border-radius: 8px;
}

.hb-app label {
  color: #b0b4b8;
}
