/* ==========================================================================
   BloxHub — game portal design system
   Self-contained layer on top of the theme. Only prefixed (bh-) classes are
   styled here, so legacy pages keep their original look.
   ========================================================================== */

:root {
  --bh-bg: #0a0c18;
  --bh-bg-soft: #10132a;
  --bh-surface: #161a35;
  --bh-surface-2: #1e2348;
  --bh-line: rgba(255, 255, 255, .09);
  --bh-line-strong: rgba(255, 255, 255, .18);
  --bh-text: #eef1ff;
  --bh-muted: #a3acd6;
  --bh-accent: var(--color-primary, #ec4899);
  --bh-accent-soft: rgba(236, 72, 153, .14);
  --bh-indigo: #6366f1;
  --bh-sky: #38bdf8;
  --bh-green: #22c55e;
  --bh-amber: #f59e0b;
  --bh-radius: 16px;
  --bh-radius-sm: 10px;
  --bh-shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
  --bh-shadow-hover: 0 26px 60px -20px rgba(0, 0, 0, .85);
  --bh-grad: linear-gradient(120deg, #6366f1 0%, #a855f7 45%, #ec4899 100%);
}

/* Opt-in dark page background for game surfaces */
body.bh-dark-page {
  background: var(--bh-bg);
  color: var(--bh-text);
}

.bh-dark-page ::selection {
  background: var(--bh-accent);
  color: #fff;
}

/*
 * The theme hard-codes dark heading colours for its light layout, which is
 * invisible on the dark game surfaces. Re-assert readable headings for every
 * opt-in dark page so no component has to remember to do it.
 */
body.bh-dark-page h1,
body.bh-dark-page h2,
body.bh-dark-page h3,
body.bh-dark-page h4,
body.bh-dark-page h5,
body.bh-dark-page h6,
body.bh-dark-page .h1,
body.bh-dark-page .h2,
body.bh-dark-page .h3,
body.bh-dark-page .h4 {
  color: var(--bh-text);
}

/*
 * Same problem for native anchors: the theme hard-codes the light-skin ink on
 * `a`, so game titles inside the member rows rendered black on the dark
 * surface. Every bh- component declares its own colour, so only bare anchors
 * are re-pointed at the page ink.
 */
body.bh-dark-page a:not([class*="bh-"]),
body.bh-dark-page a:not([class*="bh-"]):hover {
  color: var(--bh-text);
}

/* The shop cart bubble belongs to the marketplace, not the games portal. */
body.bh-dark-page #cartIconWrapper {
  display: none !important;
}

/* ---------------------------------- shell --------------------------------- */

.bh-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(10, 12, 24, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--bh-line);
}

.bh-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.bh-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.bh-brand img {
  height: 38px;
  width: auto;
  display: block;
}

.bh-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.bh-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-nav > ul > li {
  position: relative;
}

.bh-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--bh-muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.bh-nav a:hover,
.bh-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.bh-nav a.is-active {
  color: #fff;
  background: var(--bh-accent-soft);
}

.bh-nav li > ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  box-shadow: var(--bh-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.bh-nav li:hover > ul,
.bh-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bh-nav li > ul a {
  display: block;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 14px;
}

.bh-search {
  position: relative;
  flex: 0 1 260px;
}

.bh-search input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 16px;
  color: var(--bh-text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}

.bh-search input::placeholder {
  color: #7b85b0;
}

.bh-search input:focus {
  border-color: var(--bh-line-strong);
  background: rgba(255, 255, 255, .1);
}

.bh-search button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bh-accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.bh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bh-lang {
  height: 42px;
  padding: 0 38px 0 16px;
  color: var(--bh-text);
  background-color: rgba(255, 255, 255, .06);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a3acd6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}

.bh-lang:hover,
.bh-lang:focus {
  border-color: var(--bh-line-strong);
  background-color: rgba(255, 255, 255, .1);
}

/* Native option list: keep it readable on every platform. */
.bh-lang option {
  color: #0a0c18;
  background: #ffffff;
}

.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.bh-btn--primary {
  color: #fff;
  background: var(--bh-accent);
  box-shadow: 0 12px 26px -12px var(--bh-accent);
}

.bh-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px var(--bh-accent);
}

.bh-btn--ghost {
  color: var(--bh-text);
  background: rgba(255, 255, 255, .07);
  border-color: var(--bh-line);
}

