/* The site's one shell (notes/bfheroes/site_design.md "Phase 3"): the game menu's frame (mainMenu_west.swf with
   Menu_client.zip's art and colours): the red top bar with the logo plate, the top nav and its dark sub-nav row,
   the round PLAY NOW, the light status bar at the bottom (level, hero, change hero, hero points / valor points /
   funds, get funds) and the village at sunset behind the pages. Panels: the olive-headed frame (01_bgFrameLarge,
   01_fgTabWide), the cream card with the red title bar (01_fgBox). Colours are sampled from those pictures. */
@font-face {
  font-family: 'Fredoka';
  src: url('/play/heroes/ui/fonts/fredoka-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
:root {
  --m-red: #903631;          /* header-bar.png's top */
  --m-red-dark: #6a211e;
  --m-band: #262626;         /* header-bar.png's dark band */
  --m-band-2: #1b1b1b;
  --m-line: #c5bba7;         /* the beige rule under the header */
  --m-olive: #495122;        /* 01_fgTabWide.png */
  --m-olive-dark: #2b2d22;
  --m-taupe: #a49987;        /* 01_bgFrameLarge.png's body */
  --m-card: #d5cec1;         /* 01_fgBox.png */
  --m-title: #8e3434;        /* 01_fgBox.png's title bar */
  --m-paper: #e0dcd3;        /* 02_bgFrame.png */
  --m-foot: #d9dcde;         /* bottom-bar.png */
  --m-field: #f5f6f7;        /* hp-vp-funds-background.png */
  --m-field-edge: #8c9aa1;
  --m-slot: #246684;         /* 03_bgFrame_blue.png */
  --m-slot-2: #6badcb;
  --m-yellow: #e9ad18;       /* the choose-hero row */
  --m-blue: #2f6e9a;         /* buttonChangeHero */
  --m-green: #8db32f;        /* buttonGetFunds */
  --m-ink: #000;
  --m-font: 'Fredoka', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --m-top: 92px;
  --m-foot-h: 54px;
  --m-out: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 0 #000, 0 2px 3px rgba(0, 0, 0, .5);
}
.bfh-shell, .bfh-shell * { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.bfh-shell {
  font: 15px/1.35 var(--m-font);
  color: #1b1712;
  background: #2a1d14 url('/play/heroes/ui/img/menu/stage_bg.webp') center bottom / cover fixed no-repeat;
  padding: var(--m-top) 0 var(--m-foot-h);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.bfh-shell button { font: inherit; }
.m-out { color: #fff; text-shadow: var(--m-out); }

/* ---- the top bar ---- */
#bfh-top {
  position: fixed; inset: 0 0 auto 0; height: var(--m-top); z-index: 50;
  background: var(--m-red);
  border-bottom: 6px solid var(--m-line);
  box-shadow: 0 1px 0 #000, inset 0 -1px 0 #000, 0 4px 10px rgba(0, 0, 0, .45);
}
#bfh-top .logo {
  position: absolute; left: 0; top: 0; width: 262px; height: calc(var(--m-top) + 6px);
  display: block; z-index: 2;
}
#bfh-top .logo img {
  position: absolute; left: 8px; top: 2px; width: 236px; height: auto;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55));
  transition: transform .2s ease;
}
#bfh-top .logo:hover img { transform: rotate(-2deg) scale(1.03); }
#bfh-top .band {
  position: absolute; left: 248px; right: 0; bottom: 0; height: 44px;
  background: linear-gradient(var(--m-band), var(--m-band-2));
  border-top: 2px solid #000; border-left: 2px solid #000; border-top-left-radius: 12px;
}
#bfh-nav { position: absolute; left: 268px; top: 4px; display: flex; gap: 4px; height: 38px; align-items: stretch; }
#bfh-nav a {
  display: flex; align-items: center; padding: 0 16px; border-radius: 6px 6px 0 0;
  color: #fff; text-decoration: none; font-size: 21px; letter-spacing: .2px; text-shadow: var(--m-out);
  border: 2px solid transparent; border-bottom: 0;
  transition: background-color .15s ease, transform .15s ease;
}
#bfh-nav a:hover { background: rgba(0, 0, 0, .18); }
#bfh-nav a.on { background: var(--m-red-dark); border-color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
#bfh-sub {
  position: absolute; left: 268px; bottom: 6px; height: 32px; display: flex; gap: 2px; align-items: center;
  padding: 0 6px; background: #141414; border: 1px solid #000; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* An area of one page (the claw) has no sub-navigation (H8034). */
