:root {
  --bd-bg: #08090d;
  --bd-panel: rgba(18, 20, 28, .94);
  --bd-panel-2: rgba(31, 34, 45, .88);
  --bd-line: rgba(255, 255, 255, .11);
  --bd-text: #f7f7fb;
  --bd-muted: #aeb2c2;
  --bd-gold: #f4c95d;
  --bd-gold-2: #ffdf86;
  --bd-danger: #ff5c5c;
  --bd-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 50% 10%, rgba(244, 201, 93, .16), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(219, 226, 234, .08), transparent 28%),
    linear-gradient(180deg, #11131b 0%, var(--bd-bg) 58%, #050509 100%);
  color: var(--bd-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: relative;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, .022) 0,
      rgba(255, 255, 255, .022) 1px,
      transparent 2px,
      transparent 5px
    );
  mix-blend-mode: overlay;
  opacity: .32;
}

.bd-shell {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.bd-card {
  width: min(100%, 520px);
  max-height: 100%;
  background: linear-gradient(180deg, var(--bd-panel), rgba(9, 10, 15, .95));
  border: 1px solid var(--bd-line);
  border-radius: 28px;
  box-shadow: var(--bd-shadow);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px 0;
  flex: 0 0 auto;
}

.bd-kicker {
  margin: 0 0 2px;
  color: var(--bd-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 6vw, 38px);
  letter-spacing: -.045em;
  line-height: .95;
}

.bd-account-pill {
  border: 1px solid rgba(244, 201, 93, .28);
  background: rgba(244, 201, 93, .08);
  color: var(--bd-gold-2);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.bd-game-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 23px;
  border: 1px solid var(--bd-line);
  background: #0a0b10;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 7 / 12;
  max-height: calc(100dvh - 200px);
  align-self: center;
  width: min(calc(100% - 18px), 398px);
  box-shadow:
    inset 0 0 0 8px rgba(255,255,255,.025),
    0 14px 45px rgba(0,0,0,.28);
  cursor: pointer;
  touch-action: none;
  -ms-touch-action: none;
  overscroll-behavior: contain;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -ms-touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.bd-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(244, 201, 93, .22), transparent 24%),
    rgba(5, 6, 10, .78);
  backdrop-filter: blur(5px);
  color: #fff;
  z-index: 5;
}

.bd-overlay--show { display: flex; }

.bd-logo-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  background:
    linear-gradient(135deg, rgba(244, 201, 93, .95), rgba(255,255,255,.82) 52%, rgba(172, 131, 34, .92));
  color: #14110b;
  font-weight: 1000;
  font-size: 27px;
  letter-spacing: -.08em;
  box-shadow: 0 0 45px rgba(244, 201, 93, .28);
}

.bd-overlay h2 {
  margin-bottom: 2px;
  color: #fff;
  font-size: clamp(34px, 10vw, 46px);
  line-height: .9;
  letter-spacing: -.06em;
  text-shadow: 0 3px 0 #111, 0 0 24px rgba(0,0,0,.42);
}

.bd-overlay p {
  max-width: 330px;
  color: rgba(255,255,255,.86);
  margin-bottom: 2px;
}

.bd-btn, .bd-link-btn {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 170px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--bd-gold), #fff0b0);
  color: #17120a;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(244, 201, 93, .2);
  touch-action: manipulation;
}

.bd-btn--ghost, .bd-link-btn {
  border: 1px solid var(--bd-line);
  background: rgba(255,255,255,.07);
  color: var(--bd-text);
  box-shadow: none;
}

.bd-small {
  font-size: 12px;
}

.bd-score-line {
  margin-bottom: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.bd-death-line {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 850;
}

.bd-hud-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  flex: 0 0 auto;
}

.bd-hud-card {
  border: 1px solid var(--bd-line);
  background: var(--bd-panel-2);
  border-radius: 16px;
  padding: 10px 11px;
}

.bd-hud-card span {
  display: block;
  color: var(--bd-muted);
  font-size: 10px;
  font-weight: 800;
}

.bd-hud-card strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

