@font-face {
  font-family: "Chakra Petch";
  src: url("./fonts/ChakraPetch-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("./fonts/ChakraPetch-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("./fonts/ChakraPetch-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("./fonts/ChakraPetch-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* The shared identity also covers inline HUD styles, controls, SVG labels,
   keyboard hints and the independently built game/catalog pages. */
:where(body, body *) {
  font-family: "Chakra Petch", system-ui, sans-serif !important;
}
.ms-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
#capture-overlay .ms-brand-title {
  width: min(420px, 100%);
  margin: 0 auto 12px;
  line-height: 1;
  letter-spacing: normal;
}
#menu-overlay .ms-menu-brand {
  width: 220px;
  max-width: 100%;
  margin: 0 auto 16px;
}
#menu-overlay .card { width: min(360px, calc(100vw - 24px)); }
.ms-site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  width: 180px;
  align-items: center;
  text-decoration: none;
}
header .ms-site-brand { margin-right: 12px; }
.brand > .ms-brand-logo { width: 200px; display: inline-block; vertical-align: middle; }
.ms-workshop-brand { display: inline-flex; align-items: center; gap: 16px; }
.ms-workshop-brand > .ms-brand-logo { width: 180px; flex: 0 0 auto; }
.ms-standalone-brand { margin: 16px 20px; }
@media (max-width: 650px) {
  header:has(.ms-site-brand) { flex-wrap: wrap; height: auto; min-height: 58px; gap: 12px; }
  .ms-site-brand { width: 145px; }
  .brand > .ms-brand-logo { width: 155px; }
  .ms-workshop-brand > .ms-brand-logo { width: 145px; }
  #capture-overlay .ms-brand-title { max-width: 330px; }
}
