/* BlueMC store theme — original stylesheet.
   Navy ground, brand gradient buttons (#00C7FF → #8EEBFF), candy category cards, sky blue banner. */

:root {
  --ground-top: #1d2a47;
  --ground: #0a0f1a;
  --bar: #151d31;
  --bar-line: #222b40;
  --ink: #eff4ff;
  --ink-soft: #dde5f6;
  --ink-mute: #abb5ce;
  --ink-dim: #6f7890;
  --panel-a: #202a40;
  --panel-b: #171f30;
  --panel-line: #374567;
  --panel-ledge: #090e19;
  --chip: #222b41;
  --chip-line: #3e4c6e;
  --chip-ledge: #0a101f;
  --brand: linear-gradient(135deg, #00c7ff, #8eebff);
  --brand-line: #5edfff;
  --brand-ledge: #007e9e;
  --on-brand: #03253a;
  --accent: #92e9ff;
  --sale: #cb254b;
  --sky-ledge: #0f4f99;
  --radius: 18px;
  --font: "Montserrat", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(at 50% 0, var(--ground-top), var(--ground) 75%) fixed, var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; }
p { margin: 0; }
[hidden] { display: none !important; }

.bm-wrap { width: min(1320px, calc(100% - 80px)); margin: 0 auto; }

/* ---------- Buttons ---------- */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 16px; border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; line-height: 1;
  border: 1px solid var(--chip-line); background: var(--chip); color: var(--ink-soft);
  box-shadow: 0 3px 0 var(--chip-ledge);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.bm-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--chip-ledge); background: #29344f; }
.bm-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--chip-ledge); }
.bm-btn svg { width: 14px; height: 14px; flex: none; }