.bh-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.bh-btn--light {
  color: #12142a;
  background: #fff;
}

.bh-btn--light:hover {
  color: #12142a;
  transform: translateY(-1px);
}

.bh-btn--lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
}

.bh-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  cursor: pointer;
}

.bh-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.bh-drawer {
  display: none;
  border-top: 1px solid var(--bh-line);
  background: var(--bh-bg-soft);
  padding: 14px 0 20px;
}

.bh-drawer.is-open {
  display: block;
}

.bh-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-drawer a {
  display: block;
  padding: 11px 4px;
  color: var(--bh-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--bh-line);
}

.bh-drawer .bh-drawer__sub a {
  padding-left: 18px;
  color: var(--bh-muted);
  font-weight: 500;
}

/* The header is always dark, so its dropdowns must be dark too — the theme's
   own light popup skin makes the items unreadable on top of it. */
.bh-header .dropdown-menu {
  min-width: 190px;
  padding: 8px;
  margin-top: 10px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  box-shadow: var(--bh-shadow);
}

.bh-header .dropdown-menu .dropdown-item {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--bh-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.bh-header .dropdown-menu .dropdown-item:hover,
.bh-header .dropdown-menu .dropdown-item:focus,
.bh-header .dropdown-menu .dropdown-item:active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ---------------------------------- hero ---------------------------------- */

.bh-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 12% -10%, rgba(99, 102, 241, .55), transparent 60%),
    radial-gradient(900px 520px at 92% 6%, rgba(236, 72, 153, .45), transparent 62%),
    linear-gradient(160deg, #0a0c18 0%, #131736 55%, #0a0c18 100%);
  color: #fff;
  padding: 92px 0 96px;
}

.bh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

.bh-hero > .container {
  position: relative;
  z-index: 1;
}

.bh-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bh-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: bh-pulse 2s infinite;
}

@keyframes bh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .65); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.bh-hero__title {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.02em;
}

.bh-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #a5b4fc, #f472b6 55%, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bh-hero__sub {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(238, 241, 255, .78);
  font-size: 17px;
  line-height: 1.7;
}

.bh-hero__search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
}

.bh-hero__search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
}

.bh-hero__search input::placeholder {
  color: rgba(238, 241, 255, .6);
}

.bh-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 44px;
}

.bh-hero__stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.bh-hero__stat span {
  color: rgba(238, 241, 255, .66);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ------------------------------ hero mosaic ------------------------------- */

.bh-hero__mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bh-hero__tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid var(--bh-line-strong);
  box-shadow: var(--bh-shadow);
  text-decoration: none;
  transition: transform .2s ease;
}

.bh-hero__tile:hover {
  transform: translateY(-3px);
}

.bh-hero__tile:first-child {
  grid-column: span 2;
}

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

.bh-hero__tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(to top, rgba(6, 8, 20, .92), transparent);
}

.bh-hero__tile span {
  position: absolute;
  z-index: 1;
  left: 13px;
  right: 13px;
  bottom: 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75);
}

/* --------------------------------- section -------------------------------- */

.bh-section {
  padding: 74px 0;
}

.bh-section--tight {
  padding: 52px 0;
}

.bh-section--soft {
  background: linear-gradient(180deg, rgba(99, 102, 241, .07), transparent 70%);
}

.bh-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.bh-section__head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -.01em;
}

.bh-section__head p {
  margin: 0;
  color: var(--bh-muted);
  font-size: 15px;
}

.bh-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--bh-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bh-link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--bh-text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.bh-link-more:hover {
  color: var(--bh-accent);
}

/* ---------------------------------- cards --------------------------------- */

.bh-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.bh-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.bh-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bh-card:hover {
  transform: translateY(-5px);
  border-color: var(--bh-line-strong);
  box-shadow: var(--bh-shadow-hover);
}

.bh-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bh-surface-2);
}

.bh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.bh-card:hover .bh-card__media img {
  transform: scale(1.06);
}

.bh-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(10, 12, 24, .92), transparent);
}

.bh-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  letter-spacing: -.03em;
}

.bh-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 12, 24, .78);
  border: 1px solid var(--bh-line-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bh-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 24, .78);
  border: 1px solid var(--bh-line-strong);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
}

.bh-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
  padding: 17px 18px 19px;
}

.bh-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--bh-text);
  line-height: 1.3;
}