@media (max-width: 430px) {
  .bd-shell { padding: 8px; }
  .bd-card { border-radius: 22px; padding: 12px; }
  .bd-game-wrap {
    width: calc(100% - 8px);
    max-height: calc(100dvh - 172px);
    border-radius: 19px;
  }
  .bd-hud-row { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .bd-hud-card { padding: 8px; border-radius: 13px; }
  .bd-hud-card strong { font-size: 11px; }
  .bd-account-pill { font-size: 11px; padding: 7px 9px; }
}

@media (max-height: 720px) {
  .bd-kicker { display: none; }
  h1 { font-size: 24px; }
  .bd-game-wrap { max-height: calc(100dvh - 145px); }
  .bd-hud-card { padding-block: 7px; }
}

@media (max-height: 620px) {
  .bd-hud-row { display: none; }
  .bd-game-wrap { max-height: calc(100dvh - 86px); }
}


.bd-tap-hint {
  margin: -4px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bd-logo-mark {
  position: relative;
  overflow: hidden;
}

.bd-logo-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 24%),
    linear-gradient(145deg, #10131b, #050609);
  box-shadow: inset 0 0 0 2px rgba(244,201,93,.72);
}

.bd-logo-mark::after {
  content: "BT";
  position: relative;
  z-index: 1;
  color: #f4c95d;
  text-shadow: 0 0 18px rgba(244,201,93,.3);
}


/* v5: real BT logo image */
.bd-logo-mark {
  background: #050609;
  padding: 0;
  border-radius: 50%;
  box-shadow:
    0 0 45px rgba(255,255,255,.16),
    0 0 65px rgba(244,201,93,.10);
}

.bd-logo-mark::before,
.bd-logo-mark::after {
  display: none !important;
  content: none !important;
}

.bd-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

button,
a,
canvas,
.bd-game-wrap,
.bd-overlay {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}


/* v5.1 spacing + controlled scroll fix */
@media (max-width: 430px) {
  .bd-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bd-card {
    padding: 13px;
  }

  .bd-game-wrap {
    width: calc(100% - 12px);
    margin-inline: auto;
  }
}

/* Keep game interaction locked while allowing page scroll outside */
canvas {
  touch-action: none;
}

.bd-game-wrap,
.bd-overlay {
  touch-action: none;
}


/* v6: reliable mobile scroll outside the game */
html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: static !important;
  touch-action: pan-y !important;
}

.bd-shell {
  min-height: auto !important;
  height: auto !important;
  align-items: start;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.bd-card {
  margin-block: 0 26px;
}

.bd-game-wrap,
.bd-game-wrap *,
canvas {
  touch-action: none !important;
}


/* v8 polish pass — keep v7 feel, cleaner BT styling */
.bd-card {
  border-radius: 22px;
  border-color: rgba(255,255,255,.095);
}
.bd-game-wrap {
  border: 2px solid #111;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.035),
    0 12px 28px rgba(17,17,17,.16);
}
.bd-account-pill {
  border-radius: 10px;
}
.bd-overlay {
  background:
    linear-gradient(180deg, rgba(5,6,10,.84), rgba(5,6,10,.92)),
    radial-gradient(circle at 50% 24%, rgba(244,201,93,.20), transparent 28%);
  color: #fff;
}
@media (max-width: 520px) {
  .bd-shell {
    place-items: start center;
    padding: max(8px, env(safe-area-inset-top)) 8px max(14px, env(safe-area-inset-bottom));
    overflow: visible;
  }
  .bd-card {
    width: 100%;
    padding: 10px;
    gap: 9px;
  }
  .bd-topbar {
    gap: 8px;
  }
  .bd-kicker {
    font-size: 9px;
    letter-spacing: .12em;
  }
  h1 {
    font-size: clamp(25px, 8.8vw, 36px);
  }
  .bd-account-pill {
    font-size: 11px;
    padding: 7px 9px;
  }
}

/* v12.3 BT site integration */
body.bd-page {
  min-height: 100vh !important;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-y;
  overscroll-behavior-y: auto;
}

body.bd-page::before {
  display: none;
}

body.bd-page header#siteHeader,
body.bd-page footer#siteFooter {
  background: var(--bg);
  color: var(--text);
}

body.bd-page footer#siteFooter .muted {
  color: var(--text);
}

.bd-page-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 52px;
  max-width: none;
  overflow: visible;
  color: #111;
  background: #fff;
  border-radius: 0;
}

.bd-page-main .bd-kicker {
  color: #6b7280;
  letter-spacing: .12em;
}

.bd-game-panel .bd-kicker,
.bd-leaderboard .bd-kicker {
  color: #111;
}

.bd-hero .bd-kicker {
  color: #f4c95d;
}

.bd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .32fr);
  gap: 18px;
  align-items: end;
  margin: 10px 0 22px;
  padding: 0;
  border: 1px solid #111;
  border-radius: 18px;
  background: #05080c;
  box-shadow: 0 18px 42px rgba(8,18,26,.16);
  overflow: hidden;
}

.bd-hero__banner {
  grid-column: 1 / -1;
  position: relative;
  background: #05080c;
}

