button.project-qr-trigger {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 0 10px; border: 0; border-radius: 7px; background: transparent;
  color: inherit; font: 500 14px/1.25 system-ui, sans-serif; letter-spacing: normal;
  text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px;
  white-space: nowrap; cursor: pointer;
}
button.project-qr-trigger:hover { background: rgba(150, 113, 66, .10); }
.site nav .project-qr-trigger { color: var(--sub); }
#start .project-qr-trigger { display: inline-flex; margin: 4px auto 0; color: #f1dfb5; text-shadow: 0 1px 4px #17100a; }
.masthead .project-qr-trigger { color: #f9e9c4; }
.rotate-phone .project-qr-trigger { margin: 8px auto 0; color: #215d3f; }
button.project-qr-trigger:focus-visible, .project-qr-close:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
.project-qr-panel {
  position: fixed; inset: auto; margin: 0; z-index: 5000;
  box-sizing: border-box; width: min(212px, calc(100vw - 20px)); padding: 10px;
  border: 1px solid #e6ddd0; border-radius: 11px; background: #fffdf8;
  box-shadow: 0 6px 26px rgba(35, 26, 19, .21); color: #352a23;
  font: 13px/1.4 system-ui, "Microsoft YaHei", sans-serif; text-align: center;
}
.project-qr-panel[hidden] { display: none; }
.project-qr-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-left: 4px; }
.project-qr-head strong { font-weight: 620; }
button.project-qr-close {
  min-height: 34px; padding: 0 7px; border: 0; border-radius: 5px;
  color: #6f5043; background: transparent; font: 12px/1.25 system-ui, sans-serif;
  letter-spacing: normal; cursor: pointer; white-space: nowrap;
}
button.project-qr-close:hover { background: #f3ede4; }
.project-qr-panel img {
  display: block; width: 176px; max-width: 100%; height: auto; aspect-ratio: 1;
  margin: 3px auto 0; border-radius: 4px; background: #fff;
}
.project-qr-panel p { margin: 5px 0 2px; color: #6b6056; font-size: 11px; line-height: 1.4; }
@media (max-height: 350px) {
  .project-qr-panel img { width: 146px; }
}