.bh-card__desc {
  margin: 0;
  color: var(--bh-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.bh-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--bh-line);
  color: var(--bh-muted);
  font-size: 12.5px;
}

.bh-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bh-card__meta i {
  color: var(--bh-accent);
}

.bh-card__row {
  display: flex;
  gap: 14px;
  padding: 14px;
}

.bh-card--row .bh-card__media {
  flex: 0 0 172px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.bh-card--row .bh-card__body {
  padding: 2px 4px;
}

/* ---------------------------------- chips --------------------------------- */

.bh-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--bh-line);
  background: var(--bh-surface);
  color: var(--bh-text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s ease;
}

.bh-chip:hover,
.bh-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--bh-accent);
  transform: translateY(-2px);
}

.bh-chip__count {
  color: var(--bh-muted);
  font-weight: 600;
}

.bh-chip:hover .bh-chip__count,
.bh-chip.is-active .bh-chip__count {
  color: rgba(255, 255, 255, .8);
}

.bh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--bh-line);
  background: rgba(255, 255, 255, .05);
  color: var(--bh-muted);
  font-size: 12px;
  font-weight: 700;
}

.bh-pill--green { color: #86efac; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .12); }
.bh-pill--amber { color: #fcd34d; border-color: rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .12); }
.bh-pill--red { color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .12); }
.bh-pill--sky { color: #7dd3fc; border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .12); }

/* ---------------------------------- codes --------------------------------- */

.bh-codes {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bh-code {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  transition: border-color .18s ease, transform .18s ease;
}

.bh-code:hover {
  transform: translateY(-3px);
  border-color: var(--bh-line-strong);
}

.bh-code__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bh-code__token {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh-code__copy {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--bh-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .16s ease;
}

.bh-code__copy:hover { filter: brightness(1.1); }
.bh-code__copy.is-done { background: var(--bh-green); }

.bh-code__reward {
  color: var(--bh-text);
  font-size: 14px;
  font-weight: 600;
}

.bh-code__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--bh-muted);
  font-size: 12.5px;
}

.bh-code__foot a { color: var(--bh-muted); text-decoration: none; }
.bh-code__foot a:hover { color: var(--bh-accent); }

/* ---- Player vote (one click: worked / expired / doesn't work) ----------- */
.bh-vote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--bh-line);
}

.bh-vote__label {
  display: block;
  color: var(--bh-muted);
  font-size: 12px;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.bh-vote__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bh-vote__btn {
  border: 1px solid var(--bh-line-strong);
  background: rgba(255, 255, 255, .04);
  color: var(--bh-text);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bh-vote__btn:hover { background: rgba(255, 255, 255, .1); }

.bh-vote__btn[data-vote="worked"].is-active {
  background: rgba(34, 197, 94, .18);
  border-color: var(--bh-green);
  color: #86efac;
}

.bh-vote__btn[data-vote="expired"].is-active {
  background: rgba(245, 158, 11, .16);
  border-color: var(--bh-amber);
  color: #fcd34d;
}

.bh-vote__btn[data-vote="broken"].is-active {
  background: rgba(239, 68, 68, .16);
  border-color: #ef4444;
  color: #fca5a5;
}

.bh-vote__stat {
  color: var(--bh-muted);
  font-size: 12px;
  margin-left: auto;
}

.bh-vote__stat b { color: var(--bh-text); }
.bh-vote__stat--empty { color: var(--bh-muted); }

.bh-vote.is-busy { opacity: .6; }

/* ---- Watch / save a game ----------------------------------------------- */
.bh-watch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--bh-line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--bh-text);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bh-watch:hover { background: rgba(255, 255, 255, .1); }

.bh-watch.is-on {
  border-color: var(--bh-accent);
  background: var(--bh-accent-soft);
  color: #fff;
}

.bh-steps {
  counter-reset: bh-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bh-steps li {
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  color: var(--bh-muted);
  font-size: 14px;
}

.bh-steps li::before {
  counter-increment: bh-step;
  content: counter(bh-step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bh-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* --------------------------------- detail --------------------------------- */

.bh-detail {
  position: relative;
  overflow: hidden;
  padding: 0 0 46px;
  background: var(--bh-bg);
  color: var(--bh-text);
}

.bh-detail__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  background-size: cover;
  background-position: center;
  opacity: .38;
  filter: saturate(120%);
}

.bh-detail__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 24, .55) 0%, rgba(10, 12, 24, .92) 62%, var(--bh-bg) 100%);
}

