/* 「조작」: the game's keys (js/features/guide.js) - a tab of the panel under the game, and a layer over the game while
   playing with fingers (the touch bar's 「조작」) */
.gd { font-size: 13px; }
.gd-t { width: 100%; border-collapse: collapse; }
.gd-t th, .gd-t td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gd-t th { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
.gd-t td.gd-kb { white-space: normal; min-width: 7.5em; }
.gd-t td.gd-tc { white-space: nowrap; color: var(--muted); }
.gd-t td.gd-do { width: 55%; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.45; }
.gd kbd { display: inline-block; font: inherit; font-size: 12px; line-height: 1.5; padding: 0 7px; margin: 1px 0; border: 1px solid var(--line2); border-bottom-width: 2px;
  border-radius: 5px; background: var(--panel2); color: var(--fg); white-space: nowrap; }
.gd kbd small { font-size: 10.5px; color: var(--muted); margin-left: 4px; }
.gd .gd-btn { display: inline-block; padding: 0 9px; border: 1.5px solid var(--line2); border-radius: 999px; color: var(--fg); font-size: 12px; line-height: 1.55; white-space: nowrap; }
.gd .gd-pad, .gd .gd-path { white-space: nowrap; }
.gd-tc small { display: block; font-size: 11px; color: var(--muted); }
#pguide { max-height: 60vh; overflow: auto; }
@media (max-width: 560px) {
  .gd { font-size: 12.5px; }
  .gd-t th, .gd-t td { padding: 5px 3px; }
  .gd-t td.gd-kb { min-width: 0; }
  .gd-t td.gd-tc { white-space: normal; }
  .gd-t td.gd-do { width: auto; }
  .gd kbd { padding: 0 5px; }
}

/* over the game (touch play) */
.rc-guide { position: fixed; inset: 0; z-index: 28; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55);
  padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  -webkit-user-select: none; user-select: none; }
.rc-guide[hidden] { display: none; }
.rc-guide-box { width: min(640px, 100%); min-width: 0; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: var(--fg); }
.rc-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.rc-guide-head b { font-size: 15px; color: var(--accent); }
.rc-guide-x { border-radius: 999px; min-height: 34px; padding: 6px 14px; touch-action: manipulation; }
.rc-guide-body { overflow: auto; padding: 4px 10px 12px; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
