.game-help[hidden] { display: none; }
.game-help {
  position: fixed;
  z-index: 170;
  top: 46px;
  right: 12px;
  width: min(720px, calc(100vw - 24px));
  height: min(650px, calc(100dvh - 62px));
  display: flex;
  flex-direction: column;
  color: #e1edf7;
  background: #0d1827;
  border: 1px solid #4d879f;
  box-shadow: 0 12px 42px #0009, inset 0 1px #a4dbea22;
  border-radius: 8px;
  font: 14px/1.6 "Microsoft YaHei", sans-serif;
  overflow: hidden;
}
.game-help button, .game-help input { font: inherit; }
.game-help button {
  border: 1px solid #38556c;
  border-radius: 4px;
  background: #182b40;
  color: #d9e9f5;
  cursor: pointer;
  padding: 5px 10px;
}
.game-help button:hover { background: #234159; }
.game-help :focus-visible { outline: 2px solid #8cdeed; outline-offset: -2px; }
.help-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #30495e; }
.help-header h2 { margin: 0; font-size: 18px; color: #eaf9ff; }
.help-header p { margin: 2px 0 0; font-size: 12px; color: #a2bacd; }
.help-header button { font-size: 22px; padding: 0 10px; }
.help-search { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; }
.help-search label { white-space: nowrap; }
.help-search input { width: 0; min-width: 0; flex: 1; border: 1px solid #47667b; border-radius: 4px; background: #080f1b; color: #eefaff; padding: 7px 9px; }
.help-search input::placeholder { color: #9bb0c0; }
.help-categories { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px 8px; }
.help-categories button { font-size: 12px; padding: 4px 9px; }
.game-help button[aria-pressed="true"] { background: #254d61; border-color: #86cedc; color: #fff; }
.help-status { margin: 0; padding: 0 16px 8px; color: #a7c2d6; font-size: 12px; }
.help-content { display: grid; grid-template-columns: 218px minmax(0, 1fr); flex: 1; min-height: 0; border-top: 1px solid #30495e; }
.help-results { padding: 8px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid #30495e; }
.game-help .help-result { display: block; width: 100%; text-align: left; padding: 10px; margin-bottom: 6px; }
.help-result strong { display: block; font-size: 13px; }
.help-result span { display: block; font-size: 12px; line-height: 1.55; color: #a8bfd0; margin-top: 4px; }
.help-reader { padding: 18px 20px; min-width: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.help-eyebrow { color: #93cedb; font-size: 12px; }
.help-reader h3 { margin: 6px 0 12px; font-size: 21px; line-height: 1.4; color: #f1f8fc; }
.help-reader p { margin: 0 0 16px; line-height: 1.85; }
.help-reader .help-summary { color: #a6c1d3; font-size: 13px; border-bottom: 1px solid #30495e; padding-bottom: 14px; }
.help-rank-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.help-rank-table th, .help-rank-table td { padding: 4px 8px; border-bottom: 1px solid #30495e; text-align: right; }
.help-rank-table th:first-child { text-align: left; }
.help-rank-table tbody th { font-weight: 500; }
.help-rank-table .help-rank-current { background: #254334; }
.help-footer { padding: 7px 16px; font-size: 12px; color: #9bb4c8; border-top: 1px solid #30495e; }
.feature-modal .feature-head { grid-template-columns: minmax(0, 1fr) auto; }
.feature-head-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.feature-help-button { border: 1px solid #4d879f; color: #c4f2ff; background: #102739; border-radius: 4px; padding: 4px 10px; cursor: pointer; }
@media (max-width: 700px) {
  .game-help { top: 96px; right: 6px; width: calc(100vw - 12px); height: calc(100dvh - 104px); }
  .help-content { grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); }
  .help-reader { padding: 12px; }
  .help-reader h3 { font-size: 18px; }
  .help-result span { display: none; }
}