.bh-detail__inner {
  position: relative;
  z-index: 1;
  padding-top: 40px;
}

.bh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--bh-muted);
  font-size: 13px;
}

.bh-breadcrumb a {
  color: var(--bh-muted);
  text-decoration: none;
}

.bh-breadcrumb a:hover { color: var(--bh-accent); }

.bh-detail__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
}

.bh-detail__cover {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bh-line);
  box-shadow: var(--bh-shadow);
  aspect-ratio: 16 / 9;
  background: var(--bh-surface-2);
}

.bh-detail__cover img,
.bh-detail__cover .bh-card__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.bh-shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--bh-line);
  cursor: zoom-in;
  transition: transform .2s ease;
}

.bh-shots img:hover { transform: translateY(-3px); }

.bh-detail__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.bh-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.bh-statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
}

.bh-statbar div {
  text-align: center;
}

.bh-statbar b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.bh-statbar span {
  color: var(--bh-muted);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 22px;
}

.bh-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--bh-line);
  background: var(--bh-surface);
  color: var(--bh-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s ease;
}

.bh-tab:hover {
  color: #fff;
  border-color: var(--bh-line-strong);
}

.bh-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--bh-accent);
}

.bh-tab__n {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  font-size: 12px;
}

.bh-panel {
  padding: 26px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
}

.bh-panel + .bh-panel { margin-top: 20px; }

.bh-panel h2,
.bh-panel h3 {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.bh-panel h2 { font-size: 22px; }
.bh-panel h3 { font-size: 18px; }

.bh-prose {
  color: var(--bh-muted);
  font-size: 15px;
  line-height: 1.85;
}

.bh-prose p { margin: 0 0 14px; }
.bh-prose h2, .bh-prose h3, .bh-prose h4 { color: var(--bh-text); margin: 22px 0 10px; }
.bh-prose ul, .bh-prose ol { padding-left: 22px; margin: 0 0 14px; }
.bh-prose a { color: var(--bh-accent); }
.bh-prose img { max-width: 100%; border-radius: 12px; }
.bh-prose code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .4);
  color: #f9a8d4;
  font-size: .92em;
}

.bh-kv {
  display: grid;
  gap: 10px;
  margin: 0;
}

.bh-kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bh-line);
  font-size: 14px;
}

.bh-kv dt { color: var(--bh-muted); font-weight: 500; }
.bh-kv dd { margin: 0; color: var(--bh-text); font-weight: 700; text-align: right; }

/* -------------------------------- timeline -------------------------------- */

.bh-timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.bh-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--bh-accent), rgba(99, 102, 241, .2));
}

.bh-timeline li {
  position: relative;
  padding: 0 0 26px;
}

.bh-timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bh-bg);
  border: 3px solid var(--bh-accent);
}