.bd-hero__banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(5,8,12,0), rgba(5,8,12,.88));
  pointer-events: none;
}

.bd-hero__banner img {
  display: block;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
}

.bd-hero__copy,
.bd-hero__stats {
  position: relative;
  z-index: 1;
  margin-top: -118px;
  padding: 0 clamp(16px, 3vw, 28px) clamp(16px, 3vw, 24px);
}

.bd-hero__copy {
  min-width: 0;
}

.bd-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(42px, 8vw, 78px);
  line-height: .9;
  letter-spacing: -.075em;
  text-shadow: 0 3px 0 #111, 0 0 28px rgba(0,0,0,.46);
}

.bd-hero__lead {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 2.1vw, 22px);
  line-height: 1.45;
}

.bd-hero__actions,
.bd-account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bd-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  background: #fff;
}

.bd-page-btn:hover {
  border-color: #c9c9c9;
  background: #f7f7f7;
  text-decoration: none;
}

.bd-page-btn--gold {
  color: #fff;
  background: #111;
  border-color: #111;
}

.bd-page-btn--small {
  min-height: 38px;
  font-size: 13px;
}

.bd-hero__stats {
  display: grid;
  gap: 10px;
  align-content: center;
}

.bd-stat {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 16px;
  background: rgba(7,12,18,.78);
  backdrop-filter: blur(8px);
}

.bd-stat span {
  display: block;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bd-stat strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
}

.bd-account-actions.is-hidden {
  display: none;
}

.bd-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
  scroll-margin-top: 20vh;
}

.bd-game-panel {
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.bd-game-panel .bd-section-head {
  display: grid;
  gap: 4px;
}

.bd-game-panel .bd-game-wrap {
  width: min(100%, 420px);
  margin: 0 auto;
}

.bd-game-panel .bd-hud-row {
  margin-top: 12px;
}

.bd-game-panel .bd-hud-card {
  border-color: #e5e5e5;
  border-radius: 12px;
  background: #f8f8f8;
}

.bd-game-panel .bd-hud-card span {
  color: #777;
}

.bd-game-panel .bd-hud-card strong {
  color: #111;
}

.bd-section-head {
  margin-bottom: 14px;
}

.bd-section-head h2 {
  margin: 0 0 6px;
  color: #111;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .95;
  letter-spacing: -.06em;
}

.bd-section-head p {
  margin: 0;
  color: #5f6670;
  line-height: 1.45;
}

#bdLeaderboardStatus + p {
  display: none;
}

.bd-info-card,
.bd-leaderboard {
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  margin-bottom: 14px;
}

.bd-info-card--gold {
  border-color: #d6d6d6;
  background:
    linear-gradient(135deg, rgba(244,201,93,.16), transparent 44%),
    linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  color: #111;
}

.bd-info-card--gold h3 {
  color: #111;
}

.bd-info-card--gold p {
  color: #555;
}

.bd-info-card h3 {
  margin: 0 0 10px;
  color: #111;
  font-size: 22px;
}

.bd-info-card p,
.bd-info-card li {
  color: #555;
  line-height: 1.5;
}

.bd-info-card--gold p,
.bd-info-card--gold li {
  color: #555;
}

.bd-info-card ul {
  padding-left: 20px;
  margin: 0;
}