.bm-btn--brand {
  background: var(--brand); color: var(--on-brand); border-color: var(--brand-line);
  box-shadow: 0 4px 0 var(--brand-ledge); font-weight: 900;
}
.bm-btn--brand:hover { background: var(--brand); filter: brightness(1.08); box-shadow: 0 6px 0 var(--brand-ledge); }
.bm-btn--brand:active { box-shadow: 0 1px 0 var(--brand-ledge); }
.bm-btn--big { padding: 13px 17px; letter-spacing: .6px; }
.bm-btn--wide { width: 100%; padding: 15px; font-size: 12px; }
.bm-btn[disabled] { opacity: .5; pointer-events: none; }
.bm-btn--text { background: none; border: 0; box-shadow: none; padding: 12px 0; font-weight: 700; }
.bm-btn--text:hover { background: none; box-shadow: none; color: #fff; }

/* ---------- Header ---------- */
.bm-header { background: var(--bar); border-bottom: 1px solid var(--bar-line); position: relative; z-index: 2; }
.bm-nav { height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bm-links, .bm-actions { display: flex; align-items: center; gap: 9px; }
.bm-links .bm-btn { font-size: 10px; padding: 12px 16px; border-radius: 7px; }
.bm-account { padding: 7px 11px; gap: 8px; }
.bm-account img { width: 25px; height: 25px; border-radius: 4px; image-rendering: pixelated; background: #9ccdd9; }
.bm-cart-btn { gap: 9px; padding: 9px 13px; }
.bm-cart-btn b {
  min-width: 20px; padding: 4px 6px; border-radius: 5px;
  background: #0082a3; color: #e9fbff; font-size: 10px; font-weight: 900; text-align: center;
}

/* ---------- Sky blue banner ---------- */
.bm-banner {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 40px; min-height: 145px; padding: 24px 45px; border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 24px;
  color: #fff;
  background:
    radial-gradient(420px 190px at 50% 52%, rgba(170, 240, 255, .5), transparent 70%),
    linear-gradient(115deg, #1672d2 0%, #3aa6ee 50%, #1672d2 100%);
  box-shadow: 0 7px 0 var(--sky-ledge);
}
/* a few small stars */
.bm-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(1.5px 1.5px at 6% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 15% 74%, #ffffffb0 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 31% 14%, #ffffffd8 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 39% 80%, #ffffff90 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 61% 20%, #ffffffc8 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 69% 76%, #ffffff98 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 86% 22%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 95% 64%, #ffffffb0 50%, transparent 52%);
}
.bm-logo { display: block; height: 130px; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); animation: bm-float 5s ease-in-out infinite; }
@keyframes bm-float { 50% { transform: translateY(-4px); } }

.bm-join { display: flex; align-items: center; gap: 22px; background: none; border: 0; padding: 0; color: #fff; }
.bm-join { justify-self: center; }
.bm-logo-link { justify-self: center; }
.bm-join-text { display: flex; flex-direction: column; }
.bm-join--play .bm-join-text { text-align: right; }
.bm-join-text strong { font-size: 25px; font-weight: 900; letter-spacing: -.7px; text-shadow: 0 2px 0 rgba(6, 40, 92, .35); }
.bm-join-text small { font-size: 12px; font-weight: 800; text-shadow: 0 1px 0 rgba(6, 40, 92, .4); }
.bm-tile {
  position: relative; width: 59px; height: 59px; flex: none; display: grid; place-items: center;
  border-radius: 13px; background: #fff; color: #0a76c4; box-shadow: 0 5px 0 var(--sky-ledge);
  transition: transform .15s ease, box-shadow .15s ease;
}
.bm-tile svg { width: 25px; height: 25px; }
.bm-tile b {
  position: absolute; top: -10px; right: -9px; padding: 4px 9px; border-radius: 30px;
  background: #fff; color: var(--sale); font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 7px rgba(27, 49, 101, .1);
}
.bm-join:hover .bm-tile { transform: translateY(-3px); box-shadow: 0 8px 0 var(--sky-ledge); }
.bm-join:active .bm-tile { transform: translateY(2px); box-shadow: 0 2px 0 var(--sky-ledge); }

/* ---------- Panels ---------- */
.bm-panel {
  background: linear-gradient(135deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--panel-line); border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--panel-ledge);
}
.bm-eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }

/* ---------- Featured package ---------- */
.bm-featured { margin-top: 36px; padding: 26px 45px; display: flex; align-items: center; gap: 45px; }
.bm-featured-art {
  position: relative; width: 220px; height: 200px; flex: none; padding: 4px 8px; border: 0; border-radius: 14px;
  background: linear-gradient(115deg, #c23b3b, #f06a4a); box-shadow: 0 5px 0 #7f2424;
  display: grid; place-items: center; transition: transform .2s ease;
}
.bm-featured-art img { width: 100%; height: 190px; object-fit: contain; filter: drop-shadow(0 10px 7px rgba(32, 47, 81, .27)); transition: transform .2s ease; }
.bm-featured-art:hover { transform: translateY(-3px); }
.bm-featured-art:hover img { transform: scale(1.05) rotate(-3deg); }
.bm-stock {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: 8px 12px; border-radius: 7px; border: 1px solid #79e4ff;
  background: linear-gradient(120deg, #00aeda, #2dd5ff); color: var(--on-brand);
  font-size: 10px; font-weight: 900; letter-spacing: .5px; box-shadow: 0 3px 0 #006a85; white-space: nowrap;
}
.bm-featured-copy .bm-eyebrow { font-size: 8px; }
.bm-featured-copy h2 { margin: 12px 0 18px; font-size: 30px; letter-spacing: -1px; }
.bm-price { display: flex; align-items: baseline; gap: 12px; }
.bm-price del { font-size: 19px; font-weight: 800; color: #6de2ff; }
.bm-price strong { font-size: 27px; font-weight: 900; }
.bm-featured-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }

/* ---------- Category cards (vivid candy) ---------- */
.bm-cats { margin-top: 29px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bm-cat {
  --tone: linear-gradient(115deg, #2b3a63, #43568a); --deep: #18223d;
  position: relative; isolation: isolate; overflow: hidden;
  height: 245px; padding: 34px; border-radius: 16px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; background: var(--tone); box-shadow: 0 7px 0 #070b16;
  transition: transform .2s ease;
}
/* darker wave over the left half */
.bm-cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deep); opacity: .48;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H51C40 19 41 28 51 45C60 61 61 72 51 86C48 91 48 96 51 100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H51C40 19 41 28 51 45C60 61 61 72 51 86C48 91 48 96 51 100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.bm-cat img {
  position: absolute; z-index: 1; top: 25px; right: -10px; width: 54%; height: 240px;
  object-fit: contain; filter: drop-shadow(0 12px 8px rgba(17, 24, 39, .25)); transition: transform .2s ease;
}
.bm-cat img.bm-cat-placeholder { top: 50%; right: 9%; width: 30%; height: auto; transform: translateY(-50%); opacity: .22; filter: grayscale(.4); }
.bm-cat h3 {
  position: relative; z-index: 2; max-width: 42%; margin-bottom: 10px;
  font-size: 36px; line-height: 1.1; letter-spacing: -1px; text-transform: uppercase; overflow-wrap: break-word;
}
.bm-cat span.bm-cat-link { position: relative; z-index: 2; font-size: 13px; font-weight: 600; }
.bm-cat:hover { transform: translateY(-3px); }
.bm-cat:hover img:not(.bm-cat-placeholder) { transform: scale(1.05) rotate(-3deg); }
.bm-ribbon {
  position: absolute; z-index: 5; top: 26px; right: -62px; width: 235px; padding: 12px 0;
  transform: rotate(35deg); text-align: center;
  background: linear-gradient(100deg, #b51d42, #ed4264); color: #fff;
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px; line-height: 12px;
  box-shadow: 0 3px 0 #851830, 0 7px 15px rgba(14, 25, 51, .27);
}

.bm-tone-green  { --tone: linear-gradient(115deg, #13804f, #29c27a); --deep: #0a5132; }
.bm-tone-pink   { --tone: linear-gradient(115deg, #a3266a, #e0479a); --deep: #6b1645; }
.bm-tone-purple { --tone: linear-gradient(115deg, #5a2bc0, #8a5cf0); --deep: #3a1a80; }
.bm-tone-orange { --tone: linear-gradient(115deg, #c26a10, #f2a332); --deep: #82450a; }
.bm-tone-teal   { --tone: linear-gradient(115deg, #0e7f8f, #1fc0cf); --deep: #08525c; }
.bm-tone-red    { --tone: linear-gradient(115deg, #c23b3b, #f06a4a); --deep: #7f2424; }
.bm-tone-blue   { --tone: linear-gradient(115deg, #1a5fc4, #3a9cf0); --deep: #0e3a80; }

/* ---------- Recent purchases ---------- */
.bm-recent { margin-top: 38px; padding: 27px; border-radius: 20px; }
.bm-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 21px; }
.bm-recent-head h2 { margin-top: 9px; font-size: 24px; letter-spacing: -.8px; }
.bm-recent-head p, .bm-muted { font-size: 11px; color: var(--ink-mute); }
.bm-recent-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bm-person {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 19px 10px; text-align: center;
  background: linear-gradient(135deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--panel-line); border-radius: 13px; box-shadow: 0 5px 0 var(--panel-ledge);
  transition: transform .15s ease;
}
.bm-person:hover { transform: translateY(-3px); }
.bm-person img { width: 44px; height: 44px; border-radius: 6px; image-rendering: pixelated; background: #d3dcf2; }
.bm-person strong { font-size: 11px; font-weight: 700; color: #dee6fa; overflow-wrap: anywhere; }
.bm-person span { font-size: 11px; font-weight: 700; line-height: 1.55; padding: 0 8px; color: var(--ink-dim); }
.bm-empty { grid-column: 1 / -1; text-align: center; padding: 20px; color: var(--ink-mute); font-size: 12px; }

/* ---------- Community goal ---------- */
.bm-goal { margin-top: 44px; padding: 28px; text-align: center; }
.bm-goal h2 { font-size: 24px; letter-spacing: -.6px; }
.bm-goal-track {
  height: 18px; margin: 23px 0 17px; border-radius: 10px; overflow: hidden;
  background: #0c1221; border: 1px solid #334162; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .33);
}
.bm-goal-fill {
  display: block; height: 100%; border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255, 255, 255, .13) 28px 56px),
    linear-gradient(90deg, #00c7ff, #8eebff);
  background-size: 80px 100%, 100% 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: bm-stripes 2.8s linear infinite;
}
@keyframes bm-stripes { to { background-position: 80px 0, 0 0; } }
.bm-goal p { font-size: 13px; font-weight: 800; color: #7de5ff; }

/* ---------- Category page ---------- */
.bm-cat-head {
  margin-top: 40px; padding: 26px 28px; border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: var(--tone, linear-gradient(115deg, #26386a, #3c4f8a)); box-shadow: 0 7px 0 #070b16;
  position: relative; isolation: isolate; overflow: hidden;
}
.bm-cat-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deep, #18223d); opacity: .4;
  -webkit-mask: radial-gradient(120% 140% at 0 0, #000 30%, transparent 70%);
          mask: radial-gradient(120% 140% at 0 0, #000 30%, transparent 70%);
}
.bm-cat-head h1 { font-size: 34px; letter-spacing: -1px; text-transform: uppercase; text-align: center; }
.bm-cat-head .bm-back { justify-self: start; }
.bm-cat-head .bm-sale-chip { justify-self: end; }
.bm-sale-chip { padding: 8px 12px; border-radius: 7px; background: var(--brand); color: var(--on-brand); font-size: 10px; font-weight: 900; letter-spacing: .5px; box-shadow: 0 3px 0 var(--brand-ledge); }

.bm-tabs { margin-top: 26px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; border-radius: 14px; background: #121a2c; border: 1px solid #1f2a44; }
.bm-tabs a { flex: 1 1 140px; text-align: center; }
.bm-tabs a.is-active { background: var(--brand); color: var(--on-brand); border-color: var(--brand-line); box-shadow: 0 4px 0 var(--brand-ledge); }
.bm-cat-desc { margin: 22px 2px 0; font-size: 12px; line-height: 1.6; color: var(--ink-mute); }
.bm-cat-desc p + p { margin-top: 8px; }
.bm-sub { margin-top: 34px; font-size: 22px; letter-spacing: -.6px; }

.bm-products { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.bm-product {
  display: flex; flex-direction: column; padding: 20px; border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bm-product:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--panel-ledge); }
.bm-product-art {
  position: relative; display: grid; place-items: center; height: 170px; border: 0; padding: 0; background: none;
  text-align: center;
}
.bm-product-art img { max-height: 150px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); transition: transform .2s ease; }
.bm-product-art img.bm-noimg { max-height: 96px; opacity: .45; filter: grayscale(.3); }
.bm-product:hover .bm-product-art img { transform: scale(1.05) rotate(-3deg); }
.bm-product-art .bm-stock { top: 0; }
.bm-product h4 { margin: 12px 0 14px; font-size: 18px; letter-spacing: -.4px; text-align: center; }
.bm-product .bm-price { justify-content: flex-start; margin-bottom: 14px; }
.bm-product .bm-price del { font-size: 13px; }
.bm-product .bm-price strong { font-size: 20px; }
.bm-product-actions { display: flex; gap: 8px; margin-top: auto; }
.bm-product-actions form { flex: 1; display: flex; }
.bm-product-actions form .bm-btn { flex: 1; }
.bm-note { margin: 26px 0 0; text-align: center; font-size: 10px; color: var(--ink-mute); }

/* ---------- Package page / popup content ---------- */
.bm-package { margin-top: 40px; padding: 34px; display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.bm-package .bm-featured-art { width: 100%; height: 280px; }
.bm-package .bm-featured-art img { height: 260px; }
.bm-desc { margin: 18px 0 24px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.bm-desc ul { padding-left: 18px; }
.bm-desc img { border-radius: 10px; }
.bm-buy { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--panel-line); }

/* ---------- Basket / sign-in / generic page ---------- */
.bm-page { margin-top: 40px; padding: 34px; }
.bm-page h1 { font-size: 30px; letter-spacing: -1px; }
.bm-page .bm-desc { max-width: 760px; }
.bm-lines { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.bm-line {
  display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 14px;
  padding: 12px; border-radius: 12px; background: #141c2e; border: 1px solid #263252;
}
.bm-line img { width: 56px; height: 56px; object-fit: contain; }
.bm-line strong { font-size: 13px; }
.bm-line small { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-mute); }
.bm-line .bm-line-price { font-weight: 900; }
.bm-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--chip-line); background: var(--chip); color: var(--ink-soft); font-size: 16px; line-height: 1; }
.bm-x:hover { background: #3a2230; border-color: #6a3346; color: #ffd6df; }
.bm-total { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 18px; font-size: 13px; color: var(--ink-mute); }
.bm-total strong { font-size: 22px; color: var(--ink); }

.bm-field { display: block; margin: 16px 0 8px; font-size: 11px; font-weight: 800; color: var(--ink-soft); text-align: left; }
.bm-input {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #33405f; background: #0f1626;
  color: var(--ink); font: 600 13px var(--font); outline: none;
}
.bm-input:focus { border-color: #00c7ff; box-shadow: 0 0 0 3px rgba(0, 199, 255, .18); }
.bm-hint { margin: 8px 0 0; font-size: 10px; color: var(--ink-mute); text-align: left; }
.bm-error { margin: 10px 0 0; font-size: 12px; font-weight: 700; color: #ff8aa2; }
.bm-editions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-editions .bm-btn { padding: 13px 10px; }
.bm-editions .bm-btn[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand-line); box-shadow: 0 4px 0 var(--brand-ledge); }

/* ---------- Popups ---------- */
.bm-dialog {
  width: min(440px, calc(100% - 32px)); padding: 35px; border: 0; border-radius: 25px;
  background: #192135; color: var(--ink); text-align: center;
  box-shadow: 0 30px 100px rgba(20, 25, 36, .2), 0 0 0 1px #2a3654;
}
.bm-dialog::backdrop { background: rgba(20, 32, 60, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bm-dialog[open] { animation: bm-pop .18s ease-out; }
@keyframes bm-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.bm-dialog h2 { margin: 8px 0 6px; font-size: 26px; letter-spacing: -.8px; }
.bm-dialog .bm-login-logo { height: 54px; width: auto; }
.bm-dialog .bm-btn--wide { margin-top: 22px; }
.bm-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: #2a3450; color: var(--ink-soft); font-size: 18px; line-height: 1;
}
.bm-close:hover { background: #36426a; color: #fff; }

.bm-dialog--package { width: min(860px, calc(100% - 32px)); padding: 0; text-align: left; overflow: hidden; }
.bm-dialog--package .bm-package { margin: 0; border: 0; box-shadow: none; border-radius: 0; background: none; }
.bm-dialog--package[aria-busy="true"] .bm-package { opacity: .4; }

/* cart drawer slides in from the right */
.bm-drawer {
  margin: 0 0 0 auto; width: min(460px, 100%); height: 100%; max-height: 100%; padding: 0; border: 0; border-radius: 0;
  background: #192135; color: var(--ink); display: none; flex-direction: column;
}
.bm-drawer[open] { display: flex; animation: bm-slide .22s ease-out; }
.bm-drawer::backdrop { background: rgba(20, 32, 60, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes bm-slide { from { transform: translateX(40px); opacity: 0; } }
.bm-drawer-head {
  position: relative; padding: 34px 28px 26px; color: var(--on-brand);
  background: radial-gradient(240px 120px at 85% 40%, rgba(255, 255, 255, .45), transparent 70%), linear-gradient(115deg, #009ac1, #1ad1ff 60%, #50dcff);
}
.bm-drawer-head .bm-eyebrow { color: #04405f; }
.bm-drawer-head h2 { margin: 8px 0 6px; font-size: 30px; letter-spacing: -1px; }
.bm-drawer-head p { font-size: 12px; font-weight: 700; }
.bm-drawer-head .bm-close { background: rgba(3, 37, 58, .18); color: var(--on-brand); }
.bm-drawer-head img.bm-drawer-logo { position: absolute; right: 64px; bottom: 18px; height: 52px; opacity: .9; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); }
.bm-drawer-body { flex: 1; overflow: auto; padding: 18px 28px; }
.bm-drawer-foot { padding: 20px 28px 26px; border-top: 1px solid #263252; }
.bm-drawer .bm-line { grid-template-columns: 48px 1fr auto auto; }
.bm-drawer .bm-line img { width: 48px; height: 48px; }
.bm-delivering { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #141c2e; font-size: 11px; color: var(--ink-mute); }
.bm-delivering img { width: 28px; height: 28px; border-radius: 5px; image-rendering: pixelated; }
.bm-delivering strong { color: var(--ink); font-size: 12px; }
.bm-delivering a { margin-left: auto; color: var(--accent); font-weight: 700; }

/* toast */
.bm-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 10px; background: var(--brand); color: var(--on-brand);
  font-size: 12px; font-weight: 800; box-shadow: 0 4px 0 var(--brand-ledge); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.bm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.bm-footer { margin-top: 46px; color: #b8c3dd; }
.bm-footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0 26px; border-top: 1px solid #232c41; }
.bm-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 900; letter-spacing: -.7px; color: #a2aecb; }
.bm-brand img { width: 78px; height: auto; }
.bm-footer-top p { font-size: 11px; color: var(--ink-mute); }
.bm-footer-top .bm-btn { padding: 14px 20px; border-radius: 9px; font-weight: 700; }
.bm-footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 32px; font-size: 10px; line-height: 19px; color: var(--ink-mute); }
.bm-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.bm-legal a { color: #a2aecb; }
.bm-legal a:hover { text-decoration: underline; }


/* ---------- Page order: Tebex modules slot in between the theme's own sections ---------- */
.bm-main { display: flex; flex-direction: column; }
.bm-main > * { order: 10; }
.bm-modules { display: contents; }
.bm-modules > * { order: 7; }
.bm-banner { order: 1; }
.bm-mod-featured { order: 2; }
.bm-cats { order: 3; }
.bm-home-text { order: 4; }
.bm-mod-payments { order: 5; }
.bm-mod-goal { order: 6; }
.bm-mod-other { order: 7; }
.bm-page-category .bm-mod-featured { display: none; }
.bm-page-category .bm-mod-payments, .bm-page-page .bm-mod-payments { order: 21; }
.bm-page-category .bm-mod-goal, .bm-page-page .bm-mod-goal { order: 22; }
.bm-page-category .bm-mod-other, .bm-page-page .bm-mod-other { order: 23; }
.bm-mod-goal + .bm-mod-goal { margin-top: 22px; }
.bm-mod-title { font-size: 22px; letter-spacing: -.6px; margin-bottom: 10px; }
.bm-goal-desc { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.bm-goal-fill { width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.bm-goal-note { font-size: 13px; color: var(--ink-soft); }
.bm-inline-form { display: flex; gap: 10px; margin-top: 12px; }

/* ---------- Bits used by several pages ---------- */
.bm-center { text-align: center; }
.bm-account-out { display: none; }
a.bm-account[data-logout]:hover .bm-account-name { display: none; }
a.bm-account[data-logout]:hover .bm-account-out { display: inline; }
.bm-in-cart { filter: saturate(.7); }
.is-busy { opacity: .6; pointer-events: none; }
.bm-price-note { font-size: 15px !important; }
.bm-product h4 a:hover { color: #8eebff; }
.bm-product-actions > .bm-btn--brand { flex: 1; }
.bm-tabs--sub { margin-top: 12px; background: none; border: 0; padding: 0; }
.bm-tabs--sub a { flex: 0 1 auto; }
.bm-empty--panel { margin-top: 22px; padding: 40px; }
.bm-package-art { min-width: 0; }
.bm-thumbs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; }
.bm-thumbs img { width: 56px; height: 56px; object-fit: contain; border-radius: 9px; background: #141c2e; border: 1px solid #263252; cursor: pointer; }
.bm-package-copy h2 { margin: 10px 0 0; font-size: 30px; letter-spacing: -1px; }
.bm-countdown { display: inline-block; margin-top: 12px; }
.bm-qty { display: flex; align-items: center; gap: 4px; }
.bm-qty input { width: 40px; height: 32px; text-align: center; border-radius: 8px; border: 1px solid #33405f; background: #0f1626; color: var(--ink); font: 800 12px var(--font); -moz-appearance: textfield; }
.bm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bm-x[disabled] { opacity: .35; pointer-events: none; }
.bm-line.is-going { opacity: .4; }
a.bm-x { display: grid; place-items: center; }
.bm-line { grid-template-columns: 56px 1fr auto auto; }
.bm-username { display: flex; align-items: stretch; }
.bm-username-prefix { display: grid; place-items: center; padding: 0 14px; border-radius: 10px 0 0 10px; background: #263252; border: 1px solid #33405f; border-right: 0; font-weight: 900; color: var(--accent); }
.bm-username-prefix:not([hidden]) + .bm-input { border-radius: 0 10px 10px 0; }
html.bm-locked { overflow: hidden; }

/* Sign-in page and popup */
.bm-login { max-width: 440px; margin-left: auto; margin-right: auto; text-align: center; }
.bm-login-logo { height: 54px; width: auto; }
.bm-login h2 { margin: 8px 0 6px; font-size: 26px; letter-spacing: -.8px; }
.bm-dialog .bm-login { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; max-width: none; }

/* Cart inside the drawer: the drawer has its own heading */
.bm-drawer .bm-basket { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.bm-drawer .bm-basket > .bm-eyebrow, .bm-drawer .bm-basket > h1 { display: none; }
.bm-drawer .bm-lines { margin-top: 4px; }
.bm-basket-empty { margin: 20px 0; }
.bm-dialog[aria-busy='true'] [data-slot], .bm-drawer[aria-busy='true'] [data-slot] { opacity: .45; transition: opacity .2s; }
.bm-dialog--package .bm-package { padding: 34px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1050px) {
  .bm-wrap { width: calc(100% - 48px); }
  .bm-banner { padding: 22px; gap: 16px; }
  .bm-logo { height: 100px; }
  .bm-recent-list { grid-template-columns: repeat(3, 1fr); }
  .bm-cat h3 { font-size: 30px; }
}
@media (max-width: 700px) {
  .bm-wrap { width: calc(100% - 32px); }
  .bm-nav { height: auto; min-height: 90px; padding: 16px 0; flex-wrap: wrap; gap: 12px; }
  .bm-links .bm-btn span { display: none; }
  .bm-banner { grid-template-columns: 1fr 1fr; padding: 20px 14px 24px; margin-top: 26px; }
  .bm-logo-link { grid-column: 1 / -1; grid-row: 1; }
  .bm-logo { height: 86px; }
  .bm-nav-page { display: none; }
  .bm-join { gap: 12px; }
  .bm-join--play { justify-self: center; flex-direction: row-reverse; }
  .bm-join--play .bm-join-text { text-align: left; }
  .bm-join--discord { justify-self: center; }
  .bm-join-text strong { font-size: 15px; }
  .bm-tile { width: 46px; height: 46px; }
  .bm-featured { flex-direction: column; padding: 30px 20px 22px; gap: 24px; text-align: center; }
  .bm-featured .bm-price, .bm-featured-actions { justify-content: center; }
  .bm-featured-copy h2 { font-size: 24px; }
  .bm-cats { grid-template-columns: 1fr; gap: 16px; }
  .bm-cat { height: 190px; padding: 26px; }
  .bm-cat h3 { font-size: 26px; }
  .bm-cat img { height: 190px; top: 10px; }
  .bm-recent { padding: 20px; }
  .bm-recent-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bm-recent-list { grid-template-columns: repeat(2, 1fr); }
  .bm-cat-head { grid-template-columns: 1fr 1fr; }
  .bm-cat-head h1 { grid-column: 1 / -1; grid-row: 1; font-size: 26px; }
  .bm-package { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .bm-footer-top, .bm-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Own-site additions ---------- */
.bm-loading { margin: 60px 0; text-align: center; color: var(--ink-mute); font-size: 13px; font-weight: 700; }
.bm-account.is-signed-in:hover .bm-account-name { display: none; }
.bm-account.is-signed-in:hover .bm-account-out { display: inline; }
.bm-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
[data-view] > .bm-panel:first-child, [data-view] > .bm-cats:first-child, [data-view] > .bm-cat-head:first-child { margin-top: 36px; }
[data-view] > .bm-cats:first-child { margin-top: 29px; }
/* Tebex's own small category icons: crisp pixels, and the black GIF backdrop melts into the card */
.bm-cat img.bm-cat-tebex { top: 50%; right: 7%; width: auto; height: 62%; max-width: 40%; transform: translateY(-50%); image-rendering: pixelated; }
.bm-cat img.bm-cat-gif { mix-blend-mode: lighten; }
.bm-cat:hover img.bm-cat-tebex { transform: translateY(-50%) scale(1.05) rotate(-3deg); }

/* ---------- Pack sizes (1x / 3x / 5x / 10x) ---------- */
.bm-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.bm-pack {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; border-radius: 8px;
  border: 1px solid #0a6f8f; background: linear-gradient(135deg, #0a86b0, #13a6d3); color: #e9fbff;
  font: 900 13px var(--font); box-shadow: 0 3px 0 #054a61; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.bm-pack small { font-size: 9px; font-weight: 800; opacity: .85; }
.bm-pack:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #054a61; filter: brightness(1.08); }
.bm-pack:active { transform: translateY(2px); box-shadow: 0 1px 0 #054a61; }
.bm-pack.is-chosen { background: var(--brand); color: var(--on-brand); border-color: var(--brand-line); box-shadow: 0 3px 0 var(--brand-ledge); }
.bm-package .bm-packs { margin: 0 0 18px; max-width: 420px; }

/* ---------- YouTube previews ---------- */
.bm-video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden;
  background: #05080f; box-shadow: 0 5px 0 var(--panel-ledge); cursor: pointer;
}
.bm-video img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease, filter .25s ease; filter: saturate(1.05) brightness(.85); }
.bm-video:hover img { transform: scale(1.03); filter: saturate(1.1) brightness(1); }
.bm-play {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--brand); box-shadow: 0 5px 0 var(--brand-ledge), 0 10px 30px rgba(0, 0, 0, .4); transition: transform .15s ease;
}
.bm-play::after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--on-brand); }
.bm-video:hover .bm-play { transform: translate(-50%, -54%) scale(1.06); }
.bm-video.is-playing { cursor: auto; }
.bm-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.bm-video-panel { margin-top: 22px; padding: 22px; display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 26px; align-items: center; }
.bm-video-panel h2 { margin: 8px 0 8px; font-size: 26px; letter-spacing: -.8px; }
.bm-video-panel .bm-muted { font-size: 12px; }
.bm-package .bm-video { margin: 0 0 18px; }
.bm-video-pop { padding: 30px; }
.bm-video-pop h2 { margin: 8px 0 16px; font-size: 26px; letter-spacing: -.8px; }
.bm-video-pop .bm-buy { margin-top: 18px; }
@media (max-width: 700px) {
  .bm-video-panel { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .bm-video-pop { padding: 22px 16px; }
  .bm-play { width: 58px; height: 58px; }
  .bm-play::after { left: 23px; top: 17px; border-width: 12px 0 12px 19px; }
}

/* =====================================================================
   Category page, design A (picked 2026-10-19): chunky cards, big buttons,
   outline-only pack sizes, keys fanned out like a feather.
   ===================================================================== */
.bm-tone-green  { --ink-on-tone: #0b5a37; }
.bm-tone-pink   { --ink-on-tone: #7a1850; }
.bm-tone-purple { --ink-on-tone: #431d93; }
.bm-tone-orange { --ink-on-tone: #8a4a08; }
.bm-tone-teal   { --ink-on-tone: #075763; }
.bm-tone-red    { --ink-on-tone: #8f2626; }
.bm-tone-blue   { --ink-on-tone: #0e3a80; }
.bm-wavy { position: relative; isolation: isolate; overflow: hidden; background: var(--tone); }
.bm-wavy::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--deep); opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H51C40 19 41 28 51 45C60 61 61 72 51 86C48 91 48 96 51 100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H51C40 19 41 28 51 45C60 61 61 72 51 86C48 91 48 96 51 100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.bm-glow { position: relative; overflow: hidden; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent 75%), var(--tone); }

/* big buttons: 52px tall, easy to hit */
.bm-big {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 900 13px var(--font); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; cursor: pointer; text-decoration: none;
  background: var(--brand); color: var(--on-brand); box-shadow: 0 5px 0 var(--brand-ledge); transition: transform .12s, box-shadow .12s, filter .12s;
}
.bm-big:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--brand-ledge); filter: brightness(1.06); }
.bm-big:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brand-ledge); }
.bm-big svg { width: 18px; height: 18px; flex: none; }
.bm-big--ghost { background: #222b41; color: #e4ecff; border: 1px solid #3e4c6e; box-shadow: 0 5px 0 #0a101f; }
.bm-big--ghost:hover { background: #2a3552; box-shadow: 0 7px 0 #0a101f; }
.bm-big--square { width: 52px; padding: 0; flex: none; }
.bm-big--white { background: #fff; color: var(--ink-on-tone, #0b3b5c); box-shadow: 0 5px 0 rgba(0, 0, 0, .28); }
.bm-big--white:hover { box-shadow: 0 7px 0 rgba(0, 0, 0, .28); }
.bm-big--done { background: #1d6b4f; color: #e9fff4; box-shadow: 0 5px 0 #0d3a2a; }
.bm-big.is-busy { opacity: .6; pointer-events: none; }

/* pack sizes: outline when not picked, filled + tick when picked */
.bm-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.bm-pick {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 4px;
  border-radius: 12px; background: transparent; border: 2px solid rgba(142, 235, 255, .28); color: #cfe9ff; cursor: pointer;
  font: 900 18px var(--font); transition: border-color .12s, background .12s, transform .12s;
}
.bm-pick small { font-size: 9px; font-weight: 900; letter-spacing: .4px; color: #7df0c1; }
.bm-pick:hover { border-color: rgba(142, 235, 255, .7); background: rgba(142, 235, 255, .06); transform: translateY(-2px); }
.bm-pick[aria-pressed="true"] { background: var(--brand); border-color: var(--brand-line); color: var(--on-brand); box-shadow: 0 4px 0 var(--brand-ledge); transform: translateY(-2px); }
.bm-pick[aria-pressed="true"] small { color: #03253a; }
.bm-pick[aria-pressed="true"]::after { content: "✓"; position: absolute; top: -9px; right: -7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0a86b0; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }

/* the keys: one picture, or copies stepping down-right in a diagonal line */
.bm-solo { position: absolute; left: 50%; top: 50%; width: var(--size); height: var(--size); object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)); image-rendering: pixelated; transition: transform .2s; }
.bm-solo.is-new { animation: bm-solo-in .35s cubic-bezier(.2, .9, .3, 1.25); }
@keyframes bm-solo-in { from { transform: translate(-50%, -50%) scale(.8); opacity: .3; } }
.bm-feather { position: absolute; inset: 0; }
.bm-feather img {
  position: absolute; left: calc(50% + var(--dx, 0px)); top: calc(50% + var(--dy, 0px)); width: var(--size); height: var(--size); object-fit: contain; image-rendering: pixelated;
  transform: translate(-50%, -50%) rotate(var(--turn, 0deg)); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .32));
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2);
}
.bm-feather.is-new img { animation: bm-fan .45s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes bm-fan { from { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85); opacity: 0; } }
.bm-qty-tag { position: absolute; right: 12px; bottom: 12px; z-index: 20; padding: 6px 11px; border-radius: 10px; background: #fff; color: #0b3b5c; font: 900 16px var(--font); box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.bm-qty-tag.is-new { animation: bm-bump .35s ease; }
@keyframes bm-bump { 40% { transform: scale(1.25) rotate(-6deg); } }
.bm-sale-tag { position: absolute; left: 12px; top: 12px; z-index: 20; padding: 7px 11px; border-radius: 9px; background: linear-gradient(100deg, #b51d42, #ed4264); color: #fff; font: 900 11px var(--font); letter-spacing: .6px; box-shadow: 0 3px 0 #851830; }
.bm-pixel { image-rendering: pixelated; }

/* header */
.bm-cp-head { margin-top: 36px; min-height: 190px; border-radius: 20px; padding: 26px 40px; display: grid; grid-template-columns: auto 1fr 220px; align-items: center; gap: 28px; color: #fff; box-shadow: 0 7px 0 #070b16; }
.bm-cp-head h1 { font-size: 46px; font-weight: 900; text-transform: uppercase; letter-spacing: -1.5px; line-height: 1; }
.bm-cp-head p { margin-top: 8px; font-size: 15px; font-weight: 700; opacity: .92; }
.bm-cp-chip { margin-top: 14px; display: inline-block; padding: 9px 14px; border-radius: 10px; background: #fff; color: var(--ink-on-tone); font: 900 12px var(--font); letter-spacing: .6px; box-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.bm-cp-art { position: relative; height: 170px; }
.bm-cp-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .3)); }

/* other categories, as coloured tiles */
.bm-cp-cats { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bm-cp-cat { height: 72px; border-radius: 14px; display: flex; align-items: center; padding: 0 16px; color: #fff; font: 900 14px var(--font); text-transform: uppercase; letter-spacing: -.2px; text-decoration: none; box-shadow: 0 5px 0 #070b16; transition: transform .15s; }
.bm-cp-cat:hover { transform: translateY(-3px); }
.bm-cp-cat.is-here { outline: 3px solid #fff; outline-offset: 3px; }
.bm-page-category .bm-cat-desc { margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }

/* the cards */
.bm-cards { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.bm-card { border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); box-shadow: 0 7px 0 var(--panel-ledge); display: flex; flex-direction: column; transition: transform .2s; }
.bm-card:hover { transform: translateY(-3px); }
.bm-card-art { position: relative; display: block; height: 240px; }
.bm-card-art:hover .bm-solo { transform: translate(-50%, -50%) scale(1.05) rotate(-3deg); }
.bm-card-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.bm-card-body h3 { font-size: 23px; font-weight: 900; letter-spacing: -.6px; }
.bm-card-body h3 a:hover { color: #8eebff; }
.bm-bigprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bm-bigprice strong { font-size: 30px; font-weight: 900; letter-spacing: -.5px; }
.bm-bigprice del { font-size: 16px; font-weight: 800; color: #6de2ff; }
.bm-bigprice span { font-size: 12px; font-weight: 700; color: var(--ink-mute); }
.bm-card-buy { display: flex; gap: 10px; margin-top: auto; }
.bm-card-buy .bm-big:first-child { flex: 1; }

/* package popup / page in the same style */
.bm-package--a { grid-template-columns: 340px 1fr; }
.bm-package--a .bm-card-art { height: 320px; border-radius: 16px; box-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.bm-package--a .bm-picks { margin-bottom: 18px; max-width: 440px; }
.bm-package--a .bm-buy { flex-wrap: wrap; }
.bm-package--a .bm-buy .bm-card-buy { margin-top: 0; min-width: 230px; }
.bm-video-pop .bm-card-buy { min-width: 230px; margin-top: 0; }

@media (max-width: 800px) {
  .bm-cp-head { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .bm-cp-head h1 { font-size: 34px; }
  .bm-cp-art { display: none; }
  .bm-cp-head .bm-big--white { justify-self: start; height: 44px; }
  .bm-cp-cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bm-cp-cat { height: 56px; font-size: 11px; padding: 0 10px; }
  .bm-cards { grid-template-columns: 1fr; }
  .bm-package--a { grid-template-columns: 1fr; }
  .bm-package--a .bm-card-art { height: 240px; }
}

/* The big banner (logo, PLAY NOW, DISCORD) is for the home page only. */
body:not(.bm-page-home) .bm-banner { display: none; }

/* falling snow (js/snow.js) draws on .bm-fx, below */

/* ---------- Halloween decorations (js/halloween.js) ---------- */
.bm-fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.bm-banner > .bm-web, .bm-banner > .bm-pumpkin { position: absolute; z-index: 0; pointer-events: none; }
.bm-web { top: 0; width: 118px; height: 118px; opacity: .32; }
.bm-web--left { left: 0; }
.bm-web--right { right: 0; transform: scaleX(-1); }
.bm-pumpkin { bottom: -6px; width: 74px; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.bm-pumpkin--left { left: 14px; transform: rotate(-6deg); }
.bm-pumpkin--right { right: 14px; width: 60px; transform: rotate(7deg) scaleX(-1); }
.bm-pumpkin-face { filter: drop-shadow(0 0 4px #ffb02e); animation: bm-flicker 2.6s infinite; }
@keyframes bm-flicker { 0%, 100% { opacity: 1; } 42% { opacity: .78; } 46% { opacity: .95; } 70% { opacity: .85; } }
.bm-spider { position: absolute; top: 100%; right: 31%; width: 34px; height: 14px; pointer-events: none; z-index: 3; animation: bm-dangle 5s ease-in-out infinite alternate; }
.bm-spider-thread { position: absolute; left: 50%; top: 0; height: 100%; width: 1px; background: rgba(255, 255, 255, .45); }
.bm-spider svg { position: absolute; left: 0; top: calc(100% - 4px); display: block; width: 34px; height: auto; filter: drop-shadow(0 0 5px rgba(170, 110, 255, .55)); }
@keyframes bm-dangle { from { height: 14px; } to { height: 62px; } }
@media (prefers-reduced-motion: reduce) { .bm-spider, .bm-pumpkin-face { animation: none; } }
@media (max-width: 700px) {
  .bm-web { width: 80px; height: 80px; }
  .bm-pumpkin { width: 48px; }
  .bm-pumpkin--right { width: 40px; }
  .bm-spider { right: 12%; width: 26px; }
  .bm-spider svg { width: 26px; }
}

/* ---------- Currency picker (js/currency.js) ---------- */
.bm-header { z-index: 41; } /* the list opens over the page, above the bats */
.bm-currency { position: relative; }
.bm-cur-btn { gap: 7px; padding: 11px 12px; font-size: 11px; }
.bm-cur-btn svg { width: 15px; height: 15px; }
.bm-cur-btn .bm-cur-caret { width: 12px; height: 12px; opacity: .7; transition: transform .15s; }
.bm-cur-btn[aria-expanded="true"] .bm-cur-caret { transform: rotate(180deg); }
.bm-cur-pop {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px; padding: 10px; z-index: 5;
  background: linear-gradient(var(--panel-a), var(--panel-b)); border: 1px solid var(--panel-line); border-radius: 12px;
  box-shadow: 0 5px 0 var(--panel-ledge), 0 18px 40px rgba(0, 0, 0, .45);
}
.bm-cur-pop[hidden] { display: none; }
.bm-cur-pop input {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--chip-line); background: var(--ground);
  color: var(--ink); font: 600 13px var(--font); outline: none;
}
.bm-cur-pop input:focus { border-color: var(--brand-line); }
.bm-cur-list { max-height: 320px; overflow-y: auto; margin-top: 8px; scrollbar-width: thin; scrollbar-color: var(--chip-line) transparent; }
.bm-cur-head { margin: 10px 8px 4px; color: var(--ink-dim); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.bm-cur-row {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 8px;
  border: 0; border-radius: 7px; background: none; color: var(--ink-soft); font: 600 12px var(--font); text-align: left; cursor: pointer;
}
.bm-cur-row b { color: #fff; font-weight: 800; }
.bm-cur-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-cur-row i { font-style: normal; color: var(--ink-mute); }
.bm-cur-row:hover, .bm-cur-row:focus-visible { background: var(--chip); outline: none; }
.bm-cur-row.is-on { background: rgba(0, 199, 255, .14); box-shadow: inset 0 0 0 1px rgba(94, 223, 255, .45); }
.bm-cur-none { margin: 14px 8px; color: var(--ink-mute); font-size: 12px; }
.bm-cur-foot { margin: 8px 4px 2px; color: var(--ink-dim); font-size: 10px; line-height: 1.4; }
@media (max-width: 700px) {
  .bm-cur-pop { position: fixed; top: 96px; left: 16px; right: 16px; width: auto; }
}
.bm-pay-note { margin: 10px 0 14px; line-height: 1.45; }
.bm-pay-note strong { color: #fff; }
.bm-charge {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 15px; border-radius: 10px; text-align: left;
  background: rgba(0, 199, 255, .1); border: 1px solid rgba(94, 223, 255, .4); color: var(--ink-soft);
}
.bm-charge svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.bm-charge strong { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.bm-charge span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; }
