/* BTD6 Master Profiles — built on the site's own design tokens (bloon-site / bmh). */
.bmp, .bmp-userbtn {
  --bms-ink: #212121; --bms-banana: #ffcc00; --bms-peel: #fff6cf; --bms-orange: #ff9d00;
  --bms-paper: #fff; --bms-line: #e6e2d6; --bms-muted: #5f5b52; --bms-hover: #fffbe8;
  --bms-blue: #2f6fdb; --bms-red: #d64545; --bms-green: #3e8e2f; --bms-purple: #8a3fc4;
  --bms-display: Outfit, Rubik, system-ui, sans-serif;
  --bmp-black: #000;
}
body.dark .bmp {
  --bms-ink: #f1f1f1; --bms-paper: #222; --bms-line: #3a3a3a; --bms-muted: #bdb8ad;
  --bms-peel: #3a3423; --bms-hover: #2c2a25; --bmp-black: #000;
}
.bmp { color: var(--bms-ink); font-family: Rubik, system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
.bmp *, .bmp *::before, .bmp *::after { box-sizing: border-box; }
.bmp a { color: inherit; }
.bmp img { max-width: 100%; height: auto; }
.bmp h1, .bmp h2, .bmp h3, .bmp p { margin: 0; }
.bmp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* page shell (our own template, same width as the home page) */
.bmp-main { padding: 24px 0 50px; }
.bmp-shell { max-width: 1280px; margin: 0 auto; padding: 0 17px; }

/* ---------- sections, heads ---------- */
.bmp-sec {
  background: var(--bms-paper); border: 3px solid var(--bmp-black); border-radius: 18px;
  box-shadow: 7px 7px 0 var(--bmp-black); padding: 24px; margin: 0 0 28px;
}
.bmp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.bmp-kicker { display: block; font-family: var(--bms-display); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8a6d00; margin: 0 0 4px; }
body.dark .bmp-kicker { color: var(--bms-banana); }
.bmp .bmp-h { font-family: var(--bms-display); font-size: 30px; font-weight: 900; line-height: 1.15; color: var(--bms-ink); }
.bmp-more { font-weight: 700; text-decoration: none !important; border-bottom: 3px solid var(--bms-banana); padding-bottom: 1px; white-space: nowrap; }
.bmp-more:hover { background: var(--bms-peel); }
.bmp-lead { color: var(--bms-muted); max-width: 720px; margin: -6px 0 16px !important; }
.bmp-sub { color: var(--bms-muted); font-size: 14px; }

/* hero (banana, like the home page hero) */
.bmp-hero { background: var(--bms-banana); position: relative; overflow: hidden; }
.bmp-hero::after { content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--bms-orange); pointer-events: none; }
.bmp-hero::before { content: ''; position: absolute; right: 60px; top: 20px; width: 84px; height: 84px; border-radius: 50%; background: #fff3b0; pointer-events: none; }
.bmp-hero > * { position: relative; z-index: 1; }
.bmp-hero .bmp-kicker { color: #6b5500; }
.bmp .bmp-hero__title { font-family: var(--bms-display); font-size: 46px; font-weight: 900; line-height: 1.08; color: #212121; max-width: 760px; }
.bmp-hero__lead { color: #2b2b2b; max-width: 640px; margin: 12px 0 0 !important; font-size: 17px; }
.bmp-hero__stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0 0; color: #212121; font-size: 14px; }
.bmp-hero__stats b { font-family: var(--bms-display); font-size: 18px; font-weight: 900; }
.bmp-hero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bmp .bmp-hero .bmp-btn.is-ghost { background: #fff; color: #212121 !important; border-color: #212121; box-shadow: 3px 3px 0 #212121; }

/* ---------- buttons, pills, .bmp fields ---------- */
.bmp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--bms-display); font-weight: 800; font-size: 16px; line-height: 1.1;
  padding: 11px 18px; border: 2px solid #212121; border-radius: 12px; box-shadow: 3px 3px 0 #212121;
  background: var(--bms-banana); color: #212121 !important; text-decoration: none !important; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.bmp .bmp-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #212121; }
.bmp .bmp-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #212121; }
.bmp .bmp-btn.is-ghost { background: var(--bms-paper); color: var(--bms-ink) !important; border-color: var(--bms-ink); box-shadow: 3px 3px 0 var(--bms-ink); }
.bmp .bmp-btn.is-small { font-size: 14px; padding: 8px 13px; border-radius: 10px; }
.bmp .bmp-btn.is-wide { width: 100%; }
.bmp .bmp-btn.is-danger { background: #c0392b; color: #fff !important; }
.bmp .bmp-mini { font: 700 13px/1 Rubik, sans-serif; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--bms-line); background: var(--bms-peel); color: var(--bms-ink); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.bmp .bmp-mini:hover { border-color: var(--bms-ink); }
.bmp .bmp-mini:disabled { opacity: .45; cursor: default; }
.bmp-pill { display: inline-block; font-family: var(--bms-display); font-size: 11px; font-weight: 800; line-height: 1.4; padding: 2px 9px; border: 2px solid #212121; border-radius: 999px; background: var(--bms-banana); color: #212121; vertical-align: middle; }
.bmp-pill.is-green { background: #8fd36f; }
.bmp .bmp-btn:focus-visible, .bmp .bmp-mini:focus-visible, .bmp .bmp-dpill:focus-visible, .bmp .bmp-htile:focus-visible, .bmp .bmp-seg button:focus-visible, .bmp .bmp-drawer-btn:focus-visible, .bmp-gc:focus-visible { outline: 3px solid var(--bms-blue); outline-offset: 2px; }

.bmp-notice { border: 2px solid #212121; border-radius: 14px; padding: 12px 16px; margin: 0 0 22px; font-weight: 600; box-shadow: 3px 3px 0 #212121; color: #212121; }
.bmp-notice.is-ok { background: #dff3d4; }
.bmp-notice.is-err { background: #ffe0dc; }
.bmp-warn { font-weight: 600; color: #b03a2e; }
.bmp-empty { border: 2px dashed var(--bms-line); border-radius: 14px; padding: 26px 18px; text-align: center; color: var(--bms-muted); grid-column: 1 / -1; }
.bmp-empty b { color: var(--bms-ink); }

.bmp-field { display: block; margin: 0 0 14px; }
.bmp-field > span { display: block; font-family: var(--bms-display); font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.bmp-field small { display: block; color: var(--bms-muted); font-size: 13px; margin-top: 4px; }
.bmp input[type=text], .bmp input[type=email], .bmp input[type=password], .bmp select {
  width: 100%; height: auto; font: 16px/1.3 Rubik, sans-serif; color: var(--bms-ink); background: var(--bms-paper);
  border: 2px solid var(--bms-ink); border-radius: 12px; padding: 11px 13px; margin: 0; box-shadow: none;
}
.bmp select { padding-right: 34px; cursor: pointer; }
.bmp input:focus, .bmp select:focus { outline: none; box-shadow: 0 0 0 3px var(--bms-banana); }
.bmp-check { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 16px; font-size: 15px; cursor: pointer; }
.bmp-check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: #212121; flex-shrink: 0; }
.bmp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bmp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 26px; }
.bmp-tabs a { font-family: var(--bms-display); font-weight: 800; font-size: 15px; text-decoration: none !important; padding: 8px 15px; border: 2px solid var(--bms-ink); border-radius: 12px; background: var(--bms-paper); color: var(--bms-ink); }
.bmp-tabs a:hover { background: var(--bms-hover); }
.bmp-tabs a[aria-current=page] { background: var(--bms-banana); color: #212121; border-color: #212121; box-shadow: 3px 3px 0 #212121; }
.bmp-tabs.is-inline { margin: 0; }

.bmp-card { background: var(--bms-paper); border: 2px solid var(--bms-ink); border-radius: 14px; padding: 18px; }

/* ---------- Strategy Finder ---------- */
.bmp-sync { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; padding: 10px 12px 10px 14px; background: #fff; border: 2px solid #212121; border-radius: 14px; font-size: 14px; color: #212121; max-width: 860px; }
.bmp-sync > span:not(.bmp-pill) { flex: 1; min-width: 200px; }
.bmp .bmp-sync .bmp-mini { background: #fff6cf; color: #212121; border-color: #e6e2d6; }
.bmp-finder.is-compact .bmp-sync { margin: 0 0 18px; max-width: none; }

.bmp-controls { padding: 18px 20px; }
.bmp-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.bmp-select { display: block; min-width: 200px; }
.bmp-select > span { display: block; font-family: var(--bms-display); font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--bms-muted); margin: 0 0 6px; }
.bmp-select[hidden] { display: none; }
.bmp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bmp .bmp-dpill { --gc: #212121; font: 800 14px/1 var(--bms-display); padding: 11px 14px; border-radius: 999px; border: 2px solid var(--bms-ink); background: var(--bms-paper); color: var(--bms-ink); cursor: pointer; }
.bmp .bmp-dpill:hover { background: var(--bms-hover); }
.bmp .bmp-dpill[aria-pressed=true] { background: var(--gc); color: #fff; border-color: #212121; }
.bmp .bmp-dpill[data-diff=""][aria-pressed=true] { background: var(--bms-banana); color: #212121; }
.bmp-switch { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; padding-bottom: 10px; }
.bmp-switch[hidden] { display: none; }
.bmp-switch input { width: 18px; height: 18px; accent-color: #212121; margin: 0; }

.bmp-unlocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 2px dashed var(--bms-line); }
.bmp .bmp-drawer-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; background: var(--bms-peel); border: 2px solid var(--bms-ink); border-radius: 14px; color: var(--bms-ink); cursor: pointer; font: 15px/1.2 Rubik, sans-serif; }
.bmp .bmp-drawer-btn:hover { background: var(--bms-hover); }
.bmp-drawer-btn__label { font-family: var(--bms-display); font-weight: 900; font-size: 17px; }
.bmp .bmp-drawer-btn strong { margin-left: auto; font-weight: 600; color: var(--bms-muted); font-size: 14px; }
.bmp .bmp-drawer-btn i { font-style: normal; transition: transform .15s; }
.bmp .bmp-drawer-btn[aria-expanded=true] { background: var(--bms-banana); color: #212121; box-shadow: 3px 3px 0 #212121; border-color: #212121; }
.bmp .bmp-drawer-btn[aria-expanded=true] strong { color: #212121; }
.bmp .bmp-drawer-btn[aria-expanded=true] i { transform: rotate(180deg); }
.bmp-drawer { margin-top: 14px; }
.bmp-drawer[hidden] { display: none; }
.bmp-drawer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; font-size: 14px; color: var(--bms-muted); }
.bmp-drawer__head b { color: var(--bms-ink); }
.bmp-drawer__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.bmp-hero-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.bmp .bmp-htile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 2px solid var(--bms-ink); border-radius: 14px; background: var(--bms-paper); color: var(--bms-ink); cursor: pointer; font: 600 13px/1.2 Rubik, sans-serif; text-align: center; transition: transform .12s, box-shadow .12s; }
.bmp .bmp-htile:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--bms-ink); }
.bmp .bmp-htile[aria-pressed=false] { opacity: .45; filter: grayscale(1); border-style: dashed; }
.bmp .bmp-htile[aria-pressed=true] { background: var(--bms-peel); }
.bmp .bmp-htile:disabled { cursor: default; }
.bmp-htile__img, .bmp-ttile__img { width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--bms-ink); background: #fff; display: grid; place-items: center; overflow: hidden; font: 900 20px var(--bms-display); color: #212121; flex-shrink: 0; }
.bmp-htile__img img, .bmp-ttile__img img { width: 100%; height: 100%; object-fit: contain; }
.bmp-tower-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.bmp-ttile { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 2px solid var(--bms-ink); border-radius: 14px; background: var(--bms-paper); }
.bmp-ttile .bmp-ttile__img { width: 40px; height: 40px; }
.bmp-ttile.is-off { opacity: .55; }
.bmp-ttile.is-off .bmp-ttile__img { filter: grayscale(1); }
.bmp-ttile__name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.2; }
.bmp .bmp-seg { display: inline-flex; border: 2px solid var(--bms-ink); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.bmp .bmp-seg button { font: 800 13px/1 var(--bms-display); border: 0; background: var(--bms-paper); color: var(--bms-ink); min-width: 26px; padding: 7px 0; cursor: pointer; }
.bmp .bmp-seg button + button { border-left: 2px solid var(--bms-ink); }
.bmp .bmp-seg button:hover { background: var(--bms-hover); }
.bmp .bmp-seg button[aria-pressed=true] { background: var(--bms-banana); color: #212121; }
.bmp .bmp-seg button[data-v="-1"][aria-pressed=true] { background: #212121; color: #fff; }
.bmp-ttile__tiers { font: 800 13px var(--bms-display); padding: 4px 9px; border: 2px solid #212121; border-radius: 999px; background: var(--bms-banana); color: #212121; }
.bmp-ttile__tiers.is-locked { background: #212121; color: #fff; }

/* guide cards (same family as "Today in BTD6") */
.bmp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bmp-gc { display: flex; flex-direction: column; border: 2px solid var(--bms-ink); border-radius: 14px; overflow: hidden; background: var(--bms-paper); color: var(--bms-ink) !important; text-decoration: none !important; transition: transform .12s, box-shadow .12s; }
.bmp-gc:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--bms-ink); }
.bmp-gc__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #091836; border-bottom: 2px solid var(--bms-ink); overflow: hidden; }
.bmp-gc__media > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.bmp-gc__ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; background: radial-gradient(circle at 85% 115%, var(--bms-orange) 0 32%, transparent 33%), var(--bms-banana); }
.bmp-gc__ph b { font: 900 22px/1.05 var(--bms-display); color: #212121; }
.bmp-gc__tag { position: absolute; top: 8px; left: 8px; font: 800 11px/1.3 var(--bms-display); padding: 3px 9px; border: 2px solid #212121; border-radius: 999px; background: var(--gc); color: #fff; }
.bmp-gc__medal { position: absolute; top: 5px; right: 6px; width: 38px; height: 38px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,.35)); }
.bmp-gc__done { position: absolute; bottom: 8px; left: 8px; font: 800 11px/1.3 var(--bms-display); padding: 3px 9px; border: 2px solid #212121; border-radius: 999px; background: #8fd36f; color: #212121; }
.bmp-gc__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.bmp-gc__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.bmp-gc__meta { font-size: 13px; color: var(--bms-muted); font-weight: 600; }
.bmp-gc__uses { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; }
.bmp-ico { width: 30px; height: 30px; border: 1.5px solid var(--bms-ink); border-radius: 8px; background: #fff; overflow: hidden; display: inline-grid; place-items: center; }
.bmp-ico img { width: 100%; height: 100%; object-fit: contain; }
.bmp-ico.is-text { width: auto; height: auto; padding: 2px 7px; font-size: 12px; font-weight: 600; background: var(--bms-peel); color: var(--bms-ink); border-color: var(--bms-line); border-radius: 999px; }
.bmp-gc__need { margin-top: 8px; font-size: 13px; line-height: 1.35; padding: 7px 9px; border-radius: 10px; background: #ffe7c2; color: #3b2a00; border: 1px solid #f0c27a; }
.bmp-gc.is-near { border-style: dashed; }
.bmp-gc.is-near .bmp-gc__media { filter: saturate(.55); }
.bmp-showmore { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.bmp-noscript { columns: 3; margin: 0; padding-left: 18px; }
.bmp-results[hidden] { display: none; }

/* ---------- profile ---------- */
.bmp-profile__top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bmp-profile__who { flex: 1; min-width: 220px; }
.bmp-profile .bmp-hero__title { font-size: 40px; }
.bmp-profile__ign { margin-top: 6px !important; color: #2b2b2b; }
.bmp-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #212121; overflow: hidden; display: inline-grid; place-items: center; background: var(--bms-blue); color: #fff; font: 900 18px var(--bms-display); flex-shrink: 0; vertical-align: middle; }
.bmp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bmp-avatar.is-xl { width: 92px; height: 92px; font-size: 40px; border-width: 3px; box-shadow: 4px 4px 0 #000; }
.bmp-avatar.is-l { width: 64px; height: 64px; font-size: 26px; }
.bmp-avatar.is-s { width: 32px; height: 32px; font-size: 14px; }
.bmp-level { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; background: #fff; border: 3px solid #000; border-radius: 16px; box-shadow: 4px 4px 0 #000; color: #212121; }
.bmp-level span { display: block; font: 800 12px var(--bms-display); letter-spacing: 1px; text-transform: uppercase; color: #8a6d00; }
.bmp-level strong { display: block; font: 900 22px/1.1 var(--bms-display); }
.bmp-xp { margin: 18px 0 16px; max-width: 760px; }
.bmp-xp__bar { height: 16px; border: 2px solid #212121; border-radius: 999px; background: #fff; overflow: hidden; }
.bmp-xp__bar span { display: block; height: 100%; background: repeating-linear-gradient(-45deg, #212121 0 8px, #3b3b3b 8px 16px); border-radius: 999px; }
.bmp-xp p { margin-top: 6px !important; font-size: 14px; color: #2b2b2b; }
.bmp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bmp-tile { --tc: var(--bms-blue); display: block; background: var(--bms-paper); color: var(--bms-ink) !important; border: 2px solid var(--bms-ink); border-left: 8px solid var(--tc); border-radius: 14px; padding: 14px 14px 12px 16px; text-decoration: none !important; }
.bmp-hero .bmp-tile { background: #fff; color: #212121 !important; border-color: #212121; border-left-color: var(--tc); }
.bmp-tile b { display: block; font: 900 32px/1 var(--bms-display); }
.bmp-tile span { display: block; font-weight: 700; margin-top: 4px; }
.bmp-tile small { display: block; font-size: 13px; color: var(--bms-muted); }
.bmp-hero .bmp-tile small { color: #5f5b52; }

/* medals by difficulty (like the guides' medal columns) */
.bmp-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bmp-col { border: 2px solid var(--bms-ink); border-radius: 14px; overflow: hidden; background: var(--bms-paper); }
.bmp .bmp-col__head { display: flex; justify-content: space-between; align-items: center; background: var(--gc); color: #fff; padding: 9px 14px; font: 800 17px var(--bms-display); }
.bmp-col__head small { font-size: 12px; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 999px; }
.bmp-col ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; }
.bmp-col__row { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--bms-hover); margin: 0; }
.bmp-col__row img { grid-row: 1 / 3; width: 34px; height: 34px; }
.bmp-col__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.bmp-col__num { font: 900 16px var(--bms-display); }
.bmp-col__bar { grid-column: 2 / 4; height: 6px; border-radius: 999px; background: var(--bms-line); overflow: hidden; margin-top: 4px; }
.bmp-col__bar span { display: block; height: 100%; background: var(--gc); }

/* map-by-map board */
.bmp-board-wrap { overflow: auto; max-height: 720px; border: 2px solid var(--bms-ink); border-radius: 14px; }
.bmp-board { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; margin: 0; background: var(--bms-paper); }
.bmp-board th, .bmp-board td { border: 0; padding: 4px; text-align: center; background: var(--bms-paper); }
.bmp-board thead th { position: sticky; z-index: 2; }
.bmp-board__groups th { top: 0; height: 32px; background: var(--gc, #212121); color: #fff; font: 800 13px var(--bms-display); padding: 0 4px; }
.bmp-board__groups th.bmp-board__map { background: #212121; text-align: left; padding-left: 14px; left: 0; z-index: 3; vertical-align: middle; }
.bmp-board__modes th { top: 32px; background: var(--bms-peel); border-bottom: 2px solid var(--bms-ink); }
.bmp-board__modes img { width: 22px; height: 22px; display: block; margin: 0 auto; }
.bmp-board tbody th { position: sticky; left: 0; z-index: 1; text-align: left; padding: 6px 12px 6px 14px; font-weight: 700; white-space: nowrap; border-right: 2px solid var(--bms-line); }
.bmp-board tbody tr:nth-child(even) th, .bmp-board tbody tr:nth-child(even) td { background: var(--bms-hover); }
.bmp-m { display: inline-block; width: 30px; height: 30px; border-radius: 50%; padding: 2px; line-height: 0; }
.bmp-m img { width: 26px; height: 26px; opacity: .14; filter: grayscale(1); }
.bmp-m.is-on img { opacity: 1; filter: none; }
.bmp-m.is-guide { box-shadow: inset 0 0 0 2px var(--bms-banana); }
.bmp-m.is-guide img { opacity: .4; }
.bmp-m.is-guide:hover { background: var(--bms-banana); }
.bmp-m.is-guide:hover img { opacity: 1; filter: none; }

/* bloon level badge */
.bmp-bloon { --bloon: #d64545; display: inline-block; position: relative; width: 24px; height: 30px; border-radius: 50% 50% 47% 47% / 56% 56% 44% 44%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 11%, transparent 12%), var(--bloon); border: 2px solid #212121; flex-shrink: 0; vertical-align: middle; }
.bmp-bloon::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 7px; height: 5px; transform: translateX(-50%); background: #212121; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bmp-bloon.is-rainbow { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.8) 0 11%, transparent 12%), linear-gradient(180deg, #e74c3c, #ff9d00, #ffcc00, #3e8e2f, #2f6fdb, #8a3fc4); }
.bmp-bloon-l { width: 42px; height: 52px; border-width: 3px; }
.bmp-bloon-l::after { bottom: -8px; width: 9px; height: 7px; }
.bmp-bloon-s { width: 16px; height: 20px; }
.bmp-bloon-s::after { bottom: -5px; width: 5px; height: 4px; }

/* account */
.bmp-syncbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: -8px 0 24px; font-size: 14px; color: var(--bms-muted); }
.bmp-syncbar > p { flex: 1; min-width: 240px; }
.bmp-syncbar form { margin: 0; }
.bmp-connect__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.bmp-form-card { background: var(--bms-peel); }
.bmp-steps { list-style: none; counter-reset: s; margin: 0 0 16px; padding: 0; }
.bmp-steps li { counter-increment: s; position: relative; padding: 4px 0 10px 42px; margin: 0; }
.bmp-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--bms-banana); border: 2px solid #212121; color: #212121; display: grid; place-items: center; font: 800 13px var(--bms-display); }
.bmp-note { border-left: 4px solid var(--bms-ink); background: var(--bms-hover); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 14px; }
.bmp-note p + p { margin-top: 8px !important; }
.bmp-settings .bmp-sec { max-width: 860px; }
.bmp-danger { border-color: #c0392b; box-shadow: 7px 7px 0 #c0392b; }
.bmp-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.bmp-inline-form .bmp-field { margin: 0; flex: 1; min-width: 220px; }

/* sign in / sign up */
.bmp-auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.bmp-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.bmp-perks li { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #212121; border-radius: 14px; padding: 10px 12px; color: #212121; margin: 0; }
.bmp-perks li > img, .bmp-perk-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; }
.bmp-perks b { display: block; font-family: var(--bms-display); font-size: 16px; }
.bmp-perks span { display: block; font-size: 14px; color: #4d4a43; }
.bmp-auth__box { background: var(--bms-paper); border: 3px solid #000; border-radius: 18px; box-shadow: 6px 6px 0 #000; padding: 20px; }
.bmp .bmp-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bms-peel); border: 2px solid var(--bms-ink); border-radius: 14px; margin: 0 0 18px; }
.bmp .bmp-auth__tabs button { font: 800 15px var(--bms-display); border: 0; border-radius: 10px; padding: 10px; background: transparent; color: var(--bms-ink); cursor: pointer; }
.bmp .bmp-auth__tabs button[aria-selected=true] { background: var(--bms-banana); color: #212121; box-shadow: inset 0 0 0 2px #212121; }
.bmp-auth [data-pane][hidden] { display: none; }
.bmp-forgot { text-align: center; margin-top: 12px !important; font-size: 14px; }

/* leaderboard */
.bmp-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 26px 0 22px; }
.bmp-podium__spot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 12px 16px; border: 2px solid var(--bms-ink); border-radius: 14px; background: var(--bms-paper); color: var(--bms-ink) !important; text-decoration: none !important; transition: transform .12s, box-shadow .12s; }
.bmp-podium__spot:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--bms-ink); }
.bmp-podium__spot.is-1 { background: var(--bms-banana); color: #212121 !important; border-color: #212121; padding-top: 40px; box-shadow: 4px 4px 0 #212121; }
.bmp-podium__place { position: absolute; top: -2px; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #212121; color: var(--bms-banana); font: 900 16px var(--bms-display); border: 2px solid #212121; }
.bmp-podium__spot strong { font: 800 17px var(--bms-display); word-break: break-word; }
.bmp-podium__score { font: 900 34px/1 var(--bms-display); }
.bmp-podium__lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.bmp-table-wrap { border: 2px solid var(--bms-ink); border-radius: 14px; overflow: hidden; }
.bmp-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; background: var(--bms-paper); }
.bmp-table th { background: #212121; color: #fff; font: 800 12px var(--bms-display); text-transform: uppercase; letter-spacing: .8px; text-align: left; padding: 10px 14px; border: 0; }
.bmp-table td { padding: 9px 14px; border: 0; border-top: 1px solid var(--bms-line); vertical-align: middle; }
.bmp-table tr:hover td { background: var(--bms-hover); }
.bmp-table .num { text-align: right; }
.bmp-table tr.is-me td { background: var(--bms-peel); }
.bmp-pos span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; font: 900 14px var(--bms-display); background: var(--bms-peel); border: 1px solid var(--bms-line); }
.bmp-player { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none !important; }
.bmp-player:hover { text-decoration: underline !important; }
.bmp-lvl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.bmp-ranks { display: flex; flex-wrap: wrap; gap: 8px; }
.bmp-rank-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--bms-peel); border: 1px solid var(--bms-line); }
.bmp-rank-chip em { font-style: normal; color: var(--bms-muted); font-size: 13px; }

/* ---------- site integrations ---------- */
.bmp-userbtn { overflow: hidden; }
.bmp-userbtn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.bmp-guidebox { display: flex; gap: 16px; align-items: center; margin: 28px 0 8px; padding: 18px; background: var(--bms-peel); border: 2px solid var(--bms-ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--bms-ink); }
.bmp-guidebox.is-beaten { background: #e6f4dc; }
body.dark .bmp-guidebox.is-beaten { background: #26331f; }
.bmp-guidebox__medal { width: 64px; height: 64px; flex-shrink: 0; }
.bmp .bmp-guidebox__title { font: 900 21px/1.2 var(--bms-display); margin: 0 0 4px; }
.bmp .bmp-guidebox__text { font-size: 15px; color: var(--bms-muted); margin: 0 0 12px; }
.bmp-guidebox__acts { display: flex; flex-wrap: wrap; gap: 10px; }

.bmp-homeband { margin: 0 0 28px; position: relative; overflow: clip; color: #fff;
  background-color: #1b3a8c;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.7px), linear-gradient(135deg, #2f6fdb 0%, #1b3a8c 55%, #142a66 100%);
  background-size: 22px 22px, 100% 100%; }
.bmp-homeband .bmp-kicker { color: var(--bms-banana); }
.bmp.bmp-homeband .bmp-h { color: #fff; font-size: 34px; }
.bmp-homeband .bmp-lead { color: #dbe5ff; margin: 8px 0 18px !important; }
.bmp-hb__list li.is-open ~ li.is-open .bmp-hb__claim { display: none; }
.bmp-hb { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.bmp-homeband .bmp-bandtiles { grid-template-columns: 1fr; gap: 10px; }
.bmp-homeband .bmp-tile { background: #fff; color: #212121 !important; border-color: #000; }
.bmp-homeband .bmp-tile.is-link span { color: #5f5b52; }
.bmp-homeband .bmp-tile.is-link:hover { box-shadow: 4px 4px 0 #000; }
.bmp-hb__cta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px; background: var(--bms-banana); color: #212121; border: 3px solid #000; border-radius: 16px; box-shadow: 6px 6px 0 #000; }
.bmp-hb__cta > div { flex: 1 1 220px; }
.bmp-hb__cta b { display: block; font: 900 22px/1.15 var(--bms-display); }
.bmp-hb__cta span { display: block; font-size: 14px; color: #3d3a33; margin-top: 3px; }
.bmp .bmp-btn.bmp-btn--big { font-size: 19px; padding: 15px 22px; background: #212121; color: #ffcc00 !important; border: 3px solid #000; box-shadow: 4px 4px 0 #fff; }
.bmp .bmp-btn.bmp-btn--big:hover, .bmp .bmp-btn.bmp-btn--big:focus { background: #000; color: #ffcc00 !important; border-color: #000; box-shadow: 6px 6px 0 #fff; }
.bmp-hb__login { flex-basis: 100%; font-size: 14px; font-weight: 600; color: #212121 !important; text-decoration: underline !important; }
.bmp-hb__board { background: #fff; color: #212121; border: 3px solid #000; border-radius: 16px; box-shadow: 6px 6px 0 #000; padding: 16px 14px 10px; }
.bmp-hb__boardhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 4px 10px; border-bottom: 2px solid #e6e2d6; }
.bmp-hb__boardhead .bmp-kicker { color: #8a6d00; }
.bmp-hb__boardhead b { font: 900 22px/1.1 var(--bms-display); }
.bmp-hb__boardhead .bmp-more { color: #212121 !important; font-size: 14px; }
.bmp ol.bmp-hb__list { list-style: none; margin: 0; padding: 0; }
.bmp-hb__list li { margin: 0; padding: 0; border-bottom: 1px solid #efece3; }
.bmp-hb__list li:last-child { border-bottom: 0; }
.bmp-hb__list a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; color: #212121 !important; text-decoration: none !important; border-radius: 10px; }
.bmp-hb__list a:hover { background: #fffbe8; }
.bmp-hb__pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: #fff6cf; border: 1px solid #e6e2d6; font: 900 13px var(--bms-display); flex-shrink: 0; }
.bmp-hb__list li.is-1 .bmp-hb__pos { background: #ffcc00; border: 2px solid #212121; }
.bmp-hb__list li.is-2 .bmp-hb__pos { background: #dfe3ea; border: 2px solid #212121; }
.bmp-hb__list li.is-3 .bmp-hb__pos { background: #e8b07a; border: 2px solid #212121; }
.bmp-hb__who { flex: 1; min-width: 0; }
.bmp-hb__who strong { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmp-hb__who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5f5b52; }
.bmp-hb__who .bmp-bloon { width: 12px; height: 15px; border-width: 1.5px; }
.bmp-hb__score { text-align: right; line-height: 1; }
.bmp-hb__score b { display: block; font: 900 18px var(--bms-display); }
.bmp-hb__score small { font-size: 11px; color: #5f5b52; }
.bmp-hb__list li.is-open .bmp-hb__who strong { color: #8f8a7e; font-weight: 600; }
.bmp-hb__list li.is-open .bmp-avatar { background: #f3f1ea; color: #b0aa9b; border: 2px dashed #c9c3b3; }
.bmp-hb__claim { font: 800 12px var(--bms-display); text-transform: uppercase; letter-spacing: .6px; padding: 5px 9px; border-radius: 999px; background: #212121; color: #ffcc00; }
.bmp-hb__list li.is-open a:hover .bmp-hb__claim { background: #000; }
/* front cards: glass on blue instead of white */
.bmp-hb__badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 6px 16px 6px 6px; background: rgba(255,204,0,.14); border: 2px solid var(--bms-banana); border-radius: 999px; color: var(--bms-banana); font: 900 18px/1 var(--bms-display); letter-spacing: .4px; text-transform: uppercase; }
.bmp-hb__badge em { font-style: normal; padding: 6px 11px; border-radius: 999px; background: var(--bms-banana); color: #212121; border: 2px solid #000; font-size: 14px; letter-spacing: 1px; }
@media (max-width: 560px) { .bmp-hb__badge { font-size: 14px; } .bmp-hb__badge em { font-size: 12px; } }
.bmp-homeband .bmp-tile.is-link, body.dark .bmp-homeband .bmp-tile.is-link { background: rgba(255,255,255,.08); color: #fff !important; border: 2px solid rgba(255,255,255,.22); border-left: 2px solid rgba(255,255,255,.22); border-radius: 16px; padding: 12px 14px; grid-template-columns: 58px minmax(0, 1fr) 20px; column-gap: 18px; row-gap: 3px; backdrop-filter: blur(2px); }
.bmp-homeband .bmp-tile.is-link img { box-sizing: border-box; width: 52px !important; height: 52px !important; min-width: 52px; max-width: none !important; aspect-ratio: 1 / 1; object-fit: contain; padding: 5px; border-radius: 14px; background: var(--tc); border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.bmp-homeband .bmp-tile.is-link b { color: #fff; font-size: 19px; }
.bmp-homeband .bmp-tile.is-link span { color: #c9d7ff; }
.bmp-homeband .bmp-tile.is-link::after { content: '\2192'; grid-column: 3; grid-row: 1 / 3; font: 900 20px var(--bms-display); color: var(--bms-banana); transition: transform .12s; }
.bmp-homeband .bmp-tile.is-link:hover { background: rgba(255,255,255,.16); border-color: var(--bms-banana); transform: none; box-shadow: none; }
.bmp-homeband .bmp-tile.is-link:hover::after { transform: translateX(4px); }
.bmp-hb__board, body.dark .bmp-hb__board { background: #0e1d4a; color: #fff; border: 3px solid #000; box-shadow: 6px 6px 0 #000; }
.bmp-hb__boardhead { border-bottom-color: rgba(255,255,255,.14); }
.bmp-hb__boardhead .bmp-kicker { color: var(--bms-banana); }
.bmp-hb__boardhead b { color: #fff; }
.bmp-hb__boardhead .bmp-more { color: #fff !important; }
.bmp-hb__boardhead .bmp-more:hover { background: rgba(255,255,255,.1); }
.bmp-hb__list li { border-bottom-color: rgba(255,255,255,.08); }
.bmp-hb__list a { color: #fff !important; }
.bmp-hb__list a:hover { background: rgba(255,255,255,.07); }
.bmp-hb__pos { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.bmp-hb__list li.is-1 .bmp-hb__pos, .bmp-hb__list li.is-2 .bmp-hb__pos, .bmp-hb__list li.is-3 .bmp-hb__pos { color: #212121; border-color: #000; }
.bmp-hb__list li.is-1 a { background: rgba(255,204,0,.12); }
.bmp-hb__who small, .bmp-hb__score small { color: #9fb2e6; }
.bmp-hb__score b { color: var(--bms-banana); }
.bmp-hb__list li.is-open .bmp-hb__who strong { color: #8ea0d4; }
.bmp-hb__list li.is-open .bmp-hb__who small { color: #6f82b8; }
.bmp-hb__list li.is-open .bmp-avatar { background: transparent; color: #6f82b8; border: 2px dashed #4a5f99; }
.bmp-hb__claim { background: var(--bms-banana); color: #212121; }
.bmp-hb__list li.is-open a:hover .bmp-hb__claim { background: #fff; }
.bmp-bandtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bmp-tile.is-link { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; transition: transform .12s, box-shadow .12s; }
.bmp-tile.is-link img { grid-row: 1 / 3; width: 44px; height: 44px; }
.bmp-tile.is-link b { font-size: 20px; }
.bmp-tile.is-link span { font-weight: 400; font-size: 14px; color: var(--bms-muted); margin: 2px 0 0; }
.bmp-tile.is-link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--bms-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .bmp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bmp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .bmp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmp .bmp-hero__title { font-size: 34px; }
  .bmp-unlocks, .bmp-connect__grid, .bmp-auth, .bmp-bandtiles { grid-template-columns: 1fr; }
  .bmp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmp-hb { grid-template-columns: 1fr; }
  .bmp.bmp-homeband .bmp-h { font-size: 28px; }
  .bmp-select { flex: 1 1 100%; min-width: 0; }
  .bmp-noscript { columns: 1; }
}
@media (max-width: 560px) {
  .bmp-sec { padding: 18px 16px; border-radius: 16px; box-shadow: 5px 5px 0 var(--bmp-black); margin-bottom: 22px; }
  .bmp-shell { padding: 0 12px; }
  .bmp-grid { grid-template-columns: 1fr; }
  .bmp-cols { grid-template-columns: 1fr; }
  .bmp .bmp-h { font-size: 24px; }
  .bmp .bmp-hero__title, .bmp-profile .bmp-hero__title { font-size: 30px; }
  .bmp-hero::before { display: none; }
  .bmp .bmp-dpill { padding: 9px 11px; font-size: 13px; }
  .bmp-tower-grid { grid-template-columns: 1fr; }
  .bmp-hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bmp-podium { gap: 8px; }
  .bmp-podium__score { font-size: 24px; }
  .bmp-podium__spot { padding-left: 6px; padding-right: 6px; }
  .bmp-table th:nth-child(3), .bmp-table td:nth-child(3) { display: none; }
  .bmp-table th, .bmp-table td { padding: 8px 10px; }
  .bmp-guidebox { flex-direction: column; align-items: flex-start; }
  .bmp-tile b { font-size: 26px; }
}

/* ---------- keep the theme's generic button:hover/:focus colors off our buttons ---------- */
.bmp .bmp-btn:hover, .bmp .bmp-btn:focus { background: var(--bms-banana); color: #212121 !important; border-color: #212121; }
.bmp .bmp-btn.is-ghost:hover, .bmp .bmp-btn.is-ghost:focus { background: var(--bms-hover); color: var(--bms-ink) !important; border-color: var(--bms-ink); }
.bmp-hero .bmp-btn.is-ghost:hover, .bmp-hero .bmp-btn.is-ghost:focus { background: #fff8d6; color: #212121 !important; border-color: #212121; }
.bmp .bmp-btn.is-danger:hover, .bmp .bmp-btn.is-danger:focus { background: #a93226; color: #fff !important; }
.bmp .bmp-mini:hover, .bmp .bmp-mini:focus { background: var(--bms-peel); color: var(--bms-ink); border-color: var(--bms-ink); }
.bmp .bmp-dpill:hover, .bmp .bmp-dpill:focus { color: var(--bms-ink); border-color: var(--bms-ink); }
.bmp .bmp-dpill[aria-pressed=true]:hover, .bmp .bmp-dpill[aria-pressed=true]:focus { background: var(--gc); color: #fff; border-color: #212121; }
.bmp .bmp-dpill[data-diff=""][aria-pressed=true]:hover, .bmp .bmp-dpill[data-diff=""][aria-pressed=true]:focus { background: var(--bms-banana); color: #212121; }
.bmp .bmp-drawer-btn:hover, .bmp .bmp-drawer-btn:focus { color: var(--bms-ink); border-color: var(--bms-ink); }
.bmp .bmp-drawer-btn[aria-expanded=true]:hover, .bmp .bmp-drawer-btn[aria-expanded=true]:focus { background: var(--bms-banana); color: #212121; border-color: #212121; }
.bmp .bmp-htile:hover, .bmp .bmp-htile:focus { background: var(--bms-paper); color: var(--bms-ink); border-color: var(--bms-ink); }
.bmp .bmp-htile[aria-pressed=true]:hover, .bmp .bmp-htile[aria-pressed=true]:focus { background: var(--bms-peel); }
.bmp .bmp-seg button:hover, .bmp .bmp-seg button:focus { background: var(--bms-hover); color: var(--bms-ink); border-color: var(--bms-ink); }
.bmp .bmp-seg button[aria-pressed=true]:hover, .bmp .bmp-seg button[aria-pressed=true]:focus { background: var(--bms-banana); color: #212121; }
.bmp .bmp-seg button[data-v="-1"][aria-pressed=true]:hover, .bmp .bmp-seg button[data-v="-1"][aria-pressed=true]:focus { background: #212121; color: #fff; }
.bmp .bmp-auth__tabs button:hover, .bmp .bmp-auth__tabs button:focus { background: var(--bms-hover); color: var(--bms-ink); }
.bmp .bmp-auth__tabs button[aria-selected=true]:hover, .bmp .bmp-auth__tabs button[aria-selected=true]:focus { background: var(--bms-banana); color: #212121; }

/* mobile header: keep search and profile buttons side by side */
.m-header .right-nav:has(.bmp-userbtn) { display: flex; align-items: center; gap: 8px; }
.m-header .right-nav .bmp-userbtn { margin: 0; }

/* ---------- leaderboard page ---------- */
/* rank shield, in the spirit of BTD6 hero level icons */
.bmp-place { --p1: #ffe36b; --p2: #f5a300; --pe: #7a4a00; position: relative; display: inline-grid; place-items: center; width: 38px; height: 42px; flex-shrink: 0; vertical-align: middle;
  clip-path: polygon(50% 0, 100% 16%, 100% 64%, 50% 100%, 0 64%, 0 16%); background: #111; }
.bmp-place::before { content: ''; position: absolute; inset: 3px; clip-path: inherit; background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.55) 0 18%, transparent 19%), linear-gradient(180deg, var(--p1) 0%, var(--p2) 100%); }
.bmp-place::after { content: ''; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 34%; clip-path: polygon(0 0, 100% 0, 100% 15%, 50% 100%, 0 15%); background: rgba(0,0,0,.16); }
.bmp-place span { position: relative; z-index: 1; font: 900 16px/1 var(--bms-display); color: #fff; margin-top: -3px;
  text-shadow: -1.5px -1.5px 0 var(--pe), 1.5px -1.5px 0 var(--pe), -1.5px 1.5px 0 var(--pe), 1.5px 1.5px 0 var(--pe), 0 2px 0 var(--pe); }
.bmp-place.is-gold   { --p1: #fff07a; --p2: #f5a300; --pe: #7a4a00; }
.bmp-place.is-silver { --p1: #ffffff; --p2: #a9b3c2; --pe: #3f4a5a; }
.bmp-place.is-bronze { --p1: #ffc690; --p2: #c26a2b; --pe: #5a2a08; }
.bmp-place.is-purple { --p1: #d6a4ff; --p2: #7b3fc4; --pe: #331060; }
.bmp-place.is-blue   { --p1: #9fd0ff; --p2: #2f6fdb; --pe: #0d2a63; }
.bmp-place.is-green  { --p1: #bff08a; --p2: #3e8e2f; --pe: #163d10; }
.bmp-place.is-red    { --p1: #ffb0a4; --p2: #d64545; --pe: #5c1010; }
.bmp-place.is-l { width: 52px; height: 58px; }
.bmp-place.is-l span { font-size: 22px; }
.bmp-place.is-s { width: 28px; height: 31px; }
.bmp-place.is-s span { font-size: 12px; margin-top: -2px; }

/* ranking section: royal blue, same family as the home leaderboard */
.bmp-lb { color: #fff; background-color: #1b3a8c;
  background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.7px), linear-gradient(135deg, #2f6fdb 0%, #1b3a8c 55%, #142a66 100%); background-size: 22px 22px, 100% 100%; }
.bmp.bmp-leaderboard .bmp-lb .bmp-h, .bmp.bmp-leaderboard .bmp-levels .bmp-h { color: #fff; font-size: 34px; }
.bmp-lb__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.bmp-lb__tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.bmp-lb__tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 9px; border-radius: 14px; font: 800 17px var(--bms-display); text-decoration: none !important; color: #fff !important; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.3); }
.bmp-lb__tabs a img { width: 30px; height: 30px; }
.bmp-lb__tabs a:hover { background: rgba(255,255,255,.18); }
.bmp-lb__tabs a[aria-current=page] { background: #ffcc00; color: #212121 !important; border-color: #000; box-shadow: 4px 4px 0 #000; }
.bmp-lb__me { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 0 !important; color: #dbe5ff; font-weight: 600; }
.bmp-lb__me a { color: #ffcc00 !important; text-decoration: underline !important; }
.bmp-lb .bmp-podium { margin-top: 34px; }
.bmp-lb .bmp-podium__spot { background: #fff6cf; color: #212121 !important; border: 3px solid #000; box-shadow: 5px 5px 0 #000; padding-top: 18px; }
.bmp-lb .bmp-podium__spot.is-1 { background: #ffcc00; padding-top: 30px; }
.bmp-lb .bmp-podium__spot:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #000; }
.bmp-lb .bmp-podium__spot.is-open strong { color: #8f8a7e; }
.bmp-lb .bmp-podium__spot .bmp-place { margin-top: -44px; }
.bmp-lb .bmp-podium__spot.is-1 .bmp-place { margin-top: -56px; }
.bmp-avatar.is-empty { background: #f3f1ea; color: #b0aa9b; border: 2px dashed #c9c3b3; }
.bmp-lb__table { border: 3px solid #000; box-shadow: 6px 6px 0 #000; background: #fff; }
.bmp-lb .bmp-table { background: #fff; color: #212121; }
.bmp-lb .bmp-table th { background: #212121; color: #ffcc00; font: 900 15px var(--bms-display); letter-spacing: .6px; padding: 14px 16px; }
.bmp-lb .bmp-table td { padding: 10px 16px; border-top: 1px solid #ece8dc; font-size: 16px; }
.bmp-lb .bmp-table td.num b { font: 900 19px var(--bms-display); }
.bmp-lb .bmp-table td.is-sorted b { color: #b37a00; }
.bmp-lb .bmp-table tr:hover td { background: #fffbe8; }
.bmp-lb .bmp-table tr.is-me td { background: #fff1b8; }
.bmp-lb .bmp-table .bmp-player { color: #212121 !important; font-size: 16px; }
.bmp-lb .bmp-table tr.is-open td { color: #8f8a7e; }
.bmp-lb .bmp-table tr.is-open a { display: inline-flex; align-items: center; gap: 10px; color: #8f8a7e !important; font-weight: 700; text-decoration: none !important; }
.bmp-lb .bmp-table tr.is-open em { font-style: normal; font-weight: 600; color: #b37a00; margin-left: 4px; }
.bmp-lb .bmp-table tr.is-open .bmp-place { filter: grayscale(1); opacity: .45; }
.bmp-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bmp-pager a, .bmp-pager span { display: inline-flex; flex-direction: column; align-items: center; min-width: 66px; padding: 7px 12px; border-radius: 12px; text-decoration: none !important; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff !important; }
.bmp-pager b { font: 900 18px/1.1 var(--bms-display); }
.bmp-pager small { font-size: 11px; opacity: .8; }
.bmp-pager a:hover { background: rgba(255,255,255,.2); }
.bmp-pager .is-current { background: #ffcc00; color: #212121 !important; border-color: #000; box-shadow: 3px 3px 0 #000; }
.bmp-pager .is-empty { opacity: .4; }

/* levels section: purple */
.bmp-levels { color: #fff; background-color: #6a35b3;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #9a5ce0 0%, #6a35b3 55%, #4e2390 100%); background-size: 22px 22px, 100% 100%; }
.bmp-levels .bmp-lead { color: #eadcff; max-width: 820px; margin: 8px 0 20px !important; }
.bmp-levels .bmp-lead b { color: #ffcc00; }
.bmp-levels__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.bmp-levels__steps > div { position: relative; padding: 16px 16px 16px 64px; background: #fff6cf; color: #212121; border: 3px solid #000; border-radius: 16px; box-shadow: 5px 5px 0 #000; }
.bmp-levels__steps b { display: block; font: 900 18px/1.2 var(--bms-display); margin-bottom: 4px; }
.bmp-levels__steps span:not(.bmp-levels__n) { font-size: 14px; color: #4a463d; }
.bmp-levels__n { position: absolute; left: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #212121; color: #ffcc00; font: 900 18px var(--bms-display); }
.bmp.bmp-leaderboard .bmp-levels__sub { color: #fff; font: 900 22px var(--bms-display); margin: 6px 0 12px; }
.bmp-levels__sub small { font: 600 14px Rubik, sans-serif; color: #d9c6ff; margin-left: 8px; }
.bmp ol.bmp-ladder { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bmp-ladder li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; text-align: center; background: #fff6cf; color: #212121; border: 2px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; }
.bmp-ladder.is-blimps li { background: #ffcc00; }
.bmp-ladder__lv { font: 900 12px var(--bms-display); letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #212121; color: #ffcc00; }
.bmp-ladder li b { font: 900 16px/1.15 var(--bms-display); }
.bmp-ladder__need { font-size: 13px; font-weight: 600; color: #5f5b52; }
.bmp-ladder__bar { width: 100%; height: 7px; border-radius: 999px; background: rgba(0,0,0,.12); overflow: hidden; }
.bmp-ladder__bar i { display: block; height: 100%; background: #6a35b3; border-radius: 999px; }
.bmp-levels__note { margin: 0 !important; font-size: 14px; color: #eadcff; }
@media (max-width: 820px) { .bmp-levels__steps { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bmp.bmp-leaderboard .bmp-lb .bmp-h, .bmp.bmp-leaderboard .bmp-levels .bmp-h { font-size: 26px; }
  .bmp-lb .bmp-table th, .bmp-lb .bmp-table td { padding: 9px 10px; }
  .bmp-lb .bmp-table th:nth-child(3), .bmp-lb .bmp-table td:nth-child(3) { display: none; }
  .bmp-pager a, .bmp-pager span { min-width: 54px; padding: 6px 8px; }
  .bmp ol.bmp-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bmp-pos .bmp-place { border: 0; border-radius: 0; min-width: 0; height: 42px; background: #111; }
.bmp-pos .bmp-place span { border: 0; border-radius: 0; min-width: 0; height: auto; background: none; font-size: 16px; }
.bmp-lb .bmp-table td.bmp-pos { width: 70px; }

/* ---------- Strategy Finder card beside the home page hero text ---------- */
.bmh-hero:has(.bmh-finder) { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 32px; align-items: start; }
.bmh-hero:has(.bmh-finder) > :not(.bmh-finder) { grid-column: 1; }
.bmh-finder { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 6; align-self: center; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; color: #212121; border: 3px solid #000; border-radius: 18px; box-shadow: 6px 6px 0 #000; transform: rotate(1.2deg); }
.bmh-finder__icons { display: flex; justify-content: space-between; gap: 4px; padding: 8px 10px; background: #fff6cf; border: 2px solid #000; border-radius: 12px; }
.bmh-finder__icons img { width: 44px; height: 44px; }
.bmh-finder__tag { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: #212121; color: #ffcc00; font: 800 11px var(--bms-display); letter-spacing: 1px; text-transform: uppercase; }
.bmh-finder__txt b { display: block; font: 900 22px/1.15 var(--bms-display); margin-bottom: 6px; }
.bmh-finder__txt > span:not(.bmh-finder__tag) { display: block; font-size: 14.5px; line-height: 1.45; color: #3d3a33; }
.bmh-finder__txt small { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #8a6d00; }
.bmh .bmh-finder__btn { display: block; text-align: center; background: #212121; color: #ffcc00 !important; border-color: #000; box-shadow: 3px 3px 0 #000; font-size: 16px; padding: 12px 14px; }
.bmh .bmh-finder__btn:hover { background: #000; }
@media (max-width: 900px) {
  .bmh-hero:has(.bmh-finder) { display: block; }
  .bmh-finder { margin-top: 22px; transform: none; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .bmh-finder__icons { display: none; }
  .bmh-finder__txt { flex: 1 1 260px; }
  .bmh-finder__txt > span:not(.bmh-finder__tag) { display: none; }
  .bmh .bmh-finder__btn { flex: 1 1 200px; }
}
.bmp .bmp-seg button { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; height: auto; line-height: 1; }
.bmp .bmp-seg button + button { border-left: 2px solid var(--bms-ink) !important; }

/* finder card: a little bigger, further from the right edge */
@media (min-width: 901px) {
  .bmh-hero:has(.bmh-finder) { grid-template-columns: minmax(0, 1fr) 350px; column-gap: 36px; }
  .bmh-finder { margin-right: 28px; padding: 22px; gap: 14px; }
  .bmh-finder__icons img { width: 52px; height: 52px; }
  .bmh-finder__txt b { font-size: 25px; }
  .bmh-finder__txt > span:not(.bmh-finder__tag) { font-size: 15.5px; }
  .bmh .bmh-finder__btn { font-size: 17px; padding: 14px 16px; }
}

/* medal icons keep their own shape (they are taller than wide) */
.bmh-finder__icons { align-items: center; }
.bmh-finder__icons img, .bmh-finder .bmh-finder__icons img { width: auto !important; height: 58px !important; max-width: 25%; object-fit: contain; }

/* ---------- per-path tiers in the towers drawer ---------- */
.bmp .bmp-own { flex-shrink: 0; width: 30px; height: 30px; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; border: 2px solid #212121 !important; background: #3e8e2f !important; color: #fff !important; font: 900 15px/1 var(--bms-display); cursor: pointer; box-shadow: none !important; }
.bmp .bmp-own[aria-pressed=false] { background: #212121 !important; }
.bmp .bmp-own:hover { filter: brightness(1.1); }
.bmp-paths { display: inline-flex; gap: 4px; flex-shrink: 0; }
.bmp-path { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; }
.bmp-path > span { font: 800 10px/1 var(--bms-display); letter-spacing: .5px; color: var(--bms-muted); }
.bmp .bmp-path select { width: 38px; height: 30px; min-height: 0; padding: 0 2px !important; margin: 0; text-align: center; text-align-last: center; font: 900 15px/1 var(--bms-display); color: #212121; background: var(--bms-banana); border: 2px solid #212121; border-radius: 8px; -webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none; }
.bmp .bmp-path select:disabled { background: #e9e5da; color: #9a9588; cursor: not-allowed; }
.bmp .bmp-path select:focus { outline: 3px solid var(--bms-blue); outline-offset: 1px; box-shadow: none; }
.bmp-ttile.is-off .bmp-ttile__name { text-decoration: line-through; }
.bmp-start { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bmp-start__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

/* ---------- Strategy Finder page: coloured sections, cream cards ---------- */
.bmp-finder:not(.is-compact) .bmp-controls, .bmp-finder:not(.is-compact) .bmp-results { color: #fff; background-size: 22px 22px, 100% 100%; }
.bmp-finder:not(.is-compact) .bmp-controls { background-color: #149e95; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #2dbcb0 0%, #149e95 55%, #0d7c75 100%); }
.bmp-finder:not(.is-compact) .bmp-results { background-color: #1b3a8c; background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.7px), linear-gradient(135deg, #2f6fdb 0%, #1b3a8c 55%, #142a66 100%); }
.bmp-finder:not(.is-compact) .bmp-results[data-near-sec] { background-color: #db3a34; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #f25a4a 0%, #db3a34 55%, #b52424 100%); }
/* controls on teal */
.bmp-finder:not(.is-compact) .bmp-select > span { color: #fff; }
.bmp-finder:not(.is-compact) .bmp-controls select { background-color: #fff; color: #212121; border-color: #000; }
.bmp-finder:not(.is-compact) .bmp-dpill { background: #fff; color: #212121; border-color: #000; }
.bmp-finder:not(.is-compact) .bmp-switch { color: #fff; }
.bmp-finder:not(.is-compact) .bmp-unlocks { border-top-color: rgba(255,255,255,.35); }
.bmp-finder:not(.is-compact) .bmp-drawer-btn { background: #fff6cf; color: #212121; border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.bmp-finder:not(.is-compact) .bmp-drawer-btn strong { color: #5f5b52; }
.bmp-finder:not(.is-compact) .bmp-drawer-btn[aria-expanded=true] { background: #ffcc00; }
.bmp-finder:not(.is-compact) .bmp-drawer { padding: 14px; background: rgba(0,0,0,.14); border: 2px solid rgba(255,255,255,.25); border-radius: 16px; }
.bmp-finder:not(.is-compact) .bmp-drawer__head { color: #e6fffb; }
.bmp-finder:not(.is-compact) .bmp-drawer__head b { color: #ffcc00; }
.bmp-finder:not(.is-compact) .bmp-mini { background: #fff6cf; color: #212121; border-color: #000; }
.bmp-finder:not(.is-compact) .bmp-htile, .bmp-finder:not(.is-compact) .bmp-ttile { background: #fff; color: #212121; border-color: #000; }
.bmp-finder:not(.is-compact) .bmp-htile[aria-pressed=true] { background: #fff6cf; box-shadow: 3px 3px 0 #000; }
.bmp-finder:not(.is-compact) .bmp-path > span { color: #5f5b52; }
/* results on blue */
.bmp-finder:not(.is-compact) .bmp-results .bmp-kicker { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #212121; color: #ffcc00; border: 2px solid #000; margin-bottom: 8px; }
.bmp-finder:not(.is-compact) .bmp-results .bmp-h { color: #fff; }
.bmp-finder:not(.is-compact) .bmp-results .bmp-sub { color: #dbe5ff; font-weight: 600; }
.bmp-finder:not(.is-compact) .bmp-gc { background: #fff6cf; color: #212121 !important; border: 2px solid #000; box-shadow: 4px 4px 0 #000; }
.bmp-finder:not(.is-compact) .bmp-gc__media { border-bottom-color: #000; }
.bmp-finder:not(.is-compact) .bmp-gc__meta { color: #6b5a2a; }
.bmp-finder:not(.is-compact) .bmp-gc:hover { background: #ffcc00; box-shadow: 6px 6px 0 #000; transform: translate(-2px, -2px); }
.bmp-finder:not(.is-compact) .bmp-gc.is-near { border-style: dashed; }
.bmp-finder:not(.is-compact) .bmp-results .bmp-empty { background: #fff6cf; color: #212121; border: 3px solid #000; box-shadow: 5px 5px 0 #000; }
.bmp-finder:not(.is-compact) .bmp-results .bmp-empty b { color: #212121; }
.bmp-finder:not(.is-compact) .bmp-showmore { background: #ffcc00 !important; color: #212121 !important; border-color: #000 !important; box-shadow: 4px 4px 0 #000 !important; }
.bmp-perks li > img { object-fit: contain; }

/* account page perks: orange cards on the yellow hero */
.bmp-perks li { background: linear-gradient(135deg, #ffb53d 0%, #ff9d00 100%); border: 2px solid #000; box-shadow: 4px 4px 0 #000; color: #212121; }
.bmp-perks li > img, .bmp-perks .bmp-perk-ico { width: 48px; height: 48px; padding: 4px; background: #fff6cf; border: 2px solid #000; border-radius: 12px; box-sizing: border-box; }
.bmp-perks span { color: #3b2a00; }
.bmp-auth__box { align-self: center; }

/* ---------- account / player pages: coloured sections ---------- */
/* medal images are taller than wide: never squash them */
.bmp img[src*="btd6-medal"] { object-fit: contain; }
.bmp-col__row img { width: 34px; height: 38px; }

/* default avatar: a goofy bloon */
.bmp-avatar.is-bloon { background: #ffcc00; padding: 0; }
.bmp-avatar.is-bloon svg { display: block; width: 100%; height: 100%; }

/* big, clear tabs */
.bmp-tabs.is-big { gap: 12px; margin: 0 0 26px; }
.bmp-tabs.is-big a, .bmp-tabs.is-big .bmp-share { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 12px; font: 800 17px var(--bms-display); background: #fff; color: #212121 !important; border: 3px solid #000; border-radius: 14px; box-shadow: 4px 4px 0 #000; transition: transform .12s, box-shadow .12s; }
.bmp-tabs.is-big a img { width: 26px; height: 28px; }
.bmp-tabs__ico { display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: 20px; line-height: 1; }
.bmp-tabs.is-big a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; background: #fffbe8; }
.bmp-tabs.is-big a[aria-current=page] { background: #ffcc00; box-shadow: 4px 4px 0 #000; }
.bmp-tabs.is-big .bmp-share { background: #212121; color: #ffcc00 !important; cursor: pointer; }

/* sync bar: dark strip with bold actions */
.bmp-syncbar.bmp-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 0 0 26px; padding: 16px 20px; background: #212121; color: #e8e4d8; font-size: 15px; }
.bmp-syncbar__status { flex: 1 1 300px; min-width: 0; }
.bmp-syncbar__status p { margin: 0 !important; }
.bmp-syncbar__status p + p { margin-top: 6px !important; }
.bmp-syncbar__link a { color: #ffcc00 !important; font-weight: 700; text-decoration: underline !important; word-break: break-all; }
.bmp-syncbar .bmp-warn { color: #ff9b8f; }
.bmp-syncbar__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.bmp-syncbar__acts form { margin: 0; }
.bmp .bmp-syncbar__acts .bmp-btn { font-size: 16px; padding: 11px 16px; border: 3px solid #000; box-shadow: 3px 3px 0 #000; }
.bmp .bmp-syncbar__acts .bmp-btn.is-ghost { background: #fff; color: #212121 !important; }
.bmp .bmp-share { background: #ffcc00; color: #212121 !important; }
.bmp .bmp-syncbar__acts .bmp-share { background: #3e8e2f; color: #fff !important; }
.bmp .bmp-syncbar__acts .bmp-share:hover, .bmp .bmp-syncbar__acts .bmp-share:focus { background: #357a28; color: #fff !important; }

/* medals by difficulty: blue */
.bmp-sec--medals, .bmp-sec--board, .bmp-account .bmp-connect { color: #fff; background-size: 22px 22px, 100% 100%; }
.bmp-sec--medals { background-color: #1b3a8c; background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.7px), linear-gradient(135deg, #2f6fdb 0%, #1b3a8c 55%, #142a66 100%); }
.bmp-sec--board { background-color: #6a35b3; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #9a5ce0 0%, #6a35b3 55%, #4e2390 100%); }
.bmp-account .bmp-connect { background-color: #149e95; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #2dbcb0 0%, #149e95 55%, #0d7c75 100%); }
.bmp-sec--medals .bmp-kicker, .bmp-sec--board .bmp-kicker, .bmp-account .bmp-connect .bmp-kicker, .bmp-settings .bmp-sec .bmp-kicker { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #212121; color: #ffcc00; border: 2px solid #000; margin-bottom: 8px; }
.bmp .bmp-sec--medals .bmp-h, .bmp .bmp-sec--board .bmp-h, .bmp .bmp-account .bmp-connect .bmp-h, .bmp .bmp-settings .bmp-sec:not(.bmp-danger) .bmp-h { color: #fff; }
.bmp-sec--board .bmp-lead, .bmp-account .bmp-connect .bmp-lead, .bmp-settings .bmp-sec:not(.bmp-danger) .bmp-lead { color: #f0e9ff; }
.bmp-sec--medals .bmp-col { background: #fff6cf; border: 3px solid #000; box-shadow: 5px 5px 0 #000; color: #212121; }
.bmp-sec--medals .bmp-col__row { background: #fff; border: 1px solid #ece4c4; }
.bmp-sec--board .bmp-board-wrap { border: 3px solid #000; box-shadow: 6px 6px 0 #000; background: #fff; }
.bmp-sec--board .bmp-board { color: #212121; }
.bmp-account .bmp-connect .bmp-steps, .bmp-account .bmp-connect .bmp-note { color: #fff; }
.bmp-account .bmp-connect .bmp-note { background: rgba(0,0,0,.16); border-color: rgba(255,255,255,.3); }
.bmp-account .bmp-connect .bmp-form-card { background: #fff; color: #212121; border: 3px solid #000; box-shadow: 5px 5px 0 #000; }
.bmp-settings .bmp-sec:not(.bmp-danger) .bmp-check { color: #fff; }
.bmp-settings .bmp-sec:not(.bmp-danger) .bmp-btn.is-ghost { background: #fff; color: #212121 !important; border-color: #000; }
.bmp-account .bmp-danger { background: #fff1ef; }
@media (max-width: 560px) {
  .bmp-tabs.is-big a, .bmp-tabs.is-big .bmp-share { font-size: 15px; padding: 9px 12px 9px 9px; }
  .bmp-syncbar__acts .bmp-btn { flex: 1 1 auto; justify-content: center; }
}

/* connect card (not linked yet) */
.bmp-account .bmp-connect .bmp-steps { display: grid; gap: 8px; }
.bmp-account .bmp-connect .bmp-steps li { padding: 11px 14px 11px 54px; background: #fff6cf; color: #212121; border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; }
.bmp-account .bmp-connect .bmp-steps li::before { left: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; background: #212121; color: #ffcc00; border-color: #000; font-size: 14px; }
.bmp-account .bmp-connect .bmp-note { border-left: 4px solid #ffcc00; border-radius: 0 12px 12px 0; color: #effffd; }
.bmp-account .bmp-connect .bmp-note b { color: #ffcc00; }
.bmp-account .bmp-connect .bmp-form-card .bmp-field > span { font-size: 17px; }
.bmp .bmp-account .bmp-connect .bmp-form-card .bmp-btn { background: #212121; color: #ffcc00 !important; border-color: #000; box-shadow: 3px 3px 0 #000; font-size: 18px; padding: 13px; }

/* settings: every card its own colour */
.bmp-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.bmp-settings .bmp-set { color: #fff; background-size: 22px 22px, 100% 100%; }
.bmp-settings .bmp-set.is-blue { background-color: #1b3a8c; background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.7px), linear-gradient(135deg, #2f6fdb 0%, #1b3a8c 55%, #142a66 100%); }
.bmp-settings .bmp-set.is-purple { background-color: #6a35b3; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #9a5ce0 0%, #6a35b3 55%, #4e2390 100%); }
.bmp-settings .bmp-set.is-teal { background-color: #149e95; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #2dbcb0 0%, #149e95 55%, #0d7c75 100%); }
.bmp-settings .bmp-set.is-red { background-color: #db3a34; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #f25a4a 0%, #db3a34 55%, #b52424 100%); border-color: #000; box-shadow: 7px 7px 0 #000; }
.bmp-settings .bmp-set .bmp-kicker { display: inline-block; padding: 5px 11px; border-radius: 999px; background: #212121; color: #ffcc00; border: 2px solid #000; margin-bottom: 8px; }
.bmp .bmp-settings .bmp-set .bmp-h { color: #fff; }
.bmp-settings .bmp-set .bmp-lead, .bmp-settings .bmp-set .bmp-check { color: #f3f0ff; }
.bmp-settings .bmp-set .bmp-check input { accent-color: #ffcc00; width: 20px; height: 20px; }
.bmp .bmp-settings .bmp-set .bmp-btn { border: 3px solid #000; box-shadow: 3px 3px 0 #000; font-size: 16px; padding: 10px 16px; }
.bmp .bmp-settings .bmp-set .bmp-btn.is-ghost { background: #fff; color: #212121 !important; }
.bmp-settings .bmp-set.is-red .bmp-field > span { color: #fff; }
.bmp .bmp-settings .bmp-set.is-red .bmp-btn.is-danger { background: #212121; color: #fff !important; }
@media (max-width: 820px) { .bmp-settings { grid-template-columns: 1fr; } }

/* profile hero (account + public player page): bold stat cards */
.bmp-profile .bmp-tile { background: var(--tc); color: #fff !important; border: 3px solid #000; border-left-width: 3px; box-shadow: 4px 4px 0 #000; }
.bmp-profile .bmp-tile b { color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.bmp-profile .bmp-tile small { color: rgba(255,255,255,.85); }
.bmp-profile .bmp-level { transform: rotate(-1.5deg); }
.bmp-profile .bmp-avatar.is-xl { width: 104px; height: 104px; }

/* ---------- Bragging rights: records + badges (v1.1) ---------- */
.bmp-brag { color: #212121; background-color: #ff9d00; background-image: radial-gradient(rgba(255,255,255,.18) 1.6px, transparent 1.7px), linear-gradient(135deg, #ffc24a 0%, #ff9d00 55%, #f07f00 100%); background-size: 22px 22px, 100% 100%; }
.bmp-brag .bmp-hb__badge { background: #212121; border-color: #000; color: #ffcc00; }
.bmp .bmp-brag .bmp-h { color: #212121; margin: 0 0 14px; }
.bmp-brag__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.bmp-brag__top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #212121; color: #ffcc00; border: 2px solid #000; border-radius: 999px; font: 800 14px/1.2 var(--bms-display); box-shadow: 3px 3px 0 #000; transform: rotate(-1.5deg); }
.bmp-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bmp-rec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff6cf; border: 3px solid #000; border-radius: 16px; box-shadow: 4px 4px 0 #000; min-width: 0; }
.bmp-rec > img { width: 46px; height: 46px; object-fit: contain; flex-shrink: 0; }
.bmp-rec__ico { font-size: 34px; line-height: 1; width: 46px; text-align: center; flex-shrink: 0; }
.bmp-rec div { display: flex; flex-direction: column; min-width: 0; }
.bmp-rec b { font: 900 22px/1.1 var(--bms-display); overflow-wrap: anywhere; }
.bmp-rec span { font: 800 13px/1.3 var(--bms-display); text-transform: uppercase; letter-spacing: .4px; color: #8a4a00; }
.bmp-rec small { font-size: 13px; color: #5f5b52; }
.bmp-brag__best { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; padding: 10px 14px; background: rgba(255,255,255,.55); border: 2px dashed #000; border-radius: 12px; font-size: 15px; }
.bmp-brag__best img { width: auto; height: 28px; object-fit: contain; }
.bmp-badges { margin-top: 16px; }
.bmp-badges__title { margin: 0 0 8px; font: 800 15px var(--bms-display); }
.bmp-badges ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bmp-badges li { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 10px 10px; background: #fff; border: 3px solid #000; border-radius: 16px; box-shadow: 3px 3px 0 #000; }
.bmp-badges li.is-on { background: linear-gradient(160deg, #fff6cf 0%, #ffe27a 100%); }
.bmp-badges li.is-on::after { content: '✓'; position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #2fa84f; color: #fff; border: 2px solid #000; font: 900 13px var(--bms-display); }
.bmp-badges li.is-off { background: rgba(255,255,255,.6); border-style: dashed; box-shadow: none; }
.bmp-badges li.is-off .bmp-badge__ico { filter: grayscale(1); opacity: .5; }
.bmp-badge__ico { height: 46px; display: grid; place-items: center; font-size: 34px; line-height: 1; }
.bmp-badge__ico img { width: auto; height: 44px; object-fit: contain; }
.bmp-badges li b { font: 900 15px/1.2 var(--bms-display); }
.bmp-badges li small { font-size: 12px; line-height: 1.3; color: #5f5b52; }
.bmp-badge__bar { display: block; width: 100%; height: 8px; margin-top: 4px; background: #eee; border: 2px solid #000; border-radius: 99px; overflow: hidden; }
.bmp-badge__bar i { display: block; height: 100%; background: #ff9d00; }

/* ---------- Community strategies (v1.1) ---------- */
.bmp-community { color: #fff; background-color: #149e95; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #22c2b6 0%, #149e95 55%, #0d746d 100%); background-size: 22px 22px, 100% 100%; }
.bmp .bmp-community .bmp-h, .bmp-community .bmp-h { color: #fff; margin: 0 0 6px; }
.bmp-community .bmp-lead { color: rgba(255,255,255,.92); margin: 0; }
.bmp-community__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.bmp-community__head > div { flex: 1 1 320px; }
.bmp .bmp-community .bmp-btn--big, .bmp-community .bmp-btn--big { background: #ffcc00; color: #212121 !important; border: 3px solid #000; box-shadow: 4px 4px 0 #000; font-size: 17px; padding: 13px 20px; }
.bmp-community__all { text-align: center; margin: 18px 0 0; }
.bmp .bmp-community .bmp-btn.is-ghost { background: #fff; color: #212121 !important; border: 2px solid #000; box-shadow: 3px 3px 0 #000; }
.bmp-community__filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.bmp-community__filter .bmp-field { margin: 0; flex: 1 1 220px; max-width: 340px; }
.bmp-community__filter .bmp-field > span { color: #fff; }
.bmp-community__filter select { width: 100%; padding: 10px 12px; border: 2px solid #000; border-radius: 12px; background: #fff; color: #212121; font: 700 15px var(--bms-body, inherit); }
.bmp-cs-list { display: grid; gap: 14px; }
.bmp-cs-list.is-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.bmp-cs { scroll-margin-top: 90px; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff6cf; color: #212121; border: 3px solid #000; border-radius: 18px; box-shadow: 5px 5px 0 #000; min-width: 0; }
.bmp-cs:target { outline: 4px solid #ffcc00; outline-offset: 3px; }
.bmp-cs__head { display: flex; align-items: center; gap: 10px; }
.bmp-cs__head .bmp-avatar { flex-shrink: 0; }
.bmp-cs__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bmp-cs__who a, .bmp-cs__who b { font: 900 17px/1.2 var(--bms-display); color: #212121 !important; overflow-wrap: anywhere; }
.bmp-cs__who a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bmp-cs__who small { font-size: 12px; color: #5f5b52; }
.bmp-cs__mode { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 5px; background: var(--gc); color: #fff; border: 2px solid #000; border-radius: 999px; font: 800 12px/1.2 var(--bms-display); white-space: nowrap; }
.bmp-cs__mode img { width: auto; height: 22px; object-fit: contain; }
.bmp .bmp-cs__title { margin: 0; font: 900 19px/1.2 var(--bms-display); color: #212121; }
.bmp-cs__uses { display: flex; flex-wrap: wrap; gap: 6px; }
.bmp-cs__chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; background: #fff; border: 2px solid #000; border-radius: 999px; font: 700 13px/1.2 var(--bms-display); }
.bmp-cs__chip img { width: 26px; height: 26px; object-fit: contain; }
.bmp-cs__chip b { padding: 1px 6px; background: #212121; color: #ffcc00; border-radius: 6px; font-size: 12px; letter-spacing: .5px; }
.bmp-cs__chip.is-hero { background: #ffcc00; }
.bmp-cs__body { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.bmp-cs__body p { margin: 0 0 8px; }
.bmp-cs__body details summary { cursor: pointer; font: 800 14px var(--bms-display); color: #0d746d; margin: 4px 0; }
.bmp-cs__body details[open] summary { margin-bottom: 8px; }
.bmp-cs__body details[open] ~ *, .bmp-cs__body:has(details[open]) > p:first-child { display: none; }
.bmp-cs__video { display: flex; align-items: center; gap: 10px; padding: 6px; background: #212121; color: #fff !important; border: 2px solid #000; border-radius: 12px; text-decoration: none !important; font: 800 14px var(--bms-display); }
.bmp-cs__video img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; }
.bmp-cs__video:hover { background: #db3a34; }
.bmp-community .bmp-pager a, .bmp-community .bmp-pager span { border-color: rgba(255,255,255,.45); }
.bmp-community .bmp-pager .is-current { background: #ffcc00; color: #212121 !important; border-color: #000; }
.bmp-communitypage .bmp-community .bmp-empty, .bmp-community .bmp-empty { background: #fff6cf; color: #212121; border: 3px solid #000; border-radius: 16px; padding: 16px; }
/* guide pages: the block sits inside the article */
.entry-content > .bmp-community, .bmp.bmp-community { margin: 32px 0; padding: 22px; border: 3px solid #000; border-radius: 22px; box-shadow: 6px 6px 0 #000; }

/* Submit page */
.bmp-submit__form { background-color: #6a35b3; background-image: radial-gradient(rgba(255,255,255,.10) 1.6px, transparent 1.7px), linear-gradient(135deg, #9a5ce0 0%, #6a35b3 55%, #4e2390 100%); background-size: 22px 22px, 100% 100%; color: #fff; }
.bmp .bmp-submit__form .bmp-h, .bmp .bmp-submit__mine .bmp-h { color: #fff; }
.bmp-sform { background: #fff6cf; color: #212121; border: 3px solid #000; border-radius: 18px; box-shadow: 6px 6px 0 #000; padding: 20px; }
.bmp-sform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.bmp-sform select, .bmp-sform input[type=text], .bmp-sform input[type=url], .bmp-sform textarea { width: 100%; padding: 10px 12px; border: 2px solid #000; border-radius: 12px; background: #fff; color: #212121; font-size: 15px; box-sizing: border-box; }
.bmp-sform textarea { min-height: 190px; line-height: 1.5; resize: vertical; }
.bmp-sform__towers { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 0 0 14px; }
.bmp-sform__tower { display: grid; grid-template-columns: 1fr 96px; gap: 6px; padding: 6px; background: #fff; border: 2px solid #000; border-radius: 12px; }
.bmp-sform__tower select, .bmp-sform__tower input { padding: 8px 10px !important; border-radius: 9px !important; }
.bmp-sform__tower input { text-align: center; font-weight: 800; letter-spacing: 1px; }
.bmp-sform .bmp-btn--big { background: #212121; color: #ffcc00 !important; border: 3px solid #000; box-shadow: 4px 4px 0 #ff9d00; font-size: 18px; padding: 14px; }
.bmp-submit__gate b { display: block; font: 900 22px/1.2 var(--bms-display); margin-bottom: 6px; }
.bmp-submit__gate .bmp-btn { margin-top: 10px; }
.bmp-submit__mine { background-color: #1b3a8c; background-image: radial-gradient(rgba(255,255,255,.09) 1.6px, transparent 1.7px), linear-gradient(135deg, #2f6fdb 0%, #1b3a8c 55%, #142a66 100%); background-size: 22px 22px, 100% 100%; color: #fff; }
.bmp-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bmp-mine li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 10px 14px; background: #fff6cf; color: #212121; border: 2px solid #000; border-radius: 12px; box-shadow: 3px 3px 0 #000; }
.bmp-mine a { color: #212121 !important; font-weight: 800; }
.bmp-mine__st { padding: 3px 10px; border-radius: 999px; border: 2px solid #000; font: 800 12px var(--bms-display); text-transform: uppercase; background: #ffcc00; color: #212121; }
.bmp-mine__st.is-publish { background: #2fa84f; color: #fff; }
.bmp-mine__st.is-draft, .bmp-mine__st.is-trash { background: #db3a34; color: #fff; }

/* Finder: community cards */
.bmp-gc.is-cs { border-style: dashed; }
.bmp-gc__cs { align-self: flex-start; display: inline-block; padding: 2px 9px; margin-bottom: 4px; background: #149e95; color: #fff; border: 2px solid #000; border-radius: 999px; font: 800 11px/1.3 var(--bms-display); }
.bmh-finder__share { display: block; text-align: center; font-size: 14px; color: #212121 !important; text-decoration: none !important; }
.bmh-finder__share b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.bmh-finder__share:hover b { color: #db3a34; }
.bmp-tabs__ico { font-size: 22px; line-height: 1; }
@media (max-width: 560px) {
  .bmp-rec b { font-size: 19px; }
  .bmp-cs-list.is-grid { grid-template-columns: 1fr; }
  .bmp-sform__tower { grid-template-columns: 1fr 84px; }
}
.bmp-rec .bmp-rec__ico { font: 400 34px/1 sans-serif; text-transform: none; letter-spacing: 0; color: inherit; width: 46px; }
.bmp .bmp-brag .bmp-brag__best { margin-top: 22px; }

/* Finder: guides without a tower list (v1.1.3) */
.bmp-other { grid-column: 1 / -1; margin-top: 8px; padding: 16px; background: #fff6cf; color: #212121; border: 3px dashed #000; border-radius: 16px; }
.bmp-other__head { margin: 0 0 10px; font-size: 14px; }
.bmp-other__head b { display: block; font: 900 18px/1.2 var(--bms-display); margin-bottom: 2px; }
.bmp-other__list { display: flex; flex-wrap: wrap; gap: 8px; }
.bmp-other__item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; background: #fff; color: #212121 !important; border: 2px solid #000; border-radius: 999px; font: 800 13px/1.2 var(--bms-display); text-decoration: none !important; box-shadow: 2px 2px 0 #000; }
.bmp-other__item img { width: auto; height: 24px; object-fit: contain; }
.bmp-other__item:hover { background: #ffcc00; }
.bmp-other__item.is-done { background: #d9f5df; }
.bmp-other__item em { font-style: normal; color: #2fa84f; }
.bmp-guidebox { margin: 18px 0 22px; }

/* Community strategy media row + gallery (v1.1.4) */
.bmp-cs__media { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.bmp-cs__media > a { position: relative; flex: 0 0 auto; width: 136px; height: 77px; border: 2px solid #000; border-radius: 10px; overflow: hidden; background: #212121; box-shadow: 2px 2px 0 #000; }
.bmp-cs__media > a img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.bmp .bmp-cs__media .bmp-cs__video { display: block; padding: 0; gap: 0; }
.bmp-cs__media .bmp-cs__video span { position: absolute; inset: auto 0 0 0; padding: 3px 6px; background: rgba(0,0,0,.72); color: #fff; font: 800 12px/1.2 var(--bms-display); }
.bmp-cs__media .bmp-cs__video img { opacity: .9; }
.bmp-cs__shot { cursor: zoom-in; }
.bmp-cs__media > a:hover { border-color: #ffcc00; transform: translateY(-1px); }
.bmp-gal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(10,10,20,.92); padding: 48px 56px; }
.bmp-gal[hidden] { display: none; }
.bmp-gal > img { max-width: 100%; max-height: 100%; object-fit: contain; border: 3px solid #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.bmp-gal button { position: absolute; border: 2px solid #000; background: #ffcc00; color: #212121; font: 900 26px/1 sans-serif; border-radius: 50%; width: 46px; height: 46px; cursor: pointer; box-shadow: 3px 3px 0 #000; padding: 0; }
.bmp-gal__x { top: 12px; right: 12px; font-size: 20px !important; }
.bmp-gal__nav.is-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.bmp-gal__nav.is-next { right: 8px; top: 50%; transform: translateY(-50%); }
.bmp-gal.is-single .bmp-gal__nav { display: none; }
.bmp-gal__cap { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; font: 800 14px var(--bms-display); background: rgba(0,0,0,.5); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 560px) { .bmp-gal { padding: 56px 8px; } .bmp-gal__nav { top: auto !important; bottom: 10px; transform: none !important; } }
.bmp-cs__media { overflow: visible; flex-wrap: wrap; padding-bottom: 0; }
.bmp-cs__media > a[hidden] { display: none; }
.bmp-cs__shot.is-cover span { position: absolute; inset: auto 0 0 0; padding: 3px 6px; background: rgba(0,0,0,.72); color: #fff; font: 800 12px/1.2 var(--bms-display); }