.bd-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.bd-account-stats div {
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.bd-account-stats span {
  display: block;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bd-account-stats strong {
  display: block;
  margin-top: 3px;
  color: #111;
  font-size: 18px;
}

.bd-current-coin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.bd-current-coin img {
  width: 58px;
  aspect-ratio: 1;
  object-fit: contain;
}

.bd-current-coin span {
  display: block;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bd-current-coin strong {
  display: block;
  margin-top: 3px;
  color: #111;
  font-size: 16px;
}

.bd-rewards {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #e1e1e1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.bd-rewards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 16px;
}

.bd-reward-panel {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  background: #f8f8f8;
}

.bd-reward-panel h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 22px;
}

.bd-coin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bd-coin-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-height: 184px;
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 12px;
  padding: 12px 8px;
  background: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.bd-coin-card:disabled {
  cursor: not-allowed;
}

.bd-coin-card.is-selected {
  border-color: rgba(244,201,93,.9);
  box-shadow: 0 0 0 3px rgba(244,201,93,.18);
}

.bd-coin {
  width: 86px;
  aspect-ratio: 1;
  object-fit: contain;
}

.bd-coin-name {
  color: #111;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bd-coin-rule {
  min-height: 32px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

.bd-coin-state {
  border-radius: 999px;
  padding: 5px 8px;
  color: #111;
  background: #ececec;
  font-size: 11px;
  font-weight: 900;
}

.bd-coin-card.is-unlocked .bd-coin-state,
.bd-achievement.is-unlocked .bd-achievement-state {
  color: #111;
  background: #f4c95d;
}

.bd-coin-card.is-locked .bd-coin {
  filter: grayscale(.65);
  opacity: .72;
}

.bd-achievement-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.bd-achievement {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(244,201,93,.12), transparent 48%),
    linear-gradient(180deg, #1c1f25 0%, #0f1116 100%);
  color: #fff;
}

.bd-achievement.is-locked {
  background: #f2f2f2;
  border-color: rgba(17,17,17,.08);
  color: #111;
}

.bd-achievement-icon {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111;
  background:
    radial-gradient(circle at 32% 22%, #fff4ba 0 8%, transparent 28%),
    linear-gradient(135deg, #f4c95d, #b88622);
  box-shadow: inset 0 0 0 2px rgba(17,17,17,.16);
  font-size: 18px;
  font-weight: 1000;
}

.bd-achievement.is-locked .bd-achievement-icon {
  filter: grayscale(1);
  opacity: .62;
}

.bd-achievement-title {
  color: inherit;
  font-weight: 900;
}

.bd-achievement-rule {
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.bd-achievement.is-locked .bd-achievement-rule {
  color: #6b7280;
}

.bd-achievement-date {
  margin-top: 6px;
  color: #f4c95d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bd-achievement-state {
  grid-column: 2;
  justify-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  color: #555;
  background: #ececec;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.bd-toast-stack {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.bd-achievement-toast {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(244,201,93,.36);
  border-radius: 14px;
  padding: 12px;
  background: rgba(10,12,16,.96);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}

.bd-achievement-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bd-achievement-toast__icon {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4c95d;
  color: #111;
  font-weight: 1000;
}

.bd-achievement-toast__eyebrow,
.bd-achievement-toast span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.bd-achievement-toast strong {
  display: block;
  margin: 2px 0;
  font-size: 16px;
}

.bd-leaderboard {
  margin-top: 22px;
  scroll-margin-top: 18vh;
}

.bd-board-tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.bd-board-tabs button {
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff;
  color: #111;
  font-weight: 800;
}

.bd-board-tabs .is-active {
  color: #fff;
  background: #111;
  border-color: #111;
}

.bd-board {
  overflow: hidden;
  border: 1px solid #e1e1e1;
  border-radius: 14px;
  background: #fff;
}

.bd-board-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 90px 110px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #eeeeee;
}

.bd-board-row:last-child {
  border-bottom: 0;
}

.bd-board-row--head {
  background: #f5f5f5;
  color: #666;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bd-board-row strong,
.bd-board-row span {
  color: #111;
}

.bd-board-row em {
  color: #717171;
  font-style: normal;
  font-size: 13px;
}

@media (max-width: 900px) {
  .bd-hero,
  .bd-layout {
    grid-template-columns: 1fr;
  }

  .bd-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .bd-hero__copy {
    margin-top: -88px;
  }

  .bd-hero__stats {
    margin-top: 0;
  }

  .bd-side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .bd-rewards-layout {
    grid-template-columns: 1fr;
  }

  .bd-coin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bd-info-card {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .bd-page-main {
    width: min(100%, calc(100% - 16px));
    padding-top: 14px;
    border-radius: 20px;
  }

  .bd-hero {
    border-radius: 16px;
  }

  .bd-hero h1 {
    font-size: clamp(44px, 16vw, 68px);
  }

  .bd-hero__stats {
    grid-template-columns: 1fr;
  }

  .bd-hero__copy {
    margin-top: 0;
    padding-top: 18px;
    padding-inline: 12px;
  }

  .bd-hero__stats {
    margin-top: 0;
    padding-inline: 12px;
  }

  .bd-hero__copy {
    padding-bottom: 8px;
  }

  .bd-game-panel {
    padding: 10px;
    border-radius: 20px;
  }

  .bd-side-panel {
    grid-template-columns: 1fr;
  }

  .bd-account-stats,
  .bd-coin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bd-coin-card {
    min-height: 170px;
  }

  .bd-coin {
    width: 76px;
  }

  .bd-achievement {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .bd-achievement-icon {
    width: 38px;
    font-size: 14px;
  }

  .bd-achievement-state {
    grid-column: 2;
    justify-self: start;
  }

  .bd-board-row {
    grid-template-columns: 52px minmax(0, 1fr) 64px;
  }

  .bd-board-row span:nth-child(4),
  .bd-board-row em {
    display: none;
  }
}