#bfh-sub:empty { display: none; }
#bfh-sub a {
  color: #f1ece2; text-decoration: none; font-size: 14px; padding: 3px 12px; border-radius: 5px;
  text-shadow: 0 1px 0 #000; transition: background-color .15s ease;
}
#bfh-sub a:hover { background: #2c2c2c; }
#bfh-sub a.on { background: #3b3b3b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px #000; }
#bfh-play {
  position: absolute; right: 18px; top: 2px; width: 112px; height: 112px; z-index: 3;
  border: 0; padding: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5));
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1);
}
#bfh-play img { width: 100%; height: 100%; display: block; }
#bfh-play:hover { transform: scale(1.06) rotate(-2deg); }
#bfh-play:active { transform: scale(.96); }
#bfh-play:disabled { filter: grayscale(.7) brightness(.8); cursor: progress; }
#bfh-mute {
  position: absolute; right: 142px; bottom: 9px; width: 30px; height: 26px; border-radius: 6px;
  border: 1px solid #000; background: #141414; color: #f1ece2; cursor: pointer; font-size: 14px; line-height: 1;
}
#bfh-mute:hover { background: #2c2c2c; }
/* The sound button's slider (ours, the owner's report R-0100: "a volume slider on hover to the volume button ... in
   case people just want to turn it down instead of completely muting"; shell.js setVolume). A small box of the dark
   band's own look that stands against the button's left edge (no gap: the pointer goes from one to the other) while
   the pointer is over the button or the box, or the keyboard's focus is on either; it stays a moment after the
   pointer left. The track is filled in the menu's yellow up to the level (--v, set by shell.js). A touch has no
   hover: shell.js opens the box (.open) under the button on the first tap (the phone's rules below). */
#bfh-vol {
  position: absolute; right: 172px; bottom: 6px; height: 32px; z-index: 4; display: flex; align-items: center; gap: 8px;
  padding: 0 8px 0 10px; background: #141414; border: 1px solid #000; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 8px rgba(0, 0, 0, .5);
  visibility: hidden; opacity: 0; transition: opacity .12s ease .3s, visibility 0s linear .42s;
}
@media (hover: hover) {
  #bfh-mute:hover + #bfh-vol, #bfh-vol:hover { visibility: visible; opacity: 1; transition-delay: 0s; }
}
#bfh-mute:focus-visible + #bfh-vol, #bfh-vol.open { visibility: visible; opacity: 1; transition-delay: 0s; }
#bfh-vol:has(:focus-visible) { visibility: visible; opacity: 1; transition-delay: 0s; }
#bfh-vol-range {
  -webkit-appearance: none; appearance: none; width: 112px; height: 22px; margin: 0; padding: 0; background: none; cursor: pointer;
}
#bfh-vol-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px; border: 1px solid #000;
  background: linear-gradient(to right, var(--m-yellow) var(--v, 100%), #3b3b3b var(--v, 100%));
}
#bfh-vol-range::-moz-range-track {
  height: 6px; border-radius: 4px; border: 1px solid #000;
  background: linear-gradient(to right, var(--m-yellow) var(--v, 100%), #3b3b3b var(--v, 100%));
}
#bfh-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 18px; margin-top: -6px; border-radius: 4px; border: 1px solid #000;
  background: linear-gradient(#f4f2ee, #c9c2b4);
}
#bfh-vol-range::-moz-range-thumb { width: 10px; height: 16px; border-radius: 4px; border: 1px solid #000; background: linear-gradient(#f4f2ee, #c9c2b4); }
#bfh-vol-range:focus-visible { outline: 2px solid #ffd24a; outline-offset: 1px; border-radius: 4px; }
#bfh-vol-val { min-width: 36px; text-align: right; color: #f1ece2; font-size: 13px; text-shadow: 0 1px 0 #000; }
#bfh-acct { position: absolute; right: 142px; top: 10px; color: #f3e6d5; font-size: 13px; text-shadow: 0 1px 0 #000; }
#bfh-acct a { color: #ffe08a; }