.bh-timeline h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.bh-timeline time {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--bh-accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

.bh-timeline p {
  margin: 0;
  color: var(--bh-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* -------------------------------- entities -------------------------------- */

.bh-entity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease;
}

.bh-entity:hover {
  transform: translateY(-3px);
  border-color: var(--bh-line-strong);
}

.bh-entity__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bh-entity__name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.bh-entity__desc {
  margin: 0;
  color: var(--bh-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.bh-entity__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------------------------------- misc ---------------------------------- */

.bh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 30px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
}

.bh-toolbar input,
.bh-toolbar select {
  height: 44px;
  padding: 0 16px;
  color: var(--bh-text);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

.bh-toolbar input::placeholder { color: #7b85b0; }
.bh-toolbar input:focus,
.bh-toolbar select:focus { border-color: var(--bh-line-strong); }
.bh-toolbar select option { color: #0a0c18; }
.bh-toolbar .bh-grow { flex: 1 1 220px; }

.bh-empty {
  padding: 46px 24px;
  text-align: center;
  background: var(--bh-surface);
  border: 1px dashed var(--bh-line-strong);
  border-radius: var(--bh-radius);
  color: var(--bh-muted);
}

.bh-empty i {
  display: block;
  margin-bottom: 12px;
  color: var(--bh-accent);
  font-size: 34px;
}

/* --------------------------------- tables --------------------------------- */
/* Bootstrap's .table keeps the light-theme skin (white rows) which is
   unreadable on a dark page, so the dark surface is forced here. */

.bh-table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-color: var(--bh-text);
  --bs-table-striped-color: var(--bh-text);
  --bs-table-striped-bg: rgba(255, 255, 255, .03);
  --bs-table-hover-color: var(--bh-text);
  --bs-table-hover-bg: rgba(255, 255, 255, .05);
  --bs-table-border-color: var(--bh-line);
  width: 100%;
  margin-bottom: 0;
  background: transparent;
  color: var(--bh-text);
  border-color: var(--bh-line);
}

.bh-table > :not(caption) > * > * {
  background: transparent;
  color: inherit;
  border-color: var(--bh-line);
  box-shadow: none;
}

.bh-table thead th {
  padding: 12px 14px;
  color: var(--bh-muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bh-line);
}

.bh-table tbody td {
  padding: 13px 14px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

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

.bh-table tbody tr:hover td {
  background: rgba(255, 255, 255, .035);
}

.bh-table a {
  text-decoration: none;
}

.bh-table a:hover {
  text-decoration: underline;
}

.bh-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.bh-pagination .pagination {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.bh-pagination .page-link {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bh-line) !important;
  border-radius: 10px !important;
  background: var(--bh-surface);
  color: var(--bh-muted);
  font-weight: 700;
}

.bh-pagination .page-item.active .page-link {
  background: var(--bh-accent);
  border-color: transparent !important;
  color: #fff;
}

.bh-pagination .page-link:hover { color: #fff; }

.bh-cta {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: radial-gradient(800px 380px at 15% 0%, rgba(236, 72, 153, .5), transparent 60%),
    radial-gradient(700px 360px at 88% 100%, rgba(99, 102, 241, .55), transparent 62%),
    linear-gradient(120deg, #10132a, #1b1f45);
  border-radius: 22px;
  border: 1px solid var(--bh-line);
  color: #fff;
}

.bh-cta__form {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 26px auto 0;
}

.bh-cta__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0 26px;
  border: 1px solid var(--bh-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}

.bh-cta__form input:focus {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
}

.bh-cta__form input::placeholder { color: rgba(238, 241, 255, .6); }

.bh-cta__form .bh-btn {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 34px;
  font-size: 15.5px;
  border-radius: 999px;
}

.bh-articles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-articles a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  color: var(--bh-text);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.bh-articles a:hover {
  transform: translateX(4px);
  border-color: var(--bh-line-strong);
  color: #fff;
}

.bh-articles small { color: var(--bh-muted); font-weight: 600; white-space: nowrap; }

/* --------------------------------- footer --------------------------------- */

.bh-footer {
  margin-top: 0;
  padding: 68px 0 0;
  background: linear-gradient(180deg, #0a0c18, #10132a);
  border-top: 1px solid var(--bh-line);
  color: var(--bh-muted);
}

.bh-footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
}

.bh-footer h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}

.bh-footer__about p {
  margin: 16px 0 20px;
  font-size: 14px;
  line-height: 1.75;
}

.bh-footer__logo img {
  height: 36px;
  width: auto;
}

.bh-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.bh-footer ul a {
  color: var(--bh-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .16s ease;
}

.bh-footer ul a:hover { color: #fff; }

.bh-footer__contact li {
  display: flex;
  gap: 11px;
  font-size: 14px;
}

.bh-footer__contact i {
  color: var(--bh-accent);
  margin-top: 3px;
}

.bh-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.bh-footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--bh-line);
  background: rgba(255, 255, 255, .05);
  color: var(--bh-text);
  transition: all .18s ease;
}

.bh-footer__social a:hover {
  color: #fff;
  background: var(--bh-accent);
  border-color: transparent;
}

.bh-footer__form {
  display: flex;
  gap: 8px;
}

.bh-footer__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--bh-text);
  outline: none;
}

.bh-footer__form input::placeholder { color: #7b85b0; }

.bh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 54px;
  padding: 22px 0;
  border-top: 1px solid var(--bh-line);
  font-size: 13.5px;
}

.bh-footer__bottom a { color: var(--bh-muted); text-decoration: none; }
.bh-footer__bottom a:hover { color: #fff; }

/* -------------------------------- page head ------------------------------- */

.bh-pagehead {
  padding: 46px 0 30px;
}

.bh-pagehead h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.bh-pagehead p {
  margin: 0;
  max-width: 720px;
  color: var(--bh-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.bh-pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ------------------------------- game sub nav ----------------------------- */

.bh-gamenav {
  position: sticky;
  top: 74px;
  z-index: 1010;
  background: rgba(10, 12, 24, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bh-line);
}

.bh-gamenav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.bh-gamenav__inner::-webkit-scrollbar { display: none; }

.bh-gamenav__title {
  flex: 0 0 auto;
  margin-right: 8px;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
}

.bh-gamenav .bh-tab { flex: 0 0 auto; }

@media (max-width: 991px) {
  .bh-gamenav { top: 66px; }
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1199px) {
  .bh-search { flex-basis: 200px; }
  .bh-nav a { padding: 9px 11px; font-size: 14px; }
}

@media (max-width: 991px) {
  .bh-nav,
  .bh-search { display: none; }
  .bh-burger { display: inline-flex; }
  .bh-header__inner { min-height: 66px; justify-content: space-between; }
  .bh-hero { padding: 62px 0 66px; }
  .bh-detail__grid { grid-template-columns: 1fr; }
  .bh-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .bh-section { padding: 56px 0; }
}

@media (max-width: 767px) {
  .bh-hero__stats { gap: 22px; }
  .bh-hero__stat b { font-size: 24px; }

  /* The pill layout leaves the input too narrow on phones, so stack it. */
  .bh-hero__search {
    flex-direction: column;
    max-width: 100%;
    padding: 8px;
    border-radius: 24px;
  }
  .bh-hero__search input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    text-align: center;
  }
  .bh-hero__search button {
    width: 100%;
    justify-content: center;
  }

  .bh-statbar { grid-template-columns: repeat(2, 1fr); }
  .bh-section__head { flex-direction: column; align-items: flex-start; }
  .bh-card--row { flex-direction: column; }
  .bh-card--row .bh-card__media { flex-basis: auto; }
  .bh-shots { grid-template-columns: 1fr; }
  .bh-cta__form {
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 0 10px;
  }
  .bh-cta__form input {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    text-align: center;
  }
  .bh-cta__form .bh-btn {
    width: 100%;
    height: 50px;
  }
  /* Phones may need this line to break — only large screens force one line. */
  .bh-cta__hint { white-space: normal; }
  .bh-footer__grid { grid-template-columns: 1fr; }
  .bh-panel { padding: 20px; }
}

/* Code card footer: which game the code belongs to (genre / aggregate pages). */
.bh-code__game {
  margin-top: 6px;
  font-size: 12px;
  color: var(--bh-muted);
}

.bh-code__game a {
  color: var(--bh-accent);
  text-decoration: none;
}

.bh-code__game a:hover { text-decoration: underline; }

/* ==========================================================================
   Code alerts (per-game newsletter) + member dashboard
   ========================================================================== */

/* Small button size — used by the "stop alerts" link and dashboard rows. */
.bh-btn--sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
}

/* Dark-surface form field, shared by the alert panel and the dashboard. */
.bh-input {
  width: 100%;
  padding: 12px 15px;
  color: var(--bh-text);
  background: rgba(8, 10, 22, .6);
  border: 1px solid var(--bh-line-strong);
  border-radius: var(--bh-radius-sm);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.bh-input::placeholder { color: rgba(163, 172, 214, .7); }

.bh-input:focus {
  border-color: var(--bh-accent);
  box-shadow: 0 0 0 3px var(--bh-accent-soft);
}

/* --- the alert panel on a game's codes page ----------------------------- */

.bh-alert {
  border-color: var(--bh-line-strong);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--bh-accent-soft) 0%, transparent 60%),
    var(--bh-surface);
}

.bh-alert.is-busy { opacity: .6; }

.bh-alert__form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.bh-alert__form form .bh-btn { width: 100%; justify-content: center; }

.bh-alert__note {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--bh-muted);
}

.bh-alert__on {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bh-alert__on > i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--bh-green);
  border-radius: 50%;
}

.bh-alert__on > div { flex: 1; }

.bh-alert__on b {
  display: block;
  font-size: 15px;
}

.bh-alert__on span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--bh-muted);
}

.bh-alert__off { flex: none; margin-top: 4px; }

/* Hint line under the home-page newsletter form. It sits on its own row (not
   inside the flex form) so wide screens keep it on a single line. */
.bh-cta__hint {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bh-muted);
  white-space: nowrap;
}

