#pc-controls {
  display: none;
  pointer-events: none;
}
@media (pointer:fine) and (max-width:440px) {
  #pc-controls {gap:0;padding:6px;}
  #pc-controls > div:last-child {display:none;}
  #pc-controls .movement-keys {flex-shrink:0;}
}
.action-key {
  display: none;
}
.pc-menu-controls {
  display: none;
}
@media (pointer: fine) {
  #actions #stick {
    display: none;
  }
  #pc-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 220px;
    color: #e8eadf;
    padding: 10px 12px;
    background: #11222bd9;
    border: 1px solid #91a29a80;
    border-left: 3px solid #edbd64;
  }
  #pc-controls strong {
    display: block;
    font-size: 13px;
    color: #fff1c8;
    margin-bottom: 3px;
  }
  #pc-controls span {
    display: block;
    font-size: 10px;
    line-height: 1.7;
    white-space: nowrap;
  }
  #pc-controls .movement-keys {
    display: grid;
    justify-items: center;
    gap: 3px;
    flex: none;
  }
  #pc-controls .movement-keys span {
    display: flex;
    gap: 3px;
  }
  #pc-controls kbd,
  .pc-menu-controls kbd {
    font: 700 10px/20px system-ui;
    display: inline-block;
    text-align: center;
    min-width: 22px;
    height: 22px;
    border: 1px solid #8b9b99;
    border-bottom-width: 3px;
    border-radius: 3px;
    background: #2b4149;
    color: #fff2c9;
  }
  #pc-controls > div > span > kbd {
    min-width: 27px;
    font-size: 9px;
    height: 18px;
    line-height: 16px;
  }
  #hud #weapon-status {
    left: 20px;
    bottom: 128px;
  }
  #hud .action-key {
    display: block;
    position: absolute;
    z-index: 4;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font: 800 10px/14px system-ui;
    min-width: 30px;
    padding: 0 4px;
    background: #0c1c26;
    color: #f9dc9e;
    border: 1px solid #94a6a0;
    border-radius: 3px;
    pointer-events: none;
  }
  #hud .action-name {
    padding-bottom: 0;
    min-height: 13px;
    flex: none;
  }
  #hud .action-face {padding-bottom:18px;}
  #hud .action-face svg {width:34px;height:34px;flex-shrink:0;}
  #hud #attack .action-face svg {width:44px;height:44px;}
  #skill .gear-name {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    font-size: 8px;
    text-align: center;
  }
  #skill:has(.gear-name:not([hidden])) .action-face {padding-top:10px;}
  .pc-menu-controls {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 7px 10px;
    margin: 0 0 18px;
    font-size: 12px;
    color: #ccd4ce;
  }
  .pc-menu-controls dt,
  .pc-menu-controls dd {
    margin: 0;
  }
  .pc-menu-controls dd {
    align-self: center;
    line-height: 1.4;
  }
  .pc-menu-controls dt {
    color: #f5dba4;
    font-weight: 700;
  }
}
@media (pointer: fine) and (max-width: 760px) {
  #pc-controls {
    width: 122px;
    padding: 7px;
    gap: 7px;
  }
  #pc-controls > div > span {
    display: none;
  }
  #pc-controls .movement-keys span {
    display: flex;
  }
  #pc-controls kbd {
    min-width: 17px;
    height: 19px;
    line-height: 16px;
    font-size: 9px;
  }
  #pc-controls strong {
    font-size: 10px;
  }
  #hud #weapon-status {
    bottom: 110px;
  }
}
@media (pointer: fine) and (max-height: 520px) {
  #hud #weapon-status {
    bottom: 106px;
  }
  #pc-controls {
    padding-top: 5px;
    padding-bottom: 5px;
  }
}