/* ---- the status bar at the bottom ---- */
#bfh-foot {
  position: fixed; inset: auto 0 0 0; height: var(--m-foot-h); z-index: 50;
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  background: linear-gradient(#eef0f1, var(--m-foot) 45%, #c3c8cb);
  border-top: 1px solid #7d878c; box-shadow: 0 -1px 0 #fff inset, 0 -3px 8px rgba(0, 0, 0, .35);
}
#bfh-foot .lvl {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 5px;
  background: linear-gradient(#a99778, #7c6a4d); border: 2px solid #3b3122; color: #fff; text-shadow: var(--m-out); font-size: 17px;
}
#bfh-foot .who {
  min-width: 220px; height: 26px; padding: 0 14px; display: flex; align-items: center; justify-content: center;
  border-radius: 13px; border: 1px solid var(--m-field-edge); background: linear-gradient(#fff, #e3e7e9);
  font-size: 15px; color: #1b1712; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2);
}
.m-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px 0 12px; border-radius: 6px;
  border: 2px solid #000; color: #fff; text-shadow: var(--m-out); font-size: 18px; cursor: pointer; text-decoration: none;
  background: linear-gradient(#4b4b4b, #1d1d1d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 0 rgba(0, 0, 0, .3);
  transition: transform .12s ease, filter .12s ease;
}
.m-btn::before { content: ''; border: 6px solid transparent; border-left: 9px solid #fff; border-right: 0; filter: drop-shadow(0 1px 0 #000); }
.m-btn.plain::before { display: none; }
.m-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.m-btn:active { transform: translateY(1px); }
.m-btn:disabled { filter: grayscale(1) brightness(.85); cursor: default; transform: none; }
.m-btn.blue { background: linear-gradient(#5c9ac6, var(--m-blue) 55%, #1d4a6b); }
.m-btn.green { background: linear-gradient(#bfe05a, var(--m-green) 55%, #5d7b18); }
.m-btn.small { height: 26px; font-size: 14px; padding: 0 10px 0 8px; }
#bfh-foot .wallet {
  margin-left: auto; height: 38px; display: flex; align-items: center; gap: 22px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--m-field-edge); background: linear-gradient(#fff, var(--m-field)); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .18);
}
#bfh-foot .wallet:empty { visibility: hidden; }
#bfh-foot .wallet span { display: flex; align-items: center; gap: 4px; font-size: 22px; color: #111; text-shadow: 0 1px 0 #fff; }
#bfh-foot .wallet img { width: 40px; height: 40px; margin: -6px 0; object-fit: contain; }

#bfh-version {
  position: fixed; right: 8px; bottom: calc(var(--m-foot-h) + 3px); z-index: 49; pointer-events: none;
  color: #fff; font: 600 12px/1 var(--m-font); text-shadow: var(--m-out);
}

/* ---- panels ---- */
.m-panel {
  position: relative; display: flex; flex-direction: column; min-height: 0;
  background: var(--m-taupe); border: 2px solid #000; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.m-panel > .ph {
  position: relative; height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 120px;
  background: linear-gradient(#56602a, var(--m-olive)); border-bottom: 2px solid #000; border-radius: 8px 8px 0 0;
}
.m-panel > .ph::before {
  /* The dark tab the panel's icon sits on (01_fgTabWide's left end). */
  content: ''; position: absolute; left: -2px; top: -2px; bottom: -2px; width: 96px;
  background: var(--m-olive-dark); border: 2px solid #000; border-radius: 10px 0 0 0;
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
}
.m-panel > .ph .pi {
  position: absolute; left: -6px; top: -20px; width: 72px; height: 72px; object-fit: contain; z-index: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .6));
}
.m-panel > .ph h1, .m-panel > .ph h2 {
  margin: 0; font-weight: 600; font-size: 26px; color: #fff; text-shadow: var(--m-out); text-transform: lowercase;
}
.m-panel > .ph h2 { font-size: 20px; }
.m-panel > .ph .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.m-panel > .pb {
  flex: 1; min-height: 0; overflow: auto; padding: 8px; scrollbar-color: #1c1c1c #6f675a; scrollbar-width: thin;
}
.m-panel.slim > .ph { height: 34px; padding-left: 14px; }
.m-panel.slim > .ph::before, .m-panel.slim > .ph .pi { display: none; }

/* The cream card with the red title bar (01_fgBox.png). */
.m-card { position: relative; background: var(--m-card); border: 2px solid #000; border-radius: 8px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.m-card > .tb {
  display: flex; align-items: center; gap: 10px; height: 26px; padding: 0 10px; margin: 0 0 0 auto;
  background: linear-gradient(#a03c3c, var(--m-title)); border-bottom: 2px solid #000; border-left: 2px solid #000;
  border-radius: 0 6px 0 8px; color: #fff; text-shadow: var(--m-out); font-size: 15px; text-transform: lowercase;
}

/* The shell's choose-hero list (the change hero button; CharacterSelection's yellow rows). */
#bfh-choose { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(0, 0, 0, .45); }
#bfh-choose.open { display: grid; animation: bfh-fade .18s ease; }
#bfh-choose .m-panel { width: min(640px, 94vw); max-height: 76vh; animation: bfh-pop .22s cubic-bezier(.3, 1.4, .5, 1); }
#bfh-choose .row {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 6px 8px 6px 14px; cursor: pointer;
  background: linear-gradient(#f2c23c, var(--m-yellow)); border: 2px solid #000; border-radius: 8px; text-align: left;
  color: #fff; text-shadow: var(--m-out); font-size: 17px; transition: filter .12s ease, transform .12s ease;
}
#bfh-choose .row:hover { filter: brightness(1.08); transform: translateX(3px); }
#bfh-choose .row.cur { box-shadow: 0 0 0 3px #fff8; }
#bfh-choose .row .nm { flex: 1; }
#bfh-choose .row .ic { width: 34px; height: 30px; border-radius: 5px; border: 2px solid #000; background: linear-gradient(#cfc6b5, #9d917c) center / 26px no-repeat; display: grid; place-items: center; color: #fff; font-size: 15px; }
#bfh-choose .row .ic img { width: 26px; height: 26px; object-fit: contain; }
#bfh-msg {
  position: fixed; left: 50%; bottom: calc(var(--m-foot-h) + 12px); transform: translate(-50%, 20px); opacity: 0; z-index: 70;
  padding: 8px 18px; border-radius: 8px; border: 2px solid #000; background: var(--m-paper); font-size: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: 90vw;
}
#bfh-msg.on { opacity: 1; transform: translate(-50%, 0); }
#bfh-msg.error { background: #f3d6cf; }
@keyframes bfh-fade { from { opacity: 0; } }
@keyframes bfh-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }

/* The hero's stage: the 3D hero (hero3d.js) standing on the village, his turntable while it loads. */
.m-stage { position: relative; min-height: 0; }
.m-stage canvas.hero { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.m-stage canvas.hero:active { cursor: grabbing; }
.m-stage .sprite { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: 2 / 3; transform: translateX(-50%); transition: opacity .3s ease; pointer-events: none; }
.m-stage.three .sprite { opacity: 0; }
.m-stage .note { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; color: #fff; font-size: 13px; text-shadow: var(--m-out); pointer-events: none; }

/* The equipment bar / emote slots (shell.js itemBar; my stuff's `equipment bar`, w47_web9_mystuff_weapons_slot3.png):
   cream boxes with the item and its key strip; drag to swap, the x takes it off, the arrows move it one key. */
.m-itembar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.m-itembar[data-kind=emotes] { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.bar-slot {
  position: relative; height: 70px; border-radius: 6px; border: 2px solid #000; overflow: hidden; cursor: grab;
  background: linear-gradient(#f4f2ee, #c9c2b4); display: grid; place-items: center; padding-bottom: 16px; outline: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bar-slot img { max-width: 86%; max-height: 48px; object-fit: contain; pointer-events: none; }
.bar-slot .k { position: absolute; left: 0; right: 0; bottom: 0; height: 17px; background: #e6e1d8; border-top: 1px solid #9c9384; text-align: center; font-size: 13px; color: #222; }
.bar-slot.empty { background: linear-gradient(#cfc9be, #b6ae9f); cursor: default; }
.bar-slot:hover, .bar-slot:focus-visible { box-shadow: 0 0 0 3px #ffd24a; }
.bar-slot.over { box-shadow: 0 0 0 3px #ffd24a, 0 0 14px #ffd24a; transform: translateY(-2px); }
.bar-slot.lift { opacity: .45; }
.bar-slot button { position: absolute; z-index: 1; display: none; padding: 0; border: 2px solid #000; color: #fff; font: 600 14px/1 var(--m-font); cursor: pointer; text-shadow: 0 1px 0 #000; }
.bar-slot:hover button, .bar-slot:focus-within button { display: grid; place-items: center; }
.bar-slot .ib-x { top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(#c0544c, #8b322e); }
.bar-slot .ib-mv { bottom: 18px; width: 18px; height: 22px; border-radius: 5px; background: linear-gradient(#5c9ac6, var(--m-blue) 55%, #1d4a6b); font-size: 18px; }
.bar-slot .ib-mv.l { left: 2px; }
.bar-slot .ib-mv.r { right: 2px; }
.bar-slot .ib-mv:disabled { display: none; }
.ib-clear { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.ib-clear img { display: block; height: 24px; width: auto; }
.ib-clear span { position: absolute; left: 30px; right: 4px; top: 50%; transform: translateY(-50%); color: #fff; font: 600 13px/1 var(--m-font); text-shadow: 0 1px 0 #000; }
.ib-clear:hover { filter: brightness(1.15); }
.eq-hint { color: #e9e2cf; font-size: 13px; text-shadow: 0 1px 0 #000; }
#bfh-park { display: none; }

/* ---- phone and small windows: the bar wraps, the nav scrolls ---- */
@media (max-width: 900px) {
  :root { --m-top: 104px; --m-foot-h: 50px; }
  #bfh-top .logo { width: 112px; }
  #bfh-top .logo img { width: 106px; top: 10px; left: 4px; }
  #bfh-top .band { left: 0; height: 40px; border-left: 0; border-radius: 0; }
  #bfh-nav { left: 112px; right: 68px; top: 10px; height: 44px; overflow-x: auto; scrollbar-width: none; gap: 0; }
  #bfh-nav a { font-size: 16px; padding: 0 8px; white-space: nowrap; }
  /* The sound button stands in the dark band, right of the sub-navigation; its slider opens under the bar (R-0100). */
  #bfh-sub { left: 6px; right: 42px; bottom: 4px; overflow-x: auto; scrollbar-width: none; }
  #bfh-mute { right: 6px; bottom: 7px; }
  #bfh-vol { right: 6px; bottom: auto; top: calc(100% + 10px); height: 40px; }
  #bfh-vol-range { width: 150px; height: 30px; }
  #bfh-vol-range::-webkit-slider-thumb { width: 18px; height: 24px; margin-top: -9px; }
  #bfh-sub a { white-space: nowrap; padding: 3px 9px; }
  #bfh-play { width: 64px; height: 64px; right: 4px; top: 2px; }
  #bfh-acct, #bfh-version { display: none; }
  #bfh-foot { gap: 8px; padding: 0 8px; }
  #bfh-foot .who { min-width: 0; flex: 1; font-size: 13px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; justify-content: flex-start; }
  body.bfh-shell { overflow-x: hidden; }
  #bfh-foot .m-btn { font-size: 14px; padding: 0 8px; }
  #bfh-foot .m-btn::before { display: none; }
  #bfh-foot .wallet { gap: 8px; padding: 0 6px; margin-left: 0; }
  #bfh-foot .wallet span { font-size: 15px; }
  #bfh-foot .wallet img { width: 26px; height: 26px; }
  #bfh-foot .get { display: none; }
  .m-itembar, .m-itembar[data-kind=emotes] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bar-slot button { display: grid; place-items: center; }
  .eq-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bfh-shell *, .bfh-shell *::before { transition: none !important; animation: none !important; }
}

/* ---- the beta funds' notice (ours, the owner's report R-0102, H8036; a block of its own) ----
   A strip right under the top bar: the account service's words for a player without a role while the beta funds are
   on (shell.js betaNotice). Its x closes it for this browser. The lobby's line under the servers' list.
   It covers nothing (H8113): it stands between the top bar's logo and its PLAY NOW, which hang below the bar, and the
   page starts under it: while it stands the body's --m-top (the pages' own measure of the top) is the bar's height
   (--m-top0) and the strip's (--m-beta-h), set on the body's own style by shell.js betaLayout, and the bar keeps its
   own height. */
#bfh-beta {
  position: fixed; left: 262px; right: 140px; top: var(--m-beta-top, var(--m-top)); z-index: 1; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 8px 5px 14px;
  border: 2px solid #000; border-top: 0; border-radius: 0 0 8px 8px; background: #f6e9b4; color: #1b1712;
  font: 600 13px/1.3 var(--m-font); box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
}
#bfh-top.bfh-beta-on { height: var(--m-top0); }
#bfh-top.bfh-beta-on .logo { height: calc(var(--m-top0) + 6px); }
@media (max-width: 1200px) { #bfh-beta { font-size: 12px; } }
@media (max-width: 900px) { #bfh-beta { left: 0; right: 0; border-left: 0; border-right: 0; border-radius: 0; } }
#bfh-beta button {
  flex: none; width: 22px; height: 22px; padding: 0; border: 2px solid #000; border-radius: 50%; cursor: pointer;
  background: linear-gradient(#c0544c, #8b322e); color: #fff; font: 600 15px/1 var(--m-font);
}
#bfh-beta-line { font-weight: 600; }

/* ---- One scale (H8005, the owner's report R-0100; Not retail: ours). A page that opts in (body.m-one: my stuff's
   pages) draws its panels, cards and their text --m-z times as large (shell.js oneScale), by the claw's measure: the
   owner, 2026-11-19, "I like the scaling of the Claw, thats how all pages should roughly look in terms of size".
   The claw's stage is one picture scaled to the window's height less the bars (claw.js fit) and --m-z is that
   factor (1.58 at 1920 x 1080, 1.97 at 2560 x 1305), so a label here is as large as a label there. The bars are
   the shell's own, as on the claw and on my heroes: they take no factor, and the beta funds' band stands under the
   top bar as the shell lays it out. The text is set in four sizes, 12 / 14 / 20 / 26 px times --m-z (--t-s the
   labels, chips, hints and facts; --t-m names, tabs, keys and buttons; --t-l bar titles; --t-xl the hero's name
   and a panel's title): 19 / 22 / 32 / 41 px at 1920 x 1080 (the claw's labels there: 20, 21, 28, 34, 40 px).
   Every icon stands in one box, --m-icon (48 px of the page's own: 76 px at 1920 x 1080, where the claw's prize
   cards are 93 px): on an item tile, a slot card, a bar's slot, an ability card and beside the picked item's name.
   A phone keeps the rules above. */
body.m-one { --t-s: 12px; --t-m: 14px; --t-l: 20px; --t-xl: 26px; --m-icon: 48px; }
@media (min-width: 901px) {
  body.m-one #bfh-msg, body.m-one #bfh-choose, body.m-one .m-stage .note { zoom: var(--m-z, 1); }
  /* The choose-hero list and the message keep inside the window (a length in vw or vh takes the zoom too). */
  body.m-one #bfh-choose .m-panel { width: min(640px, calc(94vw / var(--m-z, 1))); max-height: calc(76vh / var(--m-z, 1)); }
  body.m-one #bfh-msg { max-width: calc(90vw / var(--m-z, 1)); }
  body.m-one #bfh-choose .row, body.m-one .m-panel > .ph h2, body.m-one .bar-slot .ib-mv { font-size: var(--t-l); }
  body.m-one #bfh-msg, body.m-one #bfh-choose .row .ic, body.m-one .m-card > .tb, body.m-one .bar-slot .k, body.m-one .bar-slot button.ib-x { font-size: var(--t-m); }
  body.m-one .m-stage .note, body.m-one .eq-hint, body.m-one .ib-clear span { font-size: var(--t-s); }
  body.m-one .m-panel > .ph h1 { font-size: var(--t-xl); }
  body.m-one .bar-slot img { max-height: var(--m-icon); }
  /* A bar's title stays on one line beside its hint (the hint may take two). */
  body.m-one .m-panel > .ph h2 { white-space: nowrap; flex: none; }
  body.m-one .eq-hint { min-width: 0; line-height: 1.15; }
}