/* --- subscription success screen ---------------------------------------- */

.bh-thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
}

.bh-thanks__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  font-size: 34px;
  color: #fff;
  background: var(--bh-grad);
  border-radius: 50%;
  box-shadow: 0 18px 40px -14px rgba(99, 102, 241, .7);
}

.bh-thanks__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.bh-thanks__lead {
  margin: 0 auto 26px;
  max-width: 440px;
  color: var(--bh-muted);
  line-height: 1.7;
}

.bh-thanks__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  margin-bottom: 26px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: 999px;
  color: var(--bh-text);
}

.bh-thanks__mail i { color: var(--bh-accent); }

.bh-thanks__games {
  padding: 22px;
  text-align: left;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
}

.bh-thanks__games h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bh-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bh-thanks__games-empty {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--bh-muted);
}

.bh-thanks__list { margin: 0; padding: 0; list-style: none; }

.bh-thanks__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--bh-line);
}

.bh-thanks__list li:first-child { border-top: 0; }

.bh-thanks__list i { color: var(--bh-accent); }

.bh-thanks__list span {
  margin-left: auto;
  font-size: 12px;
  color: var(--bh-muted);
}

.bh-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.bh-thanks__foot {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--bh-muted);
}

/* --- member dashboard ---------------------------------------------------- */

