.game-ctl kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  margin: 0 2px;
  border-radius: 4px;
  background: #f4f2ea;
  color: #111;
  font: 700 12px/1.5 system-ui;
  text-align: center;
  box-shadow: 0 2px 0 #999;
}
.game-ctl .ctrl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
}
.game-ctl .ctrl-grid div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding: 3px 0;
}
.game-ctl .ctrl-sec {
  color: var(--accent);
  font-weight: 800;
  margin: 12px 0 4px;
  letter-spacing: 2px;
  font-size: 12px;
}
.game-ctl kbd.pb {
  font-family: system-ui, 'Segoe UI Symbol', sans-serif;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  color: #fff;
  background: #2b2f3a;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.game-ctl kbd.pb-face {
  min-width: 0;
  width: 1.65em;
  height: 1.65em;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.game-ctl kbd.pb-sh {
  border-radius: 7px;
  padding: 1px 6px;
  font-size: 11px;
}
.game-ctl kbd.pb-stick {
  min-width: 0;
  width: 1.65em;
  height: 1.65em;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  background: radial-gradient(circle at 50% 40%, #555b6a, #20232b);
  border: 2px solid #9aa3b5;
}
.game-ctl kbd.pb-dpad {
  min-width: 0;
  width: 1.55em;
  height: 1.55em;
  padding: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  background: #3a3f4c;
}
.game-ctl kbd.pb-xbox.pb-A {
  background: #3fae49;
  border-color: #3fae49;
}
.game-ctl kbd.pb-xbox.pb-B {
  background: #e0473c;
  border-color: #e0473c;
}
.game-ctl kbd.pb-xbox.pb-X {
  background: #2f7fd8;
  border-color: #2f7fd8;
}
.game-ctl kbd.pb-xbox.pb-Y {
  background: #e8b923;
  border-color: #e8b923;
  color: #222;
}
.game-ctl kbd.pb-ps.pb-face {
  background: #1d1f26;
  font-size: 13px;
}
.game-ctl kbd.pb-ps.pb-A {
  color: #8fb4ff;
}
.game-ctl kbd.pb-ps.pb-B {
  color: #ff6f6f;
}
.game-ctl kbd.pb-ps.pb-X {
  color: #ff8fd8;
}
.game-ctl kbd.pb-ps.pb-Y {
  color: #3fd6a5;
}
.game-ctl kbd.pb-nin.pb-face {
  background: #3b3d44;
}
.game-ctl .ctl-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #232637;
  border-radius: 6px;
  margin-bottom: 14px;
}
.game-ctl .ctl-tab {
  background: none;
  border: 0;
  color: #d7d9e2;
  font: 700 14px/1 inherit;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
}
.game-ctl .ctl-tab.on {
  background: #f4f2ea;
  color: #111;
}
.game-ctl .ctl-pane.hidden {
  display: none;
}
.game-ctl .ctrl-sec {
  color: #fff;
  font-weight: 800;
  margin: 16px 0 4px;
  letter-spacing: 2px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 3px;
  color: #8e93a6;
}
.game-ctl .ctrl-sec b {
  color: #fff;
  font-size: 13px;
  margin-right: 6px;
}
.game-ctl .ctrl-grid {
  gap: 0 28px;
}
.game-ctl .ctrl-grid div {
  align-items: center;
  padding: 6px 2px;
  font-size: 14px;
}
.game-ctl .ctl-keys {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.game-ctl .ctl-keys kbd {
  font-size: 12px;
}
.game-ctl .ctl-word {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 5px;
  background: #2b2f3a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 800;
}
.game-ctl .mg {
  width: 16px;
  height: 22px;
  vertical-align: middle;
  margin: 0 2px;
}
.game-ctl .ctl-note {
  margin-top: 10px;
  color: #a9adbf;
  font-size: 13px;
}
.game-ctl .ctl-pane {
  container-type: inline-size;
}
.game-ctl .kb-diagram {
  --u: clamp(20px, calc(100cqw / 21.6), 46px);
  display: flex;
  align-items: flex-start;
  gap: calc(var(--u) * 0.35);
  overflow-x: auto;
  padding: 6px 2px 10px;
}
.game-ctl .kb-main,
.game-ctl .kb-arrows {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.12);
  flex: none;
}
.game-ctl .kb-arrows {
  margin-top: calc(var(--u) * 3.36);
}
.game-ctl .kc-row {
  display: flex;
  gap: calc(var(--u) * 0.12);
}
.game-ctl .kc,
.game-ctl .kc-gap {
  flex: none;
  width: calc(var(--u) * var(--w) + var(--u) * 0.12 * (var(--w) - 1));
  height: var(--u);
}
.game-ctl .kc {
  position: relative;
  border-radius: 5px;
  border: 1.5px solid #4a4e5c;
  background: #1d202b;
  padding: 3px 4px;
  overflow: hidden;
  line-height: 1.1;
}
.game-ctl .kc b {
  display: block;
  font-size: calc(var(--u) * 0.22);
  color: #fff;
}
.game-ctl .kc span {
  display: block;
  text-align: center;
  font-size: calc(var(--u) * 0.2);
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
  white-space: nowrap;
}
.game-ctl .kc i {
  display: block;
  text-align: center;
  font-style: normal;
  font-size: calc(var(--u) * 0.17);
  color: #ffb347;
  font-weight: 700;
  white-space: nowrap;
}
.game-ctl .kc.off {
  border-color: #2c2f3b;
  background: #171923;
}
.game-ctl .kc.off b {
  color: #4c5060;
  text-align: center;
  font-size: calc(var(--u) * 0.26);
  margin-top: calc(var(--u) * 0.22);
}
.game-ctl .c-m {
  border-color: #c9ccd6;
  background: #2c2e38;
}
.game-ctl .c-a {
  border-color: #e8323c;
  background: #5a1a22;
}
.game-ctl .c-v {
  border-color: #e89a2c;
  background: #4a3215;
}
.game-ctl .c-u {
  border-color: #2ec4d6;
  background: #123a44;
}
.game-ctl .kc-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}
.game-ctl .lg::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 2px solid;
  margin-right: 5px;
  vertical-align: -1px;
}
.game-ctl .lg.c-m,
.game-ctl .lg.c-a,
.game-ctl .lg.c-v,
.game-ctl .lg.c-u {
  background: none;
}
.game-ctl .lg.c-m::before {
  border-color: #c9ccd6;
}
.game-ctl .lg.c-a::before {
  border-color: #e8323c;
}
.game-ctl .lg.c-v::before {
  border-color: #e89a2c;
}
.game-ctl .lg.c-u::before {
  border-color: #2ec4d6;
}
.game-ctl .ms-wrap {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: calc(var(--u) * 0.3);
}
.game-ctl .ms-cap {
  font-size: 12px;
  color: #a9adbf;
  font-weight: 700;
  margin-bottom: 4px;
}
.game-ctl .ms {
  width: calc(var(--u) * 2.3);
}
.game-ctl .pad-diagram {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 6px;
  font-family: inherit;
}
.game-ctl .touch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.game-ctl .td-phone {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 2.1;
  border: 3px solid #c9ccd6;
  border-radius: 26px;
  background: linear-gradient(#2a3346, #1b1f2c);
  overflow: hidden;
}
.game-ctl .td-drag {
  position: absolute;
  right: 6%;
  top: 12%;
  width: 44%;
  height: 36%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.game-ctl .td-drag small {
  font-weight: 600;
  color: #a9adbf;
}
.game-ctl .td-joy {
  position: absolute;
  left: 6%;
  bottom: 10%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-ctl .td-knob {
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.game-ctl .td-joy span {
  position: absolute;
  top: -22px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.game-ctl .td-btns {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 46%;
}
.game-ctl .td-b {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}
.game-ctl .td-b small {
  font-size: 9px;
  font-weight: 700;
  margin-top: 2px;
}
.game-ctl .td-b.accent {
  background: var(--red);
}
.game-ctl .td-hint {
  color: #a9adbf;
  font-size: 13px;
  text-align: center;
}