.bh-dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: start;
}

.bh-dash__side {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
}

.bh-dash__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bh-dash__nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--bh-radius-sm);
  color: var(--bh-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.bh-dash__nav a i { width: 16px; text-align: center; }

.bh-dash__nav a:hover {
  color: var(--bh-text);
  background: rgba(255, 255, 255, .05);
}

.bh-dash__nav a.is-active {
  color: #fff;
  background: var(--bh-grad);
  box-shadow: 0 12px 26px -14px rgba(99, 102, 241, .8);
}

.bh-dash__main { min-width: 0; }

.bh-dash__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  margin-bottom: 20px;
  background:
    radial-gradient(90% 140% at 100% 0%, var(--bh-accent-soft) 0%, transparent 62%),
    var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
}

.bh-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 62px;
  height: 62px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: var(--bh-grad);
  border-radius: 18px;
}

.bh-dash__hero h1 {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.bh-dash__hero p { margin: 0; font-size: 13px; color: var(--bh-muted); }

.bh-dash__hero .bh-actions { margin-left: auto; }

.bh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.bh-stat {
  display: block;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  transition: border-color .16s ease, transform .16s ease;
}

.bh-stat:hover {
  border-color: var(--bh-line-strong);
  transform: translateY(-2px);
}

.bh-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.bh-stat span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--bh-muted);
}

.bh-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.bh-section__title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.bh-section__title h2 i { margin-right: 9px; color: var(--bh-accent); }

/* Rows used by both the saved-games and code-alerts lists. */
.bh-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
}

.bh-row + .bh-row { margin-top: 12px; }

.bh-row__main { flex: 1; min-width: 0; }

.bh-row__main b {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.bh-row__main span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--bh-muted);
}

.bh-row__badge { flex: none; }

.bh-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}

.bh-table--bh {
  width: 100%;
  margin: 0;
  color: var(--bh-text);
  border-collapse: collapse;
}

.bh-table--bh thead th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bh-muted);
  border-bottom: 1px solid var(--bh-line);
}

.bh-table--bh tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--bh-line);
}

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

.bh-table--bh a { color: var(--bh-text); text-decoration: none; }
.bh-table--bh a:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .bh-dash { grid-template-columns: 1fr; }
  .bh-dash__side { position: static; }
  .bh-dash__nav { flex-direction: row; flex-wrap: wrap; }
  .bh-stats { grid-template-columns: 1fr; }
  .bh-dash__hero .bh-actions { margin-left: 0; }
}

/* Count badge inside the member navigation. */
.bh-navcount {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--bh-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.bh-dash__nav a.is-active .bh-navcount {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* ==========================================================================
   Login + account forms
   ========================================================================== */

/* Centred auth card for the guest login page. */
.bh-auth { padding: 0 0 96px; }

.bh-auth__card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 38px 36px;
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  box-shadow: var(--bh-shadow);
}

.bh-auth__head {
  margin: 0 0 22px;
  text-align: center;
}

.bh-auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--bh-grad);
  color: #fff;
  font-size: 22px;
}

.bh-auth__head h1 {
  margin: 15px 0 6px;
  font-size: 25px;
  font-weight: 800;
}

.bh-auth__head p {
  margin: 0;
  font-size: 14px;
  color: var(--bh-muted);
}

.bh-auth__social {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.bh-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--bh-line-strong);
  border-radius: var(--bh-radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.bh-social__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--bh-shadow);
}

.bh-social__btn--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.bh-social__btn--google { background: #f7f8fc; border-color: var(--bh-line-strong); color: #0f172a; }

.bh-auth__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--bh-muted);
}

.bh-auth__or::before,
.bh-auth__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bh-line);
}

/* Secondary link row: "Forgot password?" / "Signup" on the guest auth pages. */
.bh-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 4px 0 20px;
  font-size: 13.5px;
  color: var(--bh-muted);
}

.bh-auth__row a {
  color: var(--bh-accent);
  font-weight: 600;
  text-decoration: none;
}

.bh-auth__row a:hover { text-decoration: underline; }

/* --- shared dark form bits ----------------------------------------------- */

.bh-field { margin-bottom: 15px; }

.bh-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--bh-muted);
}

.bh-field--file {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--bh-line);
}

.bh-field__hint {
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--bh-muted);
}

.bh-field__err {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: #ff8a9c;
}

.bh-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px dashed var(--bh-line-strong);
  border-radius: var(--bh-radius-sm);
  color: var(--bh-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s ease;
}

.bh-file:hover { border-color: var(--bh-accent); }

.bh-input--area {
  min-height: 96px;
  resize: vertical;
}

.bh-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
}

.bh-field--full { grid-column: 1 / -1; }

.bh-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bh-btn--block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
}

/* Session-flash notes (success / error) on the dark member pages. */
.bh-note {
  padding: 11px 15px;
  margin-bottom: 18px;
  border: 1px solid var(--bh-line-strong);
  border-radius: var(--bh-radius-sm);
  font-size: 13.5px;
}

.bh-note--ok {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .32);
  color: #8ff0b0;
}

.bh-note--err {
  background: rgba(255, 138, 156, .12);
  border-color: rgba(255, 138, 156, .32);
  color: #ffb4bf;
}

.mb-20 { margin-bottom: 20px; }

@media (max-width: 991px) {
  .bh-auth__card { padding: 32px 24px; }
  .bh-form-grid { grid-template-columns: 1fr; }
}

/* ------------------------------- dark FAQ ------------------------------- */
/* The FAQ used to render with Bootstrap's light-theme accordion, which was
   unreadable on the dark shell. Native <details> keeps it dependency free. */

.bh-faq {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.bh-faq__item {
  background: var(--bh-surface);
  border: 1px solid var(--bh-line);
  border-radius: var(--bh-radius);
  transition: border-color .18s ease, background .18s ease;
}

.bh-faq__item:hover {
  border-color: var(--bh-line-strong);
}

.bh-faq__item[open] {
  border-color: rgba(99, 102, 241, .45);
  background: rgba(99, 102, 241, .06);
}

.bh-faq__q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--bh-text);
  line-height: 1.5;
}

.bh-faq__q::-webkit-details-marker { display: none; }

.bh-faq__n {
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(99, 102, 241, .16);
  color: var(--bh-accent);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bh-faq__qtext { flex: 1 1 auto; }

.bh-faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--bh-line-strong);
}

.bh-faq__mark::before,
.bh-faq__mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.6px;
  background: var(--bh-muted);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.bh-faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }

.bh-faq__item[open] .bh-faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); }

.bh-faq__a {
  padding: 0 22px 20px 66px;
  color: var(--bh-muted);
  font-size: 15px;
  line-height: 1.8;
}

.bh-faq__a p { margin: 0; }

/* ------------------------- custom / legal pages ------------------------- */
/* Terms & Condition and Privacy Policy are stored in the `pages` table and
   rendered through the catch-all route, so the dark shell lives here. */

.bh-legal__foot {
  max-width: 820px;
  margin: 18px auto 0;
  text-align: center;
  color: var(--bh-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.bh-legal__foot a { color: var(--bh-accent); font-weight: 600; }

.bh-panel > .bh-prose { max-width: 820px; }

.bh-panel > .bh-prose h2 {
  padding-top: 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.bh-panel > .bh-prose li { margin-bottom: 6px; }

.bh-panel > .bh-prose ul {
  list-style: none;
  padding-left: 20px;
}

.bh-panel > .bh-prose ul > li { position: relative; }

.bh-panel > .bh-prose ul > li::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bh-accent);
}